AWS re:Invent 2018: Amazon DynamoDB Deep Dive: Advanced Design Patterns for DynamoDB (DAT401)
Amazon Web Services12 HN recommenders · recommended in 9 months, 2019–2025
talk · advanced · evergreen · 2019–2025 on HN
Rick Houlihan's AWS re:Invent 2018 deep dive on advanced DynamoDB design patterns. It covers index overloading, GSI sharding, composite keys, graph processing and transactions.
The go-to recommendation for learning DynamoDB data modeling, with many saying it made access-pattern-driven design click.
Up next
2 mo on HNEnterprise Sales | Startup School
Y Combinator
2 HN recommender · 2024–2025
2 mo on HNOral History of Donald Knuth Part 1
Computer History Museum
2 HN recommender · 2019–2022
3 mo on HNRichard Hipp - Git: Just Say No
southeastlinuxfest
3 HN recommender · 2020–2021
3 mo on HNModern C and What We Can Learn From It - Luca Sas [ ACCU 2021 ]
ACCU Conference
3 HN recommender · 2021–2022
9 mo on HNWhy Being Delusional is a Superpower
Veritasium
9 HN recommender · 2020–2024
1 mo on HN115 batshit stupid things you can put on the internet in as fast as I can go by Dan Tentler
Devoxx
1 HN recommend · 2016–2025
2 mo on HNAre Crows the Ultimate Problem Solvers? | Inside the Animal Mind | BBC Earth
BBC Earth
2 HN recommender · 2017–2021
1 mo on HNDonald Knuth - My advice to young people (93/97)
Web of Stories - Life Stories of Remarkable People
1 HN recommend · 2015–2025
11 mo on HN"Testing Distributed Systems w/ Deterministic Simulation" by Will Wilson
Strange Loop Conference
12 HN recommender · 2014–2024
11 mo on HNThe Value of Values with Rich Hickey
InfoQ
10 HN recommender · 2014–2023
9 mo on HN"Turning the database inside out with Apache Samza" by Martin Kleppmann
Strange Loop Conference
9 HN recommender · 2015–2025
7 mo on HNConflict Resolution for Eventual Consistency • Martin Kleppmann • GOTO 2016
GOTO Conferences
3 HN recommender · 2017–2020
12 comments from Hacker News
This is the video I recommend to others when working with dynamodb. The video is by Rick Houlihan about dynamodb modeling. In my experience most developers that complain about dynamodb don't fully understand it. ▶ this video
Rick Houlihan did a talk a few years ago about designing the data later for an application using dynamodb. The most common reaction I get from people I show it to- most of them Amazon SDEs who operate services that use Dynamodb- is "Holy shit what is this wizardry?!" ▶ this video One of the biggest mistakes people make with dynamo is thinking that it's just a relational database with no relations. It's not. It's an incredible system, but it requires a lot of deep knowledge to get the full benefits, and it requires you, often, to design your data layer very well up-front. I actually don't recommend using it for a system that hasn't mostly stabilized in design. But when used right, it's an incredibly performant beast of a data store.
For explicitness & searchability, commenting with the title of this talk, which is indeed excellent , not limited to DynamoDB, and which was kind of a revelation after years of using DynamoDB suboptimally: Rick Houlihan - AWS re:Invent 2018: Amazon DynamoDB Deep Dive: Advanced Design Patterns for DynamoDB (DAT401) , ▶ this video It should be watched along with reading the associated doc: link
We realized how great Dynamo was only after we migrated off AWS. Dynamo was a key factor to us when we were releasing the MVP of our News API [0]. We used Dynamo, ElasticSearch, Lambda and could make it running in 60 days while being full-time employed. Also, the best tech talk I saw was given by Rick Houlihan on re:Invent [1] I highly recommend every engineer to watch it: it's a great overview of SQL vs NoSQL [0] link [1] ▶ this video
I've seen this done for new projects, and it works really well. If your data access patterns are truly relational (varied lookup paths) then it is probably not the right tool, but many apps can be modeled in a way that DDB handles well. Highly recommended viewing: ▶ this video this talk explains how relational data can be efficiently modeled for key-value stores.
If you go single table you can use filtered indexes if your database supports it to speed up queries instead of having to do a row by row search with a where clause. Personally this seems like a job for DynamoDB but that’s a whole beast unto itself. You must know the queries you will do to the database before hand as that guides how you craft it. There’s an amazing talk at reinvent that is given almost every year on creating a DynamoDB schema ( ▶ this video ) I would normalize as the theory says and then denormalize as performance requires it.
AWS re:invent 2018 talks: ▶ this video He has a sequence of 2-3 great talks on DynamoDB, the history of relational databases and the rise of access-pattern oriented db design.
My name is Marco Inaros! > What kind of system/application/query pattern does DynamoDB optimize for Start here: "Real-world use cases for Amazon DynamoDB" - link > I'm legitimately ignorant and a lot of people seem to dislike it. Start here: "AWS re:Invent 2018: Amazon DynamoDB Deep Dive: Advanced Design Patterns for DynamoDB " - ▶ this video Then: "Build with DynamoDB | S1 E5 – A Data Modeling Use Case Deep Dive" - link "Model hierarchical automotive component data using Amazon DynamoDB" - link "AWS re:Invent 2024 - Advanced data modeling with Amazon DynamoDB" - link
I struggled at first but I watched Advanced Design Patterns for DynamoDB[0] a few times and it clicked. As other responses have suggested, generally you define your access patterns first and then structure the data later to fit those access patterns. [0]: ▶ this video
If I may share some advice - don't bother. As another commenter pointed out, relationships are inherent in a lot of the data you'll store for your platform, and for those elements that you'd like to keep the full data hash, just use jsonb in Postgres. Once you're at several million in revenue, then you can think about splitting off some parts of your data into document storage solutions for certain efficiency reasons, but that is by no means necessary. This is a great video on the topic: ▶ this video
Check out this video from AWS's Principal Dynamodb expert that touches on comparisons against relation db's: ▶ this video
While the move seems to be towards NewSQL databases (Spanner/CockroachDB), the answer to relations in NoSQL is to model the data differently. This can generally resolve a lot of the problems inherent in the need for relations. This might not be useful advice for everyone, but I can highly recommend this youtube video on DynamoDB data modelling: ▶ this video