3 ms·
I went further, to log the logical changes of state as json files. (aka command sourcing) To reduce the IO overhead, I batch multiple json values into a larger
by aabbcc1241 6y ago
I went further, to log the logical changes of state as json files. (aka command sourcing)
To reduce the IO overhead, I batch multiple json values into a larger file.
I don't need random access because I'll replay all the changes when the server start.
Going to open source the library soon.
- jarofgreen 6y agoI'm also working on a similar system - a JSON datastore with a event stream so there is a full history of changes. However we are using Postgres as a backend. Our code is already technically Open Source, but it's not relatively stable and not doc'd yet, so I won't link.
- aabbcc1241 6y agoI can see why people prefer sql database over plain files, for better edge cases handing. But that requires more configurations and resources.