holos-run / holos

Holos - The Holistic platform manager
https://holos.run
Apache License 2.0
1 stars 0 forks source link

NATS EventStore spike #119

Closed jeffmccune closed 5 months ago

jeffmccune commented 5 months ago

Spike Event Sourcing + CQRS in Nats

Depends on:

jeffmccune commented 5 months ago

I'm going to call this. Seems not the right trade-off at this point in time.

I can't figure out how to model the concept of transferring money from one account to another account with NATS Jetstream acting as an event source.

Consider Rita's Eventstore

It's not clear how messages after the first are guaranteed in order.

NATS doesn't support transactional batch publish, good discussion here: https://github.com/nats-io/nats-server/issues/2384

Seems more clear and understandable to use sql transactions when processing commands that mutate multiple entities.

sysradium commented 3 weeks ago

I've had a similar spike. So far from my investigation the only viable solutions are either something like PostgreSQL (not ideal) and EventStoreDB. 🤔