In a world dominated by Oracle and mySQL, we now have quite a few good contenders (Yes, dynamodb too..) challenging the status quo of these database giants. Albeit slow pace, these new players, many riding the cloud waves, have already gulped down sizeable market share from traditional relational databases.

DynamoDB

USP – managed NoSQL service, multi-region database, robust performance, high consistency, ease of use, cloud database, in-memory caching

Not suits –  hybrid cloud infrastructure, data masking

Application Domains – mobile, IoT, Scalable low-latency applications, gaming, recommendation engines, microservices and serverless application

Leading the pack is MongoDB, whilst others like Redis, Cassandra, DynamoDB and neo4j are not to far behind. This article is dedicated towards introducing you to Amazon’s DynamoDB and help you in contemplating “if this is what your next project requires”.

Here is what we would be discussing in this article-

  1. What is DynamoDB? NoSQL vs SQL.
  2. DynamoDB use cases
  3. Should you consider DynamoDB for your next project?
  4. DynamoDB architecture design
  5. DynamoDB CRUD examples
  6. Connect with Codewave

What is DynamoDB? No – Brainer introduction for the CXO

Amazon DynamoDB is a cloud-based fully managed proprietary NoSQL database service. Fully managed service means you’ve the much required time to focus on core business concerns rather than IT management chores.

NoSQL databases could be categorised into key-value, columnar, graph and document store DB. DynamoDB, offered under the umbrella of AWS (Amazon Web Services), is a multi-model database as it supports key-value structure as well as document store type. 

DB-engines ranks DynamoDB to be the 18th most popular database among enterprises and IT professionals. And why not, afterall DynamoDB can handle more than 10 trillion requests per day and can support peaks of more than 20 million requests per second.

Additionally, it has built-in security features which ensures your data is secure, provides multiregion backup and restore to keep your data safe, and also has in-memory caching to boost performance and scalability for internet-scale applications.

DynamoDB is under use by exponentially growing businesses and startups like Snapchat (snapchat stories), Lyft (ride tracking) and Airbnb, as well as well-established giants like Samsung (mobile app backups) and Toyota.

DynamoDB use cases

Ad Tech

To store marketing data, such as user profiles, user events, clicks, and visited links. In-memory caching could be used to store popular items, a game changing feature for ecommerce and dropshipping businesses. 

DynamoDB can be used to store user events, clickstreams, and impressions data stored can be exploited for personalised ad targeting. DynamoDB Accelerator (DAX) adheres to enterprises that need high read volumes or submillisecond read latency.

Gaming

In the gaming industry, DynamoDB use cases could be to store game state, player data, session history, and leaderboards. DynamoDB is a fit for gaming applications because of its scalability and low latency features. So, when your gaming app’s customer base explodes to millions within a day, you would still be focusing on enhancing the game features and gamer’s experience. You would not have any overhead of maintaining the database as it’s fully managed cloud database. You need not worry about latency as it will still be in milliseconds.

Video Streaming & Content Delivery 

For media and entertainment companies reliability, throughput, concurrency and latency are critical factors in serving content. With DynamoDB as the database video streaming agencies maximize their time investment in feature development and barely have to worry about database management. When viewers count spike to millions within seconds, DynamoDB scales elastically and maintains low latency with high concurrency.

Retails & Ecommerce

DynamoDB is powering up shopping carts, simplifying inventory management and user management for big as well as rising players in retail and ecommerce. Again, auto scalability, auto down-scaling, low latency, high concurrency of DynamoDB imparts magnitude of competitive advantage to clients. It minimizes the operational overheads and enables the company to save huge on database costs as they only pay for the capacity they use.

Banking, Finance & Insurance

Financial companies have the need to ensure least response time when a customer requests for a service, release new features at a regular interval to keep up with the competition. They need to be highly reliable, highly secure and available round the clock. With time it’s obvious now that legacy mainframe system fails to match up with rising business needs to match customer expectations. DynamoDB is used in these institutions for fraud detection purpose, user transactions, traffic offload by replicating data from the mainframe to the cloud, event-driven transactions etc.

dynamodb use cases architechture and crud examples

Should you consider DynamoDB for your next project?

Assessing if DynamoDB ticks all the boxes to be the database for your existing/new application?

DynamoDB is a must consider Database if your application is in active development and/or if following could make your application better – 

  • high availability
  • high data durability
  • auto scalability
  • auto down-scaling
  • OLTP workload
  • High-performance read/write
  • Low operational overheads

DynamoDB architecture design

dynamodb architecture and crud examples

Image Source – AWS Blog

This is how one of the most popular gaming app company (10M+ downloads) leveraged dynamoDB as database to power their application.

DynamoDB CRUD examples

Stay connected to Codewave for more such insights and feel free to reach us at hello@codewave.in or +91 8971824910. If comfortable you may drop by at 1st Floor, Shree Chambers, #307, Outer Ring Rd, Banashankari 3rd Stage, Bengaluru, Karnataka 560085. Thanks for taking out time to read this article. We hope it enriched your existing knowledge. Do let us know your views, by sending an email to hello@codewave.in.