Backend explained
The part of an application you never see: where requests are answered, slow work is queued, and data is kept consistent.
Every backend concept
Background jobs and workers
Move slow work out of the request: a queue, workers and retries.
OPEN LESSON
CQRS
One model for writes, another for reads, and the lag between them.
OPEN LESSON
What an API is
A contract that lets one program ask another for something without seeing inside.
OPEN LESSON
REST APIs
Things get URLs, HTTP methods are the verbs, and each request stands on its own.
OPEN LESSON
API gateways
One front door for many services: routing, shared checks, and the risk that comes with it.
OPEN LESSON
Service-oriented architecture
Business capabilities as services on a shared bus, and how microservices differ.
OPEN LESSON
Event-driven architecture
Services announce facts as events and others react, without direct calls.
OPEN LESSON
Publish/subscribe pattern
One message goes to a topic, and every subscriber gets its own copy.
OPEN LESSON
Cron jobs
Five fields that tell a server when to run a task on its own.
OPEN LESSON
Caching layers
Copies kept in the browser, CDN, app and database, and when they go stale.
OPEN LESSON
Cache invalidation
Why cached copies go stale, three ways to refresh them, and why it is hard.
OPEN LESSON
Circuit breaker pattern
A switch that stops calls to a failing service so the failure cannot spread.
OPEN LESSON
Event sourcing
A bank balance rebuilt by replaying the list of everything that happened to it.
OPEN LESSON
Hexagonal architecture
Business rules in the centre, with databases and screens plugged in from the edge.
OPEN LESSON
Multi-tenancy
Three ways one app keeps many customers’ data apart, and what each one costs.
OPEN LESSON
Feature flags
Ship code switched off, then turn it on for a few users, then for everyone.
OPEN LESSON
Logging, metrics and tracing
Three ways to see inside a running system, and which question each one answers.
OPEN LESSON