About Snapshots #211
Replies: 1 comment
-
Hi @wvandermerwe , glad to hear that!
It depends on what variation of the state machines you want to use.
However, if you want a hybrid approach, with event-sourcing and in-transaction event handling, you can override the default storage drivers or even implement yours from scratch. It's not hard, but is better reserved as a last effort, as they require more implementation and will decrease expressiveness of the code, that is one of the goals of this library. |
Beta Was this translation helpful? Give feedback.
-
Hi, firstly thanks for publishing this library, was very interesting reading the docs and looking at the code!
From what I can tell, the snapshot table is not created transactionally with the other tables like the journal etc.
My question is, is this the same for inserts? Ie, will snapshots be inserted atomically alongside the other tables?
Also, can snapshots be inserted/updated after every successful command/event? In order to derive some Postgres views from this in the same DB, thus not needing projections in other processes/DBs.
Beta Was this translation helpful? Give feedback.
All reactions