Khawaja Shams Profile picture
CoFounder & CEO, @momentohq Ex-AWS ( DynamoDB Lead) Ex-NASA (Mars Rovers)
Mar 21 14 tweets 5 min read
RIP Redis: How Garantia Data pulled off the biggest heist in open source history.

Detailed blog linked - but checkout the thrilling story of this heist in 🧵first 👇

gomomento.co/redisos
Image Redis launched in 2009 as a labor of love by Antirez. It won the hearts of developers globally - and it is still one of the most loved databases brands in the world.

In 2011, AWS launched ElastiCache Redis, & Garantia Data, an early stage startup, launched managed Redis. Image
Oct 30, 2023 16 tweets 5 min read
#DynamoDB is the most magical AWS Service, so @alexbdebrie & I decided to put on a magic show w/ @momentohq! #ddb_magic

Our favorite DynamoDB magic numbers in🧵will help you become an expert table magician by learning key internals!

What's your favorite magic number? Image 6.94
On-Demand IOPS cost 6.94x provisioned iops, but on demand is often cheaper! Why?
1\ 6.94 assumes 100% utilization. Nobody gets 100% utilization IRL!
2\ Autoscaling requires a predictable load cycle & fine tuning
3\ You can mix & match.
#ddb_magic another framing 👇
Image
Image
Apr 26, 2023 17 tweets 4 min read
DynamoDB GSI (Global Secondary Index) are magical if used properly.

A primer 🧵 on how they work to help you make the most of them…

👇

A GSI is basically another DynamoDB table. A table by any other name would have just as many partitions… 0\ You are listening to a DynamoDB Stream on table A. Whenever you see an item with a specific attribute, you insert it into table B with the attribute as the primary key.

👆 this is a GSI in a nutshell! Internalize this - and GSIs will make 💯 more sense..
Apr 20, 2023 4 tweets 3 min read
Getting started with just 5 lines of code was pretty neat, but how about zero?

Momento Console is here!

@dymxzvf personally worked on this alongside our awesome deveco team. DM us for early access to upcoming features.

#launch #serverless

gomomento.co/3Af3iH8 Getting started on the @momentohq console is as simple as using your existing Google/Github accounts to sign-on! Image
Apr 3, 2023 17 tweets 5 min read
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.
Jan 30, 2023 18 tweets 4 min read
#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!