How do you run disaster recovery?
Define RPO and RTO, automate backups and restores, replicate to a second region if required, and rehearse failover regularly.
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 3493–3504 of 3610 questions
Define RPO and RTO, automate backups and restores, replicate to a second region if required, and rehearse failover regularly.
Combine deadlines, circuit breakers, bulkheads, bounded queues, load shedding, and graceful degradation to contain dependency failures.
Use expand-migrate-contract: add compatible fields, deploy dual-compatible code, backfill, then remove old fields only after all consumers migrate.
A load balancer distributes traffic across instances. An API gateway commonly provides API-level routing and cross-cutting concerns such as authe
Service discovery lets clients or proxies locate healthy service instances without hardcoding ephemeral addresses. Discovery may be client-side o
The application checks the cache first. On a miss, it reads the source of truth, populates the cache, and returns the value. Writes usually updat
When a hot key expires, many callers can recompute the same value simultaneously. Use request coalescing/single-flight, jittered TTLs, stale-whil
Cached copies can become stale after writes, and invalidation messages can be delayed or lost. Define freshness requirements, use bounded TTLs an
Strings suit simple values/counters, hashes suit field collections, sets suit uniqueness, sorted sets suit ranking, and streams support append-or
Consistent hashing maps keys and nodes onto a ring so adding or removing a node remaps only a subset of keys. Virtual nodes can improve balance;
Vertical scaling adds resources to one machine; horizontal scaling adds instances. Horizontal scaling can improve capacity and failure isolation
Stateless instances do not keep durable user session state locally between requests. Shared state is externalized to a database, cache, or token