Glossary
One-line definitions with links to the page that explains them properly.
ACID — Atomicity, Consistency, Isolation, Durability: the guarantees of a relational transaction. See Transactions.
Amortised complexity — The average cost per operation over a sequence of operations, even if one operation is expensive. Dynamic array append is amortised O(1).
API — Application Programming Interface: the contract through which software components talk to each other.
Backpressure — A mechanism that slows producers when consumers cannot keep up.
CAP theorem — Under a network partition, a distributed system must choose between consistency and availability. See CAP.
CDN — Content Delivery Network: edge servers that cache content close to users.
Circuit breaker — A pattern that stops calling a failing dependency for a while, failing fast instead of cascading the failure.
CQRS — Command Query Responsibility Segregation: separate write and read models. See Event Sourcing.
CSRF — Cross-Site Request Forgery: an attack that makes a logged-in browser send an unwanted state-changing request. See Cookies and CORS.
CORS — Cross-Origin Resource Sharing: the browser policy and headers that control which origins may read a response.
Deadlock — Two or more processes each waiting for a lock the other holds.
Denormalisation — Deliberately duplicating data to avoid joins or expensive reads.
Dependency injection — Passing collaborators into an object instead of constructing them inside it, which makes testing and substitution easier.
Docker image — An immutable filesystem snapshot plus metadata used to start containers. See Docker.
Eventual consistency — Replicas converge to the same value once writes stop, but may be stale in the meantime.
Fan-out — Distributing one event or request to many downstream consumers or followers.
GC (garbage collector) — Automatic memory reclamation for unreachable objects. See Ruby GC.
GVL — Global VM Lock in Ruby (historically “GIL”): only one thread executes Ruby bytecode at a time, though I/O can run in parallel. See Ruby concurrency.
Hash table — A key/value structure with O(1) average lookup, backed by an array of buckets.
Heap — A complete binary tree with the heap property, used for priority queues and heapsort.
Idempotency — Performing an operation more than once has the same effect as performing it once. See Idempotency.
Index — A data structure that speeds reads at the cost of extra storage and slower writes. See SQL indexes.
JWT — JSON Web Token: a signed, base64url-encoded token with header, claims and signature. It is not encrypted by default. See Authentication.
Lazy loading — Deferring work until the value is actually needed.
Little’s Law — L = λW: the average number of items in a system equals arrival rate times
average time in the system.
Memoisation — Caching the results of a function by its arguments. The top-down form of dynamic programming.
Microservice — An independently deployable service with a narrow responsibility. See Microservices.
MVCC — Multi-Version Concurrency Control: readers see a consistent snapshot without blocking writers.
N+1 query — One query to load a collection plus one per row to load an association. See Rails performance.
OLTP / OLAP — Transactional (many small writes) versus analytical (large scans and aggregations) workloads.
Optimistic locking — Detect conflicting writes with a version column instead of holding a lock.
ORM — Object–Relational Mapping: mapping database rows to objects. ActiveRecord is one.
Outbox pattern — Write an event to a database table in the same transaction as the state change, then publish it asynchronously.
PACELC — An extension of CAP: if there is a Partition, choose Availability or Consistency; Else choose Latency or Consistency.
Pagination — Returning a bounded page of results, by offset or by cursor.
Pessimistic locking — Lock the row before updating it, blocking other writers.
Polyglot persistence — Using different databases for different access patterns.
Quorum — The minimum number of replicas that must acknowledge a read or write (often
R + W > N).
Race condition — A bug whose result depends on the timing of concurrent operations.
Rate limiting — Restricting how many requests a client may make in a window. See Rate limiting.
Read replica — A database copy that serves reads and is kept in sync from the primary.
REST — An architectural style built on resources, HTTP verbs, statelessness and a uniform interface. See REST vs GraphQL.
Saga — A sequence of local transactions with compensating actions that replaces a distributed transaction.
Sharding — Horizontal partitioning of data across independent databases by a shard key.
SLO / SLI / SLA — Service Level Objective (target), Indicator (measurement) and Agreement (contract with consequences).
SSR / SSG / ISR — Server-side rendering, static site generation and incremental static regeneration. See Next.js.
Sticky session — Routing a user’s requests to the same server, usually to keep session state in memory.
Tail latency — The high percentiles (p95, p99), which determine the worst user experience.
Thundering herd — Many clients retrying or refreshing at once, overwhelming the system.
Token bucket — A rate-limiting algorithm that refills tokens at a fixed rate and spends one per request.
TTL — Time to live: how long a cached value or record remains valid.
Two-phase commit — A blocking protocol to commit a transaction across multiple systems.
WebSocket — A persistent, full-duplex connection over a single TCP connection. See Chat case study.
XSS — Cross-Site Scripting: injecting executable script into a page viewed by others. See Web security.
Zero-downtime deploy — Releasing a new version without dropping requests, usually via rolling, blue-green or canary deployment.