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
criccomini
08/14/2024, 10:26 PM
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.
criccomini
08/14/2024, 10:27 PM
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.