Backend
Glossary
Every Backend term in plain words, with the module that teaches it. Inside modules, any word with a dotted underline explains itself.
Backend · 26 terms
- Backend
- The part of an application that runs on servers: it receives requests, applies business rules, stores data and sends responses.
- Learn it in “What a backend does” →
- Background job
- Work taken off the request path and run later by a worker process, such as sending email or resizing images, usually with retries.
- Learn it in “Background jobs and queues” →
- Cache stampede
- When a popular cache entry expires and many requests all try to rebuild it at once, flooding the database. Also called a thundering herd.
- Learn it in “Caching in the backend” →
- Circuit breaker
- A guard around calls to another service that stops calling it for a while after repeated failures, failing fast instead, then lets a test call through to see if it has recovered.
- Learn it in “Timeouts, retries and circuit breakers” →
- Concurrency
- Making progress on many tasks over the same period by switching between them while each waits. Different from parallelism, which runs tasks at the same instant on several cores.
- Learn it in “Handling many requests” →
- Configuration
- Settings that change between environments, such as database hosts, ports and log levels, kept outside the code so the same build runs everywhere.
- Learn it in “Configuration and secrets” →
- Connection pool
- A small set of open database connections that a service reuses for many requests, because opening a new connection each time is slow.
- Learn it in “Talking to a database” →
- Dependency rule
- In hexagonal and clean architectures, code may depend only on code closer to the centre: business rules never depend on frameworks, databases or HTTP.
- Learn it in “Structuring a service” →
- Event loop
- A single thread that runs short pieces of code as events arrive, starting slow operations and continuing when they finish, so it can juggle thousands of waiting requests.
- Learn it in “Handling many requests” →
- Expand and contract
- Changing a live schema in safe steps: add the new structure, move code and data across while both work, then remove the old structure. Also called parallel change.
- Learn it in “Schema migrations” →
- Graceful shutdown
- Stopping a service cleanly: stop accepting new requests, finish the ones in progress, then exit before the platform forces it to stop.
- Learn it in “Logs, health checks and shutdown” →
- Handler
- The function a server runs for a particular method and path, such as GET /orders/{id}. It reads the request and produces the response.
- Learn it in “HTTP from the server's side” →
- Health check
- An endpoint or probe the platform calls to ask whether a service is alive (restart it if not) or ready (send it traffic only if so).
- Learn it in “Logs, health checks and shutdown” →
- Layered architecture
- Splitting a service into layers with one job each, typically HTTP handlers, business services and data repositories.
- Learn it in “Structuring a service” →
- Message queue
- A durable list of tasks or messages that producers add to and workers take from, so work survives crashes and can be retried. Examples: SQS, RabbitMQ, Redis-based queues.
- Learn it in “Background jobs and queues” →
- Middleware
- Code that wraps every request on its way to the handler and every response on the way back, used for logging, authentication, CORS, compression and similar shared concerns.
- Learn it in “Middleware and the request pipeline” →
- Migration
- A versioned script that changes a database schema or its data, applied in order and recorded so every environment ends up the same.
- Learn it in “Schema migrations” →
- N+1 query problem
- Running one query to load a list and then one more for every item in it, instead of fetching the related data together. Slow pages are often caused by it.
- Learn it in “Talking to a database” →
- ORM
- Object-relational mapper: a library that maps database rows to objects in your language and writes much of the SQL for you, such as Hibernate, Entity Framework, SQLAlchemy or Prisma.
- Learn it in “Talking to a database” →
- Pre-signed URL
- A time-limited link, signed by your server, that lets a client upload or download one object in cloud storage directly, without your credentials.
- Learn it in “Files and uploads” →
- Secret
- A credential such as a password, API key or signing key. It needs access control, auditing and rotation, so it belongs in a secret manager, never in code.
- Learn it in “Configuration and secrets” →
- Serverless functions
- Code the cloud provider runs on demand for each event or request, scaling to zero when idle, such as AWS Lambda, Google Cloud Run functions or Azure Functions.
- Learn it in “Packaging and deploying a service” →
- Structured logging
- Writing log entries as fields (usually JSON), such as time, level, message and request ID, so they can be searched and joined rather than read as free text.
- Learn it in “Logs, health checks and shutdown” →
- Thread
- A sequence of work the operating system schedules on a CPU core. Classic servers give each request its own thread from a pool.
- Learn it in “Handling many requests” →
- Transactional outbox
- Saving an event in an outbox table in the same database transaction as the change it describes, then publishing it separately, so events are never lost or sent for changes that rolled back.
- Learn it in “Webhooks and events” →
B
C
D
E
G
H
L
M
N
O
P
S
T
General terms · shared by every track
- ACID
- Four guarantees for transactions: Atomic (all or nothing), Consistent (rules hold), Isolated (concurrent work doesn't interfere), Durable (once done, it stays done).
- Learn it in “ACID on object storage” →
- Atomic
- All or nothing. An atomic change either happens completely or not at all, and nobody ever sees it half done.
- Think of it as: Handing over a sealed envelope: the other person has it or doesn't. There's no half-handed envelope.
- Learn it in “Object storage: the ground floor” →
- Batch processing
- Processing data in scheduled chunks, such as every night or every hour.
- Learn it in “Getting data in” →
- CSV
- Comma-separated values: plain text, one row per line. Easy to read, slow and large for analytics, and no schema.
- Learn it in “Rows vs columns: file formats” →
- Idempotent
- Safe to run twice: running the job again gives the same result instead of duplicating data.
- Learn it in “Medallion architecture” →
- JSON
- A text format of nested key-value objects, like {"id": 7}. Common for app events and APIs, and used by Delta's transaction log.
- Learn it in “Rows vs columns: file formats” →
- Metadata
- Data about data: which files exist, their schema, sizes and statistics. Engines read metadata first to plan work.
- Learn it in “What makes a table a table” →
- Schema
- The structure of a table: its column names and types, such as order_id: long, amount: decimal.
- Learn it in “Schema evolution & enforcement” →
- SQL
- The standard language for querying tables: SELECT … FROM … WHERE …
- Learn it in “Hands-on: query in your browser” →
- Streaming
- Processing data continuously as it arrives, within seconds or minutes.
- Learn it in “Getting data in” →
- Transaction
- A group of changes that succeeds or fails as one unit.
- Think of it as: A money transfer: debit one account and credit the other, or do neither.
- Learn it in “ACID on object storage” →
A
B
C
I
J
M
S
T