All jobs / Backend developer / Architecture
Backend developer interview question · 0–1 years
Why do interviewers keep asking whether a service is stateless?
The strongest answer
Because a stateless service keeps nothing between requests on its own box, so any instance can serve any request — that is what lets you add instances, replace a dead one and deploy without users noticing
Why it works
Right. Statelessness is what makes scaling out and failover trivial.
What a good answer covers
- Stateless: nothing kept between requests locally.
- Any instance serves any request.
- State moves to a shared store.
- Enables scale-out and failover.
Answers that fall short
- Close, but not the strongest: Because stateless services are faster
Speed is not the point; interchangeability is. - Weak: Because state is bad practice
State exists; it lives in a store, not on the web box. - Red flag: Because stateless means no database is needed
The database is exactly where the state goes.
Who gets asked this
- Backend developer
- Full-stack developer
- DevOps / SRE / cloud
- Data engineer
- Data science / ML / AI
- Engineering manager / tech lead
- Solutions / cloud architect
- AI engineer
More Architecture questions
- When does adding a cache help, and when does it not?
- In a design, why do you say which columns are indexed?
- What is a read replica for?
- Why would you put a queue between two parts of a system?
- What is the difference between latency and throughput?
- An interviewer asks for p99 latency. What does that mean and why ask for it?
- How do you estimate storage for 100 million short URLs?
- What does a CDN do for a web application?