PracHub
QuestionsPremiumLearningGuidesCheatsheetNEW
|Home/System Design/Airbnb

Design a user activity query system

Last updated: Apr 25, 2026

Quick Overview

This question evaluates a candidate's system design skills, including scalable data modeling, time-and-geo indexing, API design, storage and serving architectures, consistency trade-offs, and privacy/auditing controls for event query systems.

  • hard
  • Airbnb
  • System Design
  • Software Engineer

Design a user activity query system

Company: Airbnb

Role: Software Engineer

Category: System Design

Difficulty: hard

Interview Round: Onsite

## Problem Design a query system that allows internal consumers (e.g., customer support, risk/fraud, data analysts) to retrieve a given user's **search** activity and **order** activity. The query must support filtering by: - **Time**: a time range (start/end) - **Geography**: a location constraint (e.g., bounding box or radius around a point) ## Data to Query Assume two event types: 1. **Search events**: (user_id, timestamp, query_text, location_lat/lng, device/session metadata) 2. **Order events**: (user_id, order_id, timestamp, items/amount, shipping/delivery location, payment metadata) ## Required Capabilities - Given `(user_id, time_range, geo_filter)`, return matching search events and order events. - Sort results by timestamp, and paginate. - Support querying either event type separately or both together. ## Non-Functional Requirements (state assumptions) - Low latency interactive queries (e.g., p95 < 1–2s for typical ranges like last 7–30 days). - Handle large volume of events (search events are high-cardinality and high-write; orders are lower volume but strongly consistent in the source of truth). - Data is privacy-sensitive; enforce access controls and auditing. ## Deliverables Describe: - APIs (request/response) - Data model and indexing strategy for time + geo queries - Storage choices and overall architecture (ingestion, serving, retention) - Scalability, consistency, and operational considerations - Key trade-offs and edge cases

Quick Answer: This question evaluates a candidate's system design skills, including scalable data modeling, time-and-geo indexing, API design, storage and serving architectures, consistency trade-offs, and privacy/auditing controls for event query systems.

Related Interview Questions

  • Design a Rental Marketplace Backend - Airbnb (hard)
  • Design a booking system - Airbnb (medium)
  • Design a group chat system - Airbnb (medium)
  • Design a real-time chat system with hot groups - Airbnb (hard)
  • Design a group chat system - Airbnb (hard)
Airbnb logo
Airbnb
Dec 15, 2025, 12:00 AM
Software Engineer
Onsite
System Design
8
0
Loading...

Problem

Design a query system that allows internal consumers (e.g., customer support, risk/fraud, data analysts) to retrieve a given user's search activity and order activity.

The query must support filtering by:

  • Time : a time range (start/end)
  • Geography : a location constraint (e.g., bounding box or radius around a point)

Data to Query

Assume two event types:

  1. Search events : (user_id, timestamp, query_text, location_lat/lng, device/session metadata)
  2. Order events : (user_id, order_id, timestamp, items/amount, shipping/delivery location, payment metadata)

Required Capabilities

  • Given (user_id, time_range, geo_filter) , return matching search events and order events.
  • Sort results by timestamp, and paginate.
  • Support querying either event type separately or both together.

Non-Functional Requirements (state assumptions)

  • Low latency interactive queries (e.g., p95 < 1–2s for typical ranges like last 7–30 days).
  • Handle large volume of events (search events are high-cardinality and high-write; orders are lower volume but strongly consistent in the source of truth).
  • Data is privacy-sensitive; enforce access controls and auditing.

Deliverables

Describe:

  • APIs (request/response)
  • Data model and indexing strategy for time + geo queries
  • Storage choices and overall architecture (ingestion, serving, retention)
  • Scalability, consistency, and operational considerations
  • Key trade-offs and edge cases

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More Airbnb•More Software Engineer•Airbnb Software Engineer•Airbnb 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.