cloudstateio / cloudstate

Distributed State Management for Serverless
https://cloudstate.io
Apache License 2.0
764 stars 97 forks source link

How to do KVS #51

Open viktorklang opened 5 years ago

viktorklang commented 5 years ago

Having support for Key-Value style state management would be interesting, it could either be implemented on top of CRUD #50 by the Entity being a Map.

This also impacts the user-facing API as they would not have to deal with anything but the inbound commands (not events), by adding/modifying/removing the values in the Map.

kwehden commented 5 years ago

We should consider doing this on Postgres, to demonstrate that we work with other persistence stores outside of Cassandra. This I think is a perceived bias that we've seen in some feedback.

viktorklang commented 5 years ago

@kwehden Agreed—I'm a big fan of Postgres as an RDBMS

andyczerwonka commented 5 years ago

@kwehden & @viktorklang using native hstore and/or JSONB within Postgres may make sense for this use case