PracHub
QuestionsPremiumLearningGuidesCheatsheetNEW
|Home/System Design/Bloomberg

Design a fair event registration queue API

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a candidate's ability to design an in-memory, FIFO event registration service using object-oriented design, testing knowledge of data structures, state management, and efficient removal operations.

  • medium
  • Bloomberg
  • System Design
  • Software Engineer

Design a fair event registration queue API

Company: Bloomberg

Role: Software Engineer

Category: System Design

Difficulty: medium

Interview Round: Onsite

## Scenario Design an in-memory service (OOD-style) to manage registrations for an event where **fairness** means users are served strictly in the **order they registered** (FIFO). Users can: - Register for the event - Unregister (cancel) their registration - Query the first `k` users in the current fair order ## Required API Define and implement these operations: - `register(userId)` - `unregister(userId)` - `topK(k) -> List<userId>` (return the earliest `k` currently-registered users) ## Expectations - Preserve original registration order among active users. - Handle `unregister` efficiently. - Discuss time/space complexity and key edge cases (duplicate register, unregister missing user, etc.).

Quick Answer: This question evaluates a candidate's ability to design an in-memory, FIFO event registration service using object-oriented design, testing knowledge of data structures, state management, and efficient removal operations.

Related Interview Questions

  • Design streaming mention analytics with search and alerts - Bloomberg (hard)
  • Design a Global Marketing Email Platform - Bloomberg (medium)
  • Design in-memory trade subscription processor - Bloomberg (medium)
  • Explain Kafka partitions and delivery semantics - Bloomberg (hard)
  • Design auth, session security, and top-N users - Bloomberg (hard)
Bloomberg logo
Bloomberg
Dec 15, 2025, 12:00 AM
Software Engineer
Onsite
System Design
6
0
Loading...

Scenario

Design an in-memory service (OOD-style) to manage registrations for an event where fairness means users are served strictly in the order they registered (FIFO).

Users can:

  • Register for the event
  • Unregister (cancel) their registration
  • Query the first k users in the current fair order

Required API

Define and implement these operations:

  • register(userId)
  • unregister(userId)
  • topK(k) -> List<userId> (return the earliest k currently-registered users)

Expectations

  • Preserve original registration order among active users.
  • Handle unregister efficiently.
  • Discuss time/space complexity and key edge cases (duplicate register, unregister missing user, etc.).

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More Bloomberg•More Software Engineer•Bloomberg Software Engineer•Bloomberg System Design•Software Engineer System Design
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.