Preparing your design workspace

Loading the problem and your latest saved attempt…

Design an Event Attendance Prediction Service

Predict confirmed attendance for an eligible viewer and upcoming event using auditable outcomes and point-in-time features.

Problem statement

For this exercise, assume a ranking consumer asks for the probability that the current authenticated viewer will attend each of up to 50 eligible upcoming events. At scoring time, an event is in scope when its host has enabled entry check-in and its current occurrence is eligible.

Define attendance as a deduplicated entry scan for that viewer during the scheduled event window. An absence becomes a negative label only after the event ends, a 24-hour late-arrival grace passes, and scan coverage is audited complete; an in-window scan can be positive before that audit.

Without a scan, an incomplete audit leaves the outcome unknown rather than negative. A pre-event RSVP may be a feature but is not attendance truth. The service returns versioned probabilities to the consumer, which owns final ranking and records any actual impression with the returned score-decision ID.

Design evidence collection, leakage-safe labels and features, model training, low-latency scoring, calibration, eligibility, fallback, and release. Cancellation or rescheduling must not turn a stale event version into an eligible score or silently transfer an old exposure to a new occurrence.

Event creation, invitations, ticket sales, location tracking, and final page ranking are outside this exercise.

What to build

  1. Record consented event impressions linked to the served score decision, event-version changes, RSVP actions, entry scans, and scan-coverage audits with stable identities.
  2. Build reproducible attendance labels from exposed, check-in-enabled event occurrences: a deduplicated in-window scan can be positive; an absent scan becomes negative only after the event ends, the late-arrival grace passes, and coverage is audited complete.
  3. Return one calibrated attendance probability or explicit degraded/unavailable outcome per eligible viewer-event pair with model, feature, and event versions.
  4. Evaluate mature labels and coverage by relevant slices, then canary, promote, and roll back compatible model and feature releases.

At scalePractice assumption

  • Five million daily viewers, half a million eligible upcoming events, and fifty million viewer-event scores per day.
  • A scoring request contains at most 50 pairs and healthy batch scoring targets 100 ms at p95.
  • Online interaction and RSVP features refresh within ten minutes; cancellation or rescheduling is rechecked against the current event version before returning a score.
  • Scoring may use an explicit pinned baseline when optional features are stale, but missing identity, consent, or current eligibility produces unavailable rather than a fabricated probability.