Stanimira Vlaeva

NoSQL Data Modeling for Front-end Developers

Your application's query patterns, not normalization rules, should drive your data model.

NoSQL Data Modeling for Front-end Developers
#1about 3 minutes

Why data modeling matters for front-end developers

A good data model improves application performance, developer productivity, and reduces overall development costs.

#2about 7 minutes

Understanding document databases and flexible schemas

NoSQL document databases like MongoDB use collections of BSON documents with flexible schemas, unlike the rigid tables of SQL.

#3about 6 minutes

Modeling data relationships with embedding and referencing

One-to-many relationships can be modeled by either embedding related data within a single document or by referencing it using IDs.

#4about 9 minutes

Deciding when to embed or reference data

Use embedding for one-to-few relationships and referencing for one-to-zillions, while considering if entities are separate logical units for one-to-many cases.

#5about 6 minutes

Optimizing queries with the extended reference pattern

Combine referencing with embedding of frequently accessed fields to reduce queries while avoiding overly large documents and data duplication.

#6about 5 minutes

Handling data duplication and staleness effectively

Accept duplication for historical data and manage necessary updates for stale data using batch operations triggered by change streams.

#7about 9 minutes

Core principles for successful NoSQL data modeling

Effective data modeling is driven by application use cases, requiring identification of logical units, relationships, and critical queries.

Related jobs
Jobs that call for the skills explored in this talk.

Featured Partners

Related Articles

View all articles
BR
Benjamin Ruschin
What Developers Really Need to Create Great Code Demos
Every developer on earth has, at some point, had another developer to thank for a breakthrough, a success, an aha moment they wouldn’t have had without coming across that blog post, that open-source contribution, that reply on socials or that humble ...
What Developers Really Need to Create Great Code Demos
CH
Chris Heilmann
Dev Digest 136 - No JS(on) of mine
News and ArticlesDouglas Crockford is our featured video, so let's talk about evolving JavaScript and all things JSON. Judicious JSON explains all the weird things in it, you can learn why it can be incredibly slow, people wonder what even is a JSON ...
Dev Digest 136 - No JS(on) of mine
DC
Daniel Cranney
Dev Digest 188: CfP time, the risks of NPM and IKEA algorithms
Inside last week’s Dev Digest 188 . 🤖 GitHub Copilot CLI is now in public review 💻 Microsoft is bringing ‘vibe working’ to office apps 🎣 Attackers abuse AI tools to generate captchas in fishing attacks ⚠️ When LLMs autonomously attack 🧠 Common cause...
Dev Digest 188: CfP time, the risks of NPM and IKEA algorithms
DC
Daniel Cranney
Dev Digest 195: End of Likes, JavaScript’s a Zoo, and Messing with Bots!
Inside last week’s Dev Digest 195 . 👎 No more external likes 🤗 Needy programs 📉 The worst selling Microsoft product 🟨 JavaScript engines zoo 🍞 No more toasts! 🤖 Messing with bots 👔 Beware of fake job interviews 🗞️ Join over 150,000 developers alread...
Dev Digest 195: End of Likes, JavaScript’s a Zoo, and Messing with Bots!

From learning to earning

Jobs that call for the skills explored in this talk.

Solutions Architect

Solutions Architect

Mongodb
Zürich, Switzerland

Remote
Intermediate
C++
Java
Kafka
DevOps
+7