Discover and read the best of Twitter Threads about #DynamoDB

Most recents (8)

A customer was considering leaving #dynamodb due to costs.

@pj_naylor and I helped them save half a million dollars per year with one simple, magical, optimization.

Want to save DynamoDB costs like a pro? Let’s start with some background…
1\ DynamoDB writes are 20x more expensive than reads. If you have 5 GSIs, you may be doing 6 writes every time you write a single item into a DynamoDB table.

The 20x is not a typo. More on that soon.
2\ The read & write request units are a bit complex. Let’s simplify, @momentohq style.

DynamoDB writes are charged in 1KB increments.

If you write 100 bytes, you pay for 1KB. 1.1KB => 2KB.

Writing exactly 1KB items costs $1.25/GB (on-demand), but….👇
Read 17 tweets
#DynamoDB strongly consistent reads are magical, but not for the reason most of us think.

SC reads have higher latencies, lower availability, and cost more - but worth it if you use them for the right reasons.

🧵👇explains what they are & how to unlock their real power!
0\ Primer: Doug Terry does a phenomenal job explaining the various consistency models through an illustrative exercise:
microsoft.com/en-us/research…

Read this first to become a consistency ninja!
1\ The most common mistake I see with DynamoDB SC reads is assuming it’s fresher than it is. Suppose you want to increment a counter: an SC Read tells you X=2 - you *cannot* set X=3 because another thread may have already changed it in the meantime. Use Conditional Puts instead!
Read 18 tweets
Fun #AWS project at work this afternoon: calculating the configuration values for #DynamoDB provisioned concurrency with autoscaling.

Background: we have a DDB Table with a very seasonal load pattern. It's currently configured for on-demand pricing, which is expensive.
Provisioned capacity with auto scaling requires us to define the minimum WCUs, the maximum WCUs, and the target utilization levels. But what values should we use?

The first two numbers are easy - just set them to a baseline and some safe maximum (we chose 3x the current peak).
The target utilization is more complex. A post on SO described how to calculate it:

> What is the biggest change in capacity usage you see over a time period of 15 minutes expressed as a percentage? Leave this amount of room in your target utilization.
stackoverflow.com/a/50018158/160…
Read 9 tweets
In this #Serverless 101 thread, @edjgeek will give you a high-level overview of various AWS Serverless services through.

He'll cover services like;

#DynamoDB
➤ $SQS
#SNS
#StepFunctions
#EventBridge
#Kinesis
#AWSLambda
#S3

🧵👇 #AWS #CloudComputing Image
Serverless 101: Intro

Serverless 101: A series to help you understand what AWS serverless services do. It talks about how to use the services together to build highly scalable applications using event-driven architecture built on serverless.

▶️
👇
Serverless 101: Amazon SQS

A high-level overview of SQS. SQS is a fully managed message queuing service that makes it easy to decouple and scale microservices, distributed systems, and serverless apps.

▶️
👇
Read 10 tweets
🧵 M E G A T H R E A D

Check out all of my amazing threads that cover various topics like #JavaScript, #React, my favourite podcasts and many more...

👇#100DaysOfCode #CodeNewbie
Thread #1: This is the place where you can find most of the amazing resources, tutorials, code snippets, tips and tricks about #JavaScript. Happy Coding Days 😎

👇#100DaysOfCode #CodeNewbie #React
Thread #2: This is the place where you can learn most of the thing about #React. Find out some of the best resources, tutorials, code snippets, tips and tricks to enhance your React skills.

👇#100DaysOfCode #CodeNewbie #JavaScript #ReactHooks
Read 21 tweets
🎉🎉🎉 AppSync... again!

🤯 #GraphQL Server side Caching at API and Resolver level
🔥 #DynamoDB Transactions

That means faster queries, cache per user, per argument, and DynamoDB all-or-nothing operations across tables

And that isn’t even reinvent yet 👌
#serverless #aws

👇
@ednergizer don’t know who are the engineers who worked on that feature but please passed our congrats to them.

Another #awswishlist
Did I also say that Caching is already supported in CloudFormation too?

🤘

Read 3 tweets
I've been spending a lot of time lately with @dynamodb in my #serverless applications, so I thought I'd share my surefire guide to migrating to it from #RDBMS. So here is…

How to switch from RDBMS to #DynamoDB in *20* easy steps… (a thread)
STEP 1: Accept the fact that Amazon.com can fit 90% of their retail site/system’s workloads into DynamoDB, so you probably can too. 🤔
STEP 2: Create an Entity-Relationship Model, just like you would if you were designing a traditional relational database. 👩‍💻
Read 23 tweets
Preparing for AWS exams?
Read this thread:
The user can configure SQS, which will decouple the call between the EC2 application and S3. Thus, the application does not keep waiting for S3 to provide the data.
1/n
Auto Scaling enables you to follow the demand curve for your applications closely, reducing the need to manually provision Amazon EC2 capacity in advance.
2/n
Read 554 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!