What storage to use?

I store JSON config per host inside KV. It has a 60-sec delay before being available globally (that's not a problem for regular usage). But I also want to add preview mode where the JSON value stored inside KV is available quickly. I can store that value when the KV is set also to DO, R2, or D1. I only require the "live" value when someone wants to preview. It doesn't have to be fast and will only be used directly after the value is set to preview if things are working as expected. Which storage is the most recommended option for such a use case? I was thinking D1...
2 Replies
Erisa
Erisa2y ago
R2 can be used as a strongly consistent key/value storage, main downside is being a bit slower than KV right now so if speed isnt a concern then its an easy switch from KV If you need a full DB with schema and etc then D1 is your friend
Advany
AdvanyOP2y ago
thanks!
Want results from more Discord servers?
Add your server