← System Design

Design a Calendar / Scheduler

hard
Asked at
Atlassian
Google
Microsoft
Notion
Atlassian, Google, Microsoft, Notion

Problem statement

Design a calendar scheduler with timezone-safe rendering, recurring events, conflict-aware drag and resize, availability suggestions, offline edits, and keyboard-accessible event operations.

Asked In

GoogleMicrosoftCalendlyNotionZoomAtlassian

Key Challenges

  • ·Correct time zone and daylight-saving handling
  • ·Recurring events with exceptions and edits to one/all/future instances
  • ·Conflict detection and availability suggestions
  • ·Drag-resize interactions without layout jank
  • ·Offline edits and multi-device reconciliation
★

2-Minute Answer — High-Level TL;DR

Read this before your interview

HLD Interview Focus

Separate authoritative events and recurrence rules from the visible calendar range and edit drafts. One-off timed events need start/end instants; recurring meetings also need local wall-clock time, an IANA time zone, a recurrence rule, and exceptions so they stay at the intended local hour across DST. All-day events are calendar dates, not midnight UTC timestamps. Clarify edits to one, all, or future occurrences. Let the server validate permissions and conflicts while the client previews drag/resize changes and rolls back rejected edits.

→

My Approach: Building the Solution

How to think about this problem

Trace a recurring meeting across a DST boundary, then an edit to one occurrence. Define dates, instants, recurrence identity, and conflict handling before laying out the grid.

Why This Approach?

UTC instants simplify ordering, but repeating local meetings need zone-aware recurrence. Server expansion centralizes correctness; range-limited fetching and caching keep the client responsive. Keyboard editing must offer the same actions as drag/resize.

A calendar is a map of time: the same meeting can appear in different local positions depending on the viewer's time zone.

R

Requirements: What Makes a Great Solution?

Clarify scope before designing anything

Requirements Exploration Questions

Ask your interviewer these questions to refine requirements

Which views are required?

  • ·Day, week, month, agenda
  • ·Resource rooms or people columns
  • ·Mobile compact view

How are events edited?

  • ·Create, drag, resize, duplicate
  • ·Edit one occurrence vs all/future
  • ·Invitees and RSVP

What time-zone behavior is expected?

  • ·Viewer timezone vs event timezone
  • ·Travel timezone changes
  • ·DST boundaries

Do we need availability?

  • ·Free/busy lookup
  • ·Suggested slots
  • ·Room/resource conflicts

How collaborative is it?

  • ·Shared calendars
  • ·Permissions
  • ·Realtime updates

What offline behavior matters?

  • ·View cached schedule
  • ·Queue event edits
  • ·Conflict resolution on reconnect

Functional Requirements

Must Have — MVP

  • ✓Day/week/month views with responsive layout
  • ✓Create, edit, drag, resize, and delete events
  • ✓Recurring event display and edit flows
  • ✓Timezone-safe rendering and formatting
  • ✓Conflict detection for attendees/resources
  • ✓Keyboard-accessible event operations

Advanced (If Time Permits)

  • +Availability suggestions
  • +Realtime shared-calendar updates
  • +Offline edits with conflict resolution
  • +Calendar import/export and external provider sync

Non-Functional Requirements

Performance Targets

  • ·Week view interactions under 100ms
  • ·Month view renders hundreds of events without jank
  • ·Drag preview updates at 60fps
  • ·Availability suggestions return under 1s for common ranges

Reliability & Consistency

  • ·DST transitions render correctly
  • ·Recurring exceptions survive edits and sync
  • ·Optimistic edits roll back on conflicts
  • ·Realtime patches never duplicate event instances

Accessibility & Input Support

  • ·Keyboard-first flows with visible focus and predictable tab order
  • ·Screen-reader announcements for async changes using aria-live where appropriate
  • ·Reduced-motion alternatives for animated transitions
  • ·Pointer, touch, and keyboard parity for every core action

Security & Privacy

  • ·Do not expose private event titles in free/busy responses
  • ·Respect calendar-level permissions in every API response
  • ·Sanitize event descriptions and conferencing URLs

Observability

  • ·Track Core Web Vitals plus domain-specific interaction latency
  • ·Measure API error rate, retry rate, stale-cache usage, and client exceptions
  • ·Emit structured events for critical user journeys and abandoned flows
Premium

The full solution is part of HelloFrontend Pro

The question above is free to read in full. Upgrade to unlock the interactive workspace and the senior-level walkthrough that go with it.

  • Full RADIO-framework walkthrough with architecture diagrams
  • Data model, API design, and rendering strategy trade-offs
  • Performance, accessibility, and offline sections plus a model answer
Unlock the full solution →

Already a member? Log in to open the workspace.

More System Design questions

View all System Design →