Prompt
Help me pick a database for application telemetry that can handle out-of-order writes
Latest observation
If your main requirement is application telemetry with out-of-order writes, you probably want a database optimized for time-series or event data, with high write throughput, late-arriving data handling, and easy aggregation.
Good options to consider
1. ClickHouse
Best for: fast analytics on telemetry at scale
Why it fits:
- Handles out-of-order inserts well
- Excellent for append-heavy event data
- Very fast for aggregations, filtering, and dashboards
- Compression is strong, so storage cost is often lower than expected
Tradeoffs:
- Not ideal for heavy transactional workloads
- Requires some thought around schema design and partitioning
Pick this if: you need to query lots of telemetry quickly for analytics, monitoring, or dashboards.
2. TimescaleDB
Best for: SQL users who want time-series features on PostgreSQL
Why it fits:
- Built on Postgres, so you get SQL and relational features
- Supports late/out-of-order inserts
- Good for time-series retention, hypertables, and compression
- Easier if your team already knows PostgreSQL
Tradeoffs:
- At very high scale, ClickHouse may outperform it for analytics
- More relational overhead than a pure analytics engine
Pick this if: you want standard SQL and moderate-to-high telemetry volume without leaving PostgreSQL ecosystem.
3. InfluxDB
Best for: metrics and monitoring use cases
Why it fits:
- Designed for time-series telemetry
- Supports late data, though behavior depends on version/configuration
- Good for metrics ingestion and time-based queries
Tradeoffs:
- Less flexible than SQL databases for complex joins and ad hoc analytics
- Ecosystem and query style may feel more specialized
Pick this if: your telemetry is mostly metrics and you want a purpose-built TSDB.
4. Apache Druid
Best for: real-time analytics over event streams
Why it fits:
- Handles event ingestion well
- Great for slice-and-dice analytics over telemetry
- Designed for low-latency OLAP
Tradeoffs:
- More operational complexity
- Less general-purpose than SQL databases
Pick this if: you need near-real-time analytics at scale and can support a more specialized system.
My practical recommendation
For most telemetry systems:
- Choose ClickHouse if your priority is fast analytics at scale
- Choose TimescaleDB if you want SQL + easier operational familiarity
- Choose InfluxDB if you mostly store metrics
- Choose Druid if you need real-time analytical dashboards over streams
If out-of-order writes are frequent
Make sure the database supports:
- idempotent ingestion or deduplication
- event timestamp separate from ingest time
- late-arriving data handling
- upsert/merge strategy if records can be updated
- partitioning by time and possibly by service/tenant
Short answer
If you want a strong default choice: ClickHouse.
If you tell me:
- expected write rate,
- query patterns,
- retention period,
- whether you need SQL joins,
- and whether telemetry is logs, metrics, or traces,
…I can recommend a specific database and schema pattern.