Design Two-Way Calendar Sync With External iCal Feeds

Last updated: November 29, 2026

Quick Overview

Many hosts list the same home on several platforms and keep availability in sync through iCal URLs. Design the system that imports external calendars, exports Airbnb reservations as feeds, and minimizes the window where a double booking can happen.

Airbnb
System Design
Software Engineer
Airbnb
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

0

0 solved


Many hosts list the same home on several platforms and keep availability in sync through iCal URLs. Design the system that imports external calendars, exports Airbnb reservations as feeds, and minimizes the window where a double booking can happen.

Calendar sync is a real Airbnb host feature, and its weaknesses (polling delay, flaky feeds) cause double bookings that hurt guests and hosts. The interviewer wants you to design around an unreliable, pull-based protocol you do not control, and to be honest about consistency limits.

What the Interviewer Expects
  • Explain iCal's limits: pull-only, no push, no transactions
  • Design a polling scheduler that scales to millions of feeds with adaptive intervals
  • Diff imported events into availability blocks idempotently
  • Serve export feeds cheaply with caching and ETags
  • Detect and surface conflicts to hosts
  • Recommend stronger APIs (channel managers) where available
Key Topics to Cover
polling and scheduling
sync
idempotent diffs
caching
consistency
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How would you prioritize which feeds to poll first?
  • An external feed temporarily returns empty. How do you avoid unblocking every date?
  • How would you prove the sync delay is improving?
  • How do you protect against a feed URL pointing at an internal address?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Import: fetch each linked external iCal URL, convert VEVENTs into blocked date ranges on the listing, and remove blocks that disappear. Export: a per-listing secret URL that returns reservations and b...

High-Level Design
  • Feed registry: feed_id, listing_id, URL, ETag, Last-Modified, last_success, next_poll_at, and error count.
  • Scheduler: a priority queue ordered by next_poll_at. It pushes due feeds into a w...

Submit Your Answer
Markdown supported