domino-clj 2020-01-08

@yogthos hey Dimitri! Domino looks quite versatile, I’m wondering if there are any more complex example out there that you could recommend as good inspiration for how to do things with Domino?

specifically I’m wondering if I could use domino to design a system that manages subscriptions to a remote data store

for this I think effects would need to be able to maintain some state?

we were actually working on a more comprehensive example with @nikp but haven't quite got it ready yet

and it sounds like it would be a good use case, you can have the subscriptions go through the events, and then use effects to do effectful actions after that

I would represent the state in the model in this scenario

so you'd keep a context that will contain the current state, and whenever an external event occurs, you'd transact it and fire the effects based on the new state

Not sure if this helps, but you can have effectful events in domino. Ideally, your data model would be such as to avoid the necessity to do this but it does happen sometimes. I've used domino to build the data processing pipeline for backend services and, in that context, making calls to a DB was the most common effectful event.