Design a service that stores and serves chat history for an assistant (general SWE loop)

HardSystem design45 minSWEPro outline

The question

Design a backend that stores conversation history for an AI assistant used by millions of people. Users can list conversations, open one, continue it from any device, search it, and delete it.

Senior candidates are reported to be judged on depth, so go deep on data model, scaling and consistency.

What the interviewer is looking for

  • Estimates scale: users, messages per day, storage per year
  • Designs a clear data model and keys for fast reads per user
  • Handles multi-device consistency and ordering of messages
  • Plans search with an index that respects deletion
  • Covers caching, partitioning, backups and deletion guarantees
  • Discusses trade-offs and failure modes

Your answer

Saved in this browser only. Nobody else sees it.

Why this question

Reported in: calibrd.com

Practice question written by BlogLLM based on publicly reported interview formats. Not an official Microsoft (Microsoft AI, Microsoft Research, and the general Microsoft SWE loop) question.