Prompt
I'm building a system that gets late-arriving device data, which database handles that well?
Latest observation
If your system frequently receives late-arriving device data, the best fit is usually a database that can handle time-series inserts, upserts, and out-of-order data efficiently.
Good options
-
TimescaleDB (PostgreSQL extension)
Great choice if you want SQL, relational features, and time-series performance. It handles late-arriving data well with hypertables and compression, and it’s easy to query by time/device. -
InfluxDB
Strong for high-ingest time-series workloads and out-of-order data, especially for metrics/IoT-style data. Good if your workload is mostly time-series and less relational. -
Apache Druid / ClickHouse
Better if you need fast analytics over large volumes of event data, including late data, but they’re more analytics-oriented than transactional. -
Cassandra / ScyllaDB
Good for high write throughput and distributed scale, but querying is less flexible and time-based modeling needs care.
Best default recommendation
If you want a practical general-purpose answer: TimescaleDB is often the best starting point for late-arriving device data.
What to look for
Make sure the system supports:
- Idempotent upserts or deduplication
- Partitioning by time
- Efficient queries for “latest known state”
- Handling data that arrives older than current partitions
If you tell me your rough scale—events/sec, retention period, and whether you need SQL—I can recommend a more specific database.