Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Course Registration Platform

Design a term-based course catalog and registration service that preserves enrollment rules and section capacity during opening-time bursts.

Problem statement

For this exercise, assume a university offers a term-based course catalog. Registrars configure courses, prerequisites, sections, meeting times, instructors, and seat limits. Students browse the active term and request to enroll in or drop a section.

An enrollment request must reject duplicate enrollment, unmet prerequisites, schedule conflicts, and a 24-credit limit. If an eligible section is full, the student may join a FIFO waitlist; when a confirmed seat is released, the first currently eligible student is promoted.

A request carries an idempotency key, and a client that loses a response can query the authoritative outcome.

The system must never overbook a section or create two active enrollments for the same student and section. Catalog search and displayed availability may be slightly stale, but the enrollment result must use authoritative current state.

Cover the database schema, API contracts, read and write paths, concurrency control, waitlist promotion, failure recovery, and operational visibility. Tuition payment, grading, transcripts, learning-management content, and classroom delivery are outside scope.

What to build

  1. Registrars can create and revise terms, courses, prerequisites, sections, meeting times, instructors, and seat limits before or during registration.
  2. Students can search the active term and inspect section schedules, prerequisites, and approximately current availability.
  3. Students can idempotently enroll in or drop a section and receive a confirmed, waitlisted, rejected, pending, or not-found outcome.
  4. When capacity is released, the platform promotes the first currently eligible waitlisted student without overbooking and preserves an auditable decision history.

At scale

  • For this exercise, assume 500,000 students and 50,000 sections in an active term.
  • For this exercise, support opening-time peaks of 20,000 catalog reads and 5,000 enrollment or drop requests per second.
  • For this exercise, target 300 milliseconds p95 for catalog reads, one second p95 for a definitive registration response, and 99.95 percent monthly availability during an active registration period.
  • For this exercise, confirmed capacity, active-enrollment uniqueness, prerequisite, schedule, and credit-limit decisions use authoritative consistent state; browse availability may lag by up to five seconds, and enrollment decision history is retained for seven years.