A system design question for you:
I'm building an audit logs service. It's purpose is to take in logs of actions users perform across several services (apps) for audit purposes. Apart from the accounts service, it will receive some of the highest traffic internally. It will expose read-only endpoint to the outside world, and receive events from services only.
Questions:
- What would be your choice of DB for this service?
- To receive the logs from services, we have a way to expose endpoints for only services; would you have services send HTTP requests for logs or you'll use a message broker (think RabbitMQ, Kafka) or something with outbox pattern?
- How would you design searching? We intend to support both semantic and parameterised searches
- What other ideas would you incorporate with regards to building to make things seamless?
We have a choice of languages for this service: Python, Rust or TS. Nothing apart from these three.
We have several internal services, about 8 - 11 of them. This number is expected to double over the next couple of years.
DB Choice: MongoDB, supports high writes on large concurrency, supports semi-structure, MongoDB read latency/throughput works
Ingestion: Outbox pattern for consistency guarantee, kafka for buffering
Search: Text search with vector support
Oct 13, 2026 · 5:58 AM UTC
2
43

