MicrolearnENPTES

Files and media

Lesson 19 of 40 · Sys.Micro

Keep big binary files out of the database: object storage, direct uploads and processing pipelines.

An early version saved uploaded photos and videos as BYTEA in Postgres, streamed through the API. The database grew to 4 TB, backups take a day, and API servers spend their time pushing bytes.

Why blobs do not belong in your database

Object storage: buckets, keys, metadata in the DB

Check yourself

What is the main benefit of pre-signed URLs for uploads?

Do it in the browser: a real system design tool, a short mission and instant feedback. No install.

Start this lesson — free
← Transactions and isolationREST, RPC and GraphQL →

All lessons · Sys.Micro