domino-clj

martinklepsch 2020-01-08T09:50:48.000900Z

@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?

martinklepsch 2020-01-08T10:09:24.001500Z

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

martinklepsch 2020-01-08T10:09:43.002100Z

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

yogthos 2020-01-08T13:33:26.001100Z

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

yogthos 2020-01-08T13:34:22.002Z

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

yogthos 2020-01-08T13:34:59.002700Z

I would represent the state in the model in this scenario

yogthos 2020-01-08T13:35:40.003500Z

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

mafcocinco 2020-01-08T14:50:11.005700Z

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.