DEV Community

loading...

Discussion on: A handful of engineering principles at Factorial

Collapse
masylum profile image
Pau Ramon Revilla Author

Hi Dan,

An Interactor is just a glorified method. Basically a class with a call method that performs a verb. In our specific case though, we've built some sort of abstraction so all our interactors return a "Result" (like you would in rust) to communicate how that user intention succeded or not. Also, our interactors always leave an event (we use railseventstore.org) behind for auditing and inter-domain communication

Collapse
dfockler profile image
Dan Fockler

Okay, yeah I've used something similar called ActiveInteraction. github.com/AaronLasseigne/active_i...

It also returns a result object similar to what you are talking about.