I've written a server which consumes a live stream of chronologically ordered events (time-series) and maintains a sliding window (24h) of the data. It only supports one type of query:
get N seconds of events starting at timestamp T
I'm currently using leveldb with unix timestamps as the keys. This works alright but, since leveldb is a LSM, the deletes are expensive (tombstones).
Can anyone suggest a better solution/datasore for this use case?
- The data is too big to store in memory
- The server is written in Go