Blog category

Backend & Data

Published stories on this topic, newest first.

← All Blog entries
Backend & Data2 min read

Development and Production Should Not Share the Same Database

For a small project, using the same backend while developing and running the live application is incredibly convenient. It is also something I now try to avoid. The problem becomes obvious as soon as development involves anything destructive. Maybe I want to reset some data, test a migration, create hundreds of fake records or run a script that recalculates something for every user.

Read story : Development and Production Should Not Share the Same Database
Backend & Data2 min read

How I Think About Database Design Before an App Gets Big

While designing a simulation-heavy application, I started thinking about what would happen if every user had their own version of thousands of objects that changed over time. The naive solution is easy: copy everything for every user and update it whenever something changes. It also sounded like a good way to create an enormous number of database reads and writes.

Read story : How I Think About Database Design Before an App Gets Big