System design interview questionMedium
Microsoft

Design Date-Range File Storage

Design a file storage and indexing system that returns exactly the files created within a requested time interval.

1. Problem Statement

Design a file storage system that can return all files created within an exact date range without including files outside that interval.

2. Architecture Discussion Map

Use this as one discussion aid, not a single correct answer. Your design should follow from the requirements, scale, and trade-offs you establish.

Rendering architecture diagram...
Mermaid Source (For AI Bots)
graph LR
    A["Design Date-Range File Storage"]
    A --> F1["File metadata and timestamp semantics"]
    A --> F2["Range-query index design"]
    A --> F3["Time partitioning and hot partitions"]
    A --> F4["Blob storage lifecycle"]
    A --> F5["Consistency, pagination, and backfills"]

3. Key Focus Areas

  • 1
    File metadata and timestamp semantics
  • 2
    Range-query index design
  • 3
    Time partitioning and hot partitions
  • 4
    Blob storage lifecycle
  • 5
    Consistency, pagination, and backfills

4. What the Interviewer Looks For

The interviewer probes these areas, and the report grades the interview against them.

  • Timestamp and API semantics
  • Metadata index and partitioning
  • Exactness under concurrent writes and corrections
  • Blob storage lifecycle and capacity
  • Reliability, caching, and operations

5. What Strong Candidates Should Demonstrate

  • Define timestamp semantics and exact inclusive/exclusive boundaries.
  • Separate blob storage from metadata indexing.
  • Partition range indexes without returning files outside the interval.

Want interactive feedback?

Practice drawing this system component-by-component on a live whiteboard while the interviewer probes at your target level.

Continue to Dashboard

Core Concepts

File StorageRange QueriesIndexingPartitioning

Continue preparing

Build a complete software engineer mock interview plan

Prepare by company

Related System Design

Design a Cross-Product Tagging System

Design a shared tagging service that lets users apply tags to entities across multiple Atlassian products, with consistent search and deduplication.