All articles
Our first field is databases and storage. Browse the reading below, or follow the relational and object-storage collections from their introductions into application design and operation. Drawing systems and processes teaches a practice that applies in every field. For practical examples, visit the playgrounds.
Search the full text of articles and guides →
Start here
-
Databases and storage: a field guide
The main approaches to storing data, the problems they solve, and when to choose them.
-
Relational databases
Follow one shop purchase through related tables, SQL questions, guarded changes, concurrent buyers and recovery after a crash.
Practice
-
SQL sandbox
Explore PostgreSQL in your browser, with guided lessons from first queries to migrations, indexes and recovery reasoning.
-
Start the SQL practice
Open a disposable PostgreSQL database and use the independent setup supplied by each article.
-
Object-storage sandbox
Guided local models for requests, uploads, versions and application protocols.
-
Try the requests against S3
A real-service worksheet for conditional writes and version recovery.
Facts and schema
-
Relational data modelling
Design related tables by following the shop’s facts, keys and relationships through corrections, repeated occurrences and safe decomposition.
-
Normalisation and decomposition
Derive candidate keys, prove a decomposition lossless, and choose between local enforcement and stronger normal forms.
-
Modelling hierarchies
Store category trees and shared ancestry, follow recursive queries, and maintain adjacency lists, paths, closure tables and nested sets through the same subtree move.
-
Values, missing data and equality
Choose SQL representations for amounts, times, text and identifiers, then follow missing information through comparisons, filters and uniqueness rules.
-
Constraints and data integrity
Turn the shop’s rules into required values, checks, keys, references and exclusions, and recognise when enforcement needs a transaction protocol.
-
History, correction and deletion
Keep effective and recorded time distinct, preserve purchase agreements through corrections, and carry retention and deletion through related records and external copies.
Reading and changing data
-
Joins and the meaning of a result row
Predict matching, missing and multiplied rows, choose joins or existence tests, and build a still-due report from separate order totals.
-
Aggregates and window functions
Choose grouped or per-row SQL calculations by following the rows that contribute: counts, filters, rankings, ties and window frames.
-
Pagination and consistent exports
Continue through changing SQL results without losing timestamp ties, and choose what an export must preserve when rows change between batches.
-
Updates, upserts and bulk imports
Make SQL changes conditional, choose what an existing key means, and follow a catalogue batch through rejection, committed chunks and a safe resume.
-
SQL at the application boundary
Carry query meaning and transaction ownership through parameters, result mappings, relationship loading and reusable database connections.
Concurrency and external work
-
Transactions and isolation
Choose the work that must commit together, then protect its decisions against other transactions through guarded stock, snapshots and a payment limit.
-
Locks, contention and deadlocks
Choose the row that governs a concurrent decision, read it with a sound snapshot protocol, and understand lock waits, ordering and deadlocks.
-
Retries and uncertain commit outcomes
Recover one logical purchase after an abort or a lost reply, using a stable request identity and an atomically recorded result.
-
Outboxes and database-backed jobs
Commit an external intention with an order, then recover delivery and worker claims without confusing a retry with new work.
Work and storage
-
Query execution and performance
Follow rows through scans, joins, grouping and sorting, then use a measured plan to diagnose repeated work and test an equivalent repair.
-
Indexes and access paths
Derive index keys, bounds, ordering and covering from an order-history query, then judge their read savings against the cost of the workload.
-
Table partitioning and data lifecycle
Choose table boundaries that exclude useful query work or retire a complete unit of data, while preserving identity, references and a safe maintenance path.
-
Storage and durability
Follow a price change through pages, row versions, buffers and WAL, then distinguish durable commit and restart recovery from lost storage or an unwanted change.
Recovery and operation
-
Backup, restore and reconciliation
Choose and test a recoverable history, restore the intended state, and account for later work and external effects without applying an operation twice.
-
Replicas, lag and read routing
Follow a commit through replica receipt, durable storage and replay, then choose a read target that can meet the request’s freshness promise.
-
Failover and fencing
Transfer write authority to a surviving copy, establish which commits it retains, and return the former primary without competing histories.
-
Diagnosing a database incident
Follow a slow request through its connection pool, database waits and shared resources, then test a bounded intervention against useful service.
-
Live schema changes and backfills
Move schema, data and callers through expand, migrate and contract; make a live backfill converge and preserve a deliberate return path.
-
Connections, overload and capacity
Count connections, work and waiting separately; budget admission, handle overload and leave room to recover.
-
Database access and least privilege
Follow a tenant request through its application and database identities, derive privileges from the work, and test the boundaries as the connections that use them.
Distributed SQL
-
Sharding and distributed SQL
Choose a shard boundary from local work and shared rules, then follow routing, replica agreement and transactions across owners.
-
Transactions across partitions
How a purchase obtains one recoverable outcome across data owners, and what prepared participants can do when their coordinator disappears.
-
Time, snapshots and distributed reads
Choose one safe history across shards, understand what clocks and replica progress prove, and match historical reads to the decisions they can support.
-
Regional placement and survival
Count surviving voters and follow a shop purchase across regions to find what a local request must wait for.
-
Rebalancing and cluster change
Follow a live replica from base copy to voting membership, then budget the capacity and survival margin needed to move data and retire a node.
PostgreSQL
-
Inside PostgreSQL
Follow a PostgreSQL connection through shared buffers, heap tuples and indexes, then watch snapshots and HOT updates choose and preserve P7's row versions.
-
PostgreSQL vacuum and transaction age
Follow retained row versions, reusable heap space and freezing to diagnose PostgreSQL maintenance and check the right repair.
-
PostgreSQL index methods and operators
Choose between B-tree, hash, GIN, GiST, SP-GiST and BRIN by following what an index can retain, exclude and prove.
-
Reading and repairing PostgreSQL plans
Read PostgreSQL's rows, loops, buffers and timings, then test statistics, indexes and prepared plans against the work they actually change.
-
PostgreSQL JSON and structured alternatives
Choose columns, related rows or JSONB, preserve JSON types and missing values, validate documents and match PostgreSQL indexes to the question.
-
PostgreSQL WAL, checkpoints and durability
Read WAL progress, checkpoint work and commit settings, then connect a PostgreSQL restart drill to client acknowledgements and recovered rows.
-
Restoring PostgreSQL to a recovery target
Take a verified PostgreSQL base backup, follow its archived WAL to the right target, and reconcile valid work before restoring service.
-
PostgreSQL physical replicas and promotion
Follow WAL through a physical standby, choose synchronous commit promises, promote a fenced copy and restore its protection.
-
PostgreSQL logical replication and change feeds
Follow a product change from WAL to a separate database, then configure and operate the row stream through initial copy, replica identity, lag and consumer recovery.
-
PostgreSQL schema changes under load
Choose live PostgreSQL changes by their locks, physical work and final validity: bounded backfills, validated constraints, concurrent indexes and useful upkeep.
-
Operating and diagnosing PostgreSQL
Trace a slow request through pool checkout, PostgreSQL activity, blockers and workload counters; bound an intervention and verify useful recovery.
-
PostgreSQL roles, policies and privileged code
Follow PostgreSQL authority through role membership, object grants, row policies, views and scoped security-definer functions; test the paths as actual application logins.
-
Upgrading and migrating PostgreSQL
Choose a PostgreSQL upgrade method, rehearse a complete target and transfer one write authority without losing accepted work.
-
Distributing PostgreSQL work
Choose partitions, application shards, Citus or foreign tables by following local work, shared rules and a recoverable ownership transfer.
PostgreSQL specialist capabilities
-
Full-text search in PostgreSQL
Turn catalogue text into lexemes, find indexed matches and rank eligible results, while keeping search configuration and stored representations in step.
-
Vector search in PostgreSQL
Choose exact, HNSW or IVFFlat retrieval from filtered nearest-neighbour recall, measured query work and the cost of keeping vectors useful.
-
Types and extensions in PostgreSQL
Express overlap and distance with suitable types and operators, then preserve extension-backed behaviour through installation, restore, updates and removal.
CockroachDB
-
Inside CockroachDB
Follow shop rows through ordered keys, ranges, Raft replicas and Pebble, then see what splitting and moving data can do for a hotspot.
-
CockroachDB transactions and retries
Follow a purchase through intents and Parallel Commits, then handle transaction retries and uncertain results without buying twice.
-
CockroachDB isolation and follower reads
Choose the history a read needs, then check whether CockroachDB can serve it safely and close enough to the caller.
-
CockroachDB query work and hot ranges
Follow query work from SQL operators to KV keys, then distinguish unnecessary lookups, distributed work and concentrated demand before choosing a repair.
-
CockroachDB table locality and region survival
Choose a home for table and row work, weigh GLOBAL reference reads, and verify the voters and application routes needed to survive a region failure.
-
Operating and securing a CockroachDB cluster
Verify the identities and tenant boundary of a secure connection, read native range-health evidence and remove a node while preserving the cluster’s protection.
-
CockroachDB backup and recovery
Find a complete backup path, restore a supported point and reconcile an accepted payment without charging or consuming stock again.
-
CockroachDB schema jobs under load
Follow online index builds, job control and cleanup, then accept schema changes through data and caller checks.
-
Upgrading a CockroachDB cluster
Rehearse a rolling binary upgrade, hold the cluster version for testing, and recognise when the route back closes.
-
Moving a SQL application to CockroachDB
Preserve a PostgreSQL application's behaviour, copy a consistent shop, transfer one write authority and return without losing accepted work.
Other database and storage approaches
-
How a column store works
Column layouts, sorting, writes and replication, with four experiments.
-
How document boundaries shape a database
Nested records, shared details and the consequences of choosing a document boundary.
-
Choosing keys for partitioned data
Partition keys, sort order and the cost of another access pattern.
-
Keeping a transaction together across machines
Partitions, replicas and coordination in a distributed SQL database.
-
Finding the blue mug
Search indexes, tokenisation, ranking and vector filtering.
-
How a graph database follows relationships
Traversing connections, handling cycles and updating a graph.
Application caching
-
Application caching
Follow a product card from its first source read to a cache hit, then see what changes when its price, traffic and memory needs change.
-
Deciding what and where to cache
Follow the work a cached product card saves, compare local and shared copies, and test whether the benefit survives misses, changes and cold starts.
-
Cache keys
Design keys and cached values that preserve an answer’s identity, representation and access context, including an explicit result for a missing product.
-
Freshness and invalidation
Choose a freshness promise, follow delayed fills and missed invalidations, and decide when to expire, validate or bypass a cached answer.
-
Versioned cache fills
Stop a delayed cache fill from undoing a processed invalidation, and test what happens when revision knowledge or fill permission disappears.
-
Handling cache misses
Follow an expired answer through shared fills, deadlines and refreshes, then keep the database within its limits when the cache becomes cold or unavailable.
-
Cache memory and eviction
Follow a changing request trace through a small cache, choose what enters and leaves, and measure the memory needed to save useful source work.
-
Caching with Redis
Build and exercise a product cache with a real Redis client, bounded source reads, validated values and explicit failure handling.
-
Operating a cache
Locate slow requests, explain extra source work, and rehearse cache changes and recovery without losing the answer's validity.
Object storage
-
Object storage: an introduction
Objects, keys and requests, with a complete Amazon S3 learning collection.
Object storage · Objects and requests
-
Keys, metadata and object layout
Choose identities, prefixes and object boundaries that match the work.
-
Uploads, downloads and integrity
Follow parts, completion, retries, checksums and range reads.
-
Consistency and concurrent writers
Derive conditional-write outcomes and reconcile a missing reply.
Object storage · Building applications
-
Publishing a dataset
Publish one complete generation and retain what readers still need.
-
Access and private uploads
Connect application authorization, signed requests and validation.
-
Objects and database records
Recover pending uploads and safely retire unreferenced bytes.
-
Delivering and caching objects
Give stable assets and changing references different cache policies.
-
Events and object-processing workflows
Handle duplicate, reordered and unfinished processing work.
Object storage · Operating the store
-
Versions, retention and recovery
Recover the right version and verify a usable application state.
-
Performance, storage classes and cost
Connect request work, retained bytes and recovery needs to cost.
Object storage · Amazon S3
-
Amazon S3 in practice
Choose a resource and diagnose the complete request path.
-
Tables on object storage
Follow Iceberg snapshots, catalog commits and managed maintenance.
-
Vector storage and retrieval with S3
Understand filtered retrieval and keep embeddings tied to their sources.
Drawing systems and processes
-
Drawing systems and processes: an introduction
Which diagram answers which question.
-
Architecture diagrams
Context, C4 zoom levels, relationships and deployment.
-
Processes and swimlanes
Activities, responsibility, handoffs and exceptions.
-
Sequence diagrams
Calls and replies, the order a diagram promises, frames, and reading a design from its diagram.
-
Failure, asynchrony and races in sequence diagrams
Timeouts, retries, brokers, callbacks and races, and the failure walk for every arrow.
-
Domains and data relationships
Shared language, identities, cardinality and information flow.
-
States and lifecycles
Events, conditions and the changes an object may make.
-
Drawing at the whiteboard
Turn a conversation into a drawing people can correct.
-
A whiteboard shape vocabulary
Quick symbols, drawing steps and room for personality.
-
Layout, labels and five colours
Make a drawing easy to follow across a room.
-
Keeping diagrams useful
Choose tools, capture decisions and keep views trustworthy.
Assessments
-
Can Postgres handle vector search for my application?
A dated assessment of pgvector, retrieval quality and operating costs.
No articles match that search. Try a shorter term, or clear the search to see everything.