flow-emulator icon indicating copy to clipboard operation
flow-emulator copied to clipboard

Support non-local databases

Open KeisukeYamashita opened this issue 3 years ago • 3 comments

Instructions

Issue To Be Solved

Currently, the Badger is only supported as an DB and all the data are written to the local disk. To use this emulator as a development network, in my company, we are planning to deploy this emulator and the dev wallet to the GKE cluster.

But since the Badger makes the workload stateful, we need to create a Statefulset with persistence volume to store the data. It will make it easier to manage if the emulator can run in stateless manner because Kubernetes workloads are basically designed as stateless.

(Optional): Suggest A Solution

I saw this article Supporting digital ownership and decentralization with Dapper Labs and Google Cloud saying that the Dapper, inc has now partnerships with GCP.

Therefore, I think the best candidate will be Cloud Firestore, a NoSQL database from GCP. I also considered Cloud Spanner but it's not KVS and it's quite expensive 💵

KeisukeYamashita avatar Feb 16 '22 17:02 KeisukeYamashita

I like this feature but I can't promise you a delivery date from our side. Hopefully, we can work on this soon, but you are also welcome to take a stab at it if you have the resources ofc. I hope you understand.

devbugging avatar Feb 17 '22 14:02 devbugging

Hi, I didn't intend to assign someone for this, I wanted to know the communities and the maintainers opinion and opened a ticket. Thank you for your reply!

KeisukeYamashita avatar Feb 18 '22 14:02 KeisukeYamashita

I think here redis compatible storage can be good solution. So it can be cross-vendor.

bluesign avatar Sep 15 '22 15:09 bluesign

I think we can close this as now we support redis backend.

bluesign avatar Jan 16 '23 10:01 bluesign