Prompt
How do I support recurring meetings with a calendar integration?
Latest observation
To support recurring meetings with a calendar integration, you usually need to handle three things well: recurrence rules, individual occurrences, and calendar sync/update logic.
1) Model recurrence properly
Most calendar systems represent recurring meetings with:
- a master event (the series definition)
- exceptions for changed/skipped occurrences
- optionally detached instances when one occurrence is edited independently
Use a standard recurrence format if possible:
- iCalendar / RFC 5545 RRULE
- Example:
FREQ=WEEKLY;BYDAY=MO,WE;COUNT=10
- Example:
- Store:
- start datetime
- timezone
- duration
- recurrence rule
- exception dates (
EXDATE) - overrides for specific instances
2) Decide how your app treats instances
When showing the calendar to users, expand the recurrence into individual occurrences for display and conflict checking.
Common patterns:
- Series-level edit: change all future or all occurrences
- Single occurrence edit: only one instance changes
- Delete one occurrence: add an exception date
- Delete entire series: remove master event and exceptions
3) Sync with the external calendar API
If integrating with Google Calendar, Microsoft Outlook/Graph, etc., map your internal recurrence model to their API format.
Typical API support:
- create recurring event
- update recurring series
- update a single occurrence by instance ID
- cancel/delete one occurrence
- fetch instances of a recurring event
Important sync fields:
- external event ID
- recurrence master ID
- instance IDs
- sync tokens / change tokens
- updated timestamps / etags for concurrency
4) Handle timezone and DST correctly
Recurring events are tricky around:
- daylight saving time changes
- floating times vs fixed timezones
- weekly meetings that should remain at “9 AM local time”
Best practice:
- store the event timezone explicitly
- expand recurrences using timezone-aware logic
- avoid assuming UTC alone is enough for user-facing recurrence
5) Use incremental sync and webhooks if available
To keep calendars in sync:
- subscribe to webhooks/push notifications
- use incremental sync tokens
- reconcile changes from both sides
- handle conflicts when the same occurrence is edited in multiple places
6) Think through UX
Your UI should make it clear whether a change applies to:
- only this occurrence
- this and following
- all occurrences
This is especially important for recurring meetings, because users expect edits to behave like mainstream calendar apps.
7) Test the hard cases
Make sure you test:
- meetings across DST boundaries
- moved or deleted single instances
- recurring events ending by count vs end date
- weekly/monthly rules with specific weekdays
- invitees in different timezones
- external edits made directly in Google/Outlook
Recommended approach
If you’re building this yourself:
- Store recurring events as a series definition + exceptions
- Use RRULE-like recurrence syntax
- Expand occurrences only when needed
- Map series/instance IDs to the external calendar provider
- Use webhooks + incremental sync for updates
If you tell me which calendar provider you’re integrating with, I can give you a more specific implementation approach and API examples.