Is having a database that happens to be a product you sell as part of your runtime good, or are you creating some mixed incentives here?
Are you a database vendor now?
If not, don’t build a database.
If this is a mature product that someone else is looking after, and it’s good and free and we’ll maintained like redis or SQLite, sure.
…but it seems like building cloud databases is not the core competency of a group building a javascript runtime.
Once money is involved, it’ll either be a distraction from their core mission, or become their core mission.
A KV db you can use for quick hacks? Sure. Awesome!
A scalable production database you’re selling to people? O_o why are you doing that?