[ SRE_ARENA ]
NOSQL DBS (DYNAMODB)

NoSQL & Caching: DynamoDB and ElastiCache

DOWNLOADING CONCEPT: 1. WHY NOSQL?...
  • ↳Relational databases (RDS) are fantastic for complex queries and JOINs, but they struggle to scale horizontally.
  • ↳When you have a massive, unpredictable workload (like Amazon.com's shopping cart on Black Friday), you need a NoSQL database.
DynamoDB
  • ↳is a fully managed, multi-region, serverless NoSQL database.
  • ↳It guarantees single-digit millisecond latency at any scale.
  • ↳The catch? You cannot perform JOINs, and you must design your database schema based entirely on the specific queries your application will make (Access Patterns) rather than how the data relates to each other.
▲ LIVE INCIDENTYou built a messaging app using DynamoDB. Your Partition Key is the MessageDate (e.g., '2023-10-31'). The app was fast in testing, but on launch day, latency spiked and the database throttled all requests.
sre@arena:~/cloud-nosql
sre@arena:~$ aws dynamodb describe-table --table-name Messages