r/Clojure • • 26d ago

Two apps one process

https://andersmurphy.com/2026/11/09/two-apps-one-process.html
28 Upvotes

30 comments sorted by

View all comments

3

u/whoisarepo 25d ago

I like this! I use babashka sub processes for my clojuredart and clojure script projects, if this technique translates well then I can simplify some things, good work! I wonder how it handles data corruption from interruption between multiple writers, feels like the orchestrator eats the bulk of abstraction to make it feel magical

2

u/andersmurphy 25d ago

Not sure what you mean about corruption. Each app has it's own sqlite and batches to them separately. All apps implement CQS, so writes are async so the can be batched. You only see the changes in the next tick.

3

u/whoisarepo 24d ago

This makes a bit more sense, like the mechanics of a LAN Game server. It’s just…weird lol, but cool. And makes me wonder why haven’t more polylithic projects attempted unifying this way as it’s not clj specific