Modular Monolith Folder Structure: Layout, Naming, Boundaries
Learn a modular monolith folder structure: package by feature, one public API per module, data ownership, naming rules, and CI checks that enforce boundaries.
13 min read
Archive
302 published
Learn a modular monolith folder structure: package by feature, one public API per module, data ownership, naming rules, and CI checks that enforce boundaries.
13 min read
Treat API error handling as a public contract: HTTP status codes, stable error codes from a catalog, and RFC 9457 Problem Details bodies.
14 min read
Find the slow queries that cost the most, index them deliberately, control storage growth, and right-size your PostgreSQL instance from measured load.
16 min read
Learn what workspaces, task runners like Nx, and Lerna each do in a monorepo, how affected runs and caching work, and which layers your repo needs.
13 min read
Learn how liveness, readiness, and startup probes work with SIGTERM handling and connection draining to deliver zero-downtime container deploys.
14 min read
Learn why cursor pagination over a unique, indexed sort key beats offset pagination, and how to design filtering, sorting, cursors and limits as one contract.
14 min read
Learn how to coordinate releases across services with contract-level version compatibility, expand/contract changes, safe rollbacks, and when release trains help.
15 min read
Learn which consistency models your services need, how to fix dual writes with outbox and CDC, build read-your-writes, run sagas, and monitor staleness.
14 min read
How a small team can set up a JavaScript monorepo with pnpm workspaces, and when measured build and CI pain justifies adding Turborepo or Nx.
17 min read
Learn how the backend for frontend pattern works, how a BFF differs from an API gateway, how to implement aggregation safely, and when to skip it.
12 min read
Split a shared database by separating ownership first: map coupling, isolate schemas, pick CDC, outbox or dual writes, then cut over with rollback at each step.
14 min read
Learn when scaling Node.js needs worker threads, node cluster or horizontal load balancing, how each works, and how to diagnose the bottleneck first.
17 min read