Cascadiq

Log Aggregator

project · Level 2 · 40 min

Description

Design a small service that accepts log entries (level, message, timestamp), stores them in memory, and provides a query API (by level, time range, limit).

Requirements

  • POST to add logs
  • GET with query params (level, from, to, limit)
  • In-memory storage with efficient range queries

Constraints

No external DB. Focus on API and data structure.

Deliverables

API design and core logic.

Tags

BackendObservability