Stateful Service Design and State Management Questions
Handling state in otherwise-distributed systems: stateful versus stateless service design, session management, sticky routing, in-memory state with durable backing, and state replication. Covers where state should live, how to recover it after a crash, and the scaling constraints stateful services impose. Complements the stateless-first default with when and how to hold state.
Design a canary rollout plan for a stateful service that requires schema changes. Include steps for making schema changes backwards-compatible, performing dual-writes or read-fallbacks, monitoring the canary, rollback steps, and how to ensure no data corruption occurs during partial rollouts.
Design a lightweight immutable audit trail for critical operations that records actor identity, timestamps, operation type, inputs, and a tamper proof hash. Describe storage choices, indexing for fast lookups, retention policy, and how to integrate with existing logging and monitoring.
That is every published Stateful Service Design and State Management question for Software Engineer so far. Browse the other topics in this category, or practice this one interactively.