DEV Community


Discussion on: A handful of engineering principles at Factorial

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 behind for auditing and inter-domain communication

dfockler profile image
Dan Fockler

Okay, yeah I've used something similar called ActiveInteraction.

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