https://slatedb.io logo
Also, in https://slatedb.io/docs/introduction#use-...
# general
s
Also, in https://slatedb.io/docs/introduction#use-cases, the data loss on failure would only be a partial data loss since the data up till the previous write to object storage would be restorable?
c
Correct, data loss occurs in the case where you send a write, but don't await the data to be written to the WAL. The exposure is configurable depending on your eneds. for example, if you set flush_ms to 50, then you'd have a roughly 50ms window where data loss could occur if there's a network failure/process failure/etc.
If you don't want that, then you can .await on the
put
. That will ensure that you're notified of any failures and can retry.
s
I see, a
flush_ms
of 50ms would mean a PUT to S3 every 50ms?