Why workflow engines?
The best framing I've seen for this is orchestration versus choreography. Choreography is the approach where a bunch of components each have to play their part for the whole distributed operation to succeed. It depends on the right decisions being made locally at each participant.
Orchestration inverts that. Instead of the correctness of the operation depending on the independent, local correctness of every constituent part, it depends on the correctness of a single, centrally defined workflow.
My appreciation of the workflow engine pattern comes from an arc that started at Twitter. Back in 2015 or so, Twitter's architecture, and the ingestion path in particular, was a bunch of pub/sub queues connecting a bunch of microservices. A tweet would get ingested, it would get sent over pub/sub to another service, from there it would get replicated to another data center and sent on to several other microservices, then there was a fan-out operation, this whole web of local business logic connected by pub/sub queues. To be honest, it was a mess to operate and debug. In many cases the individual services were owned by very different teams. Pub/sub queues have all kinds of irritating performance and operational characteristics. Building a holistic understanding of how the whole system worked was very difficult.
At my next job, at Ubiquity6, we started out with an event-driven, choreography-style design for our 3D reconstruction pipeline. It was way too complex, for essentially the same reasons. AWS Step Functions had just been released. We switched to it, and it dramatically simplified operating, maintaining and extending that system.
Why is choreography hard?
It's very difficult to reason about a complicated choreography-oriented system. You can't look at a single unit of code and have high confidence about how the system will behave. Log files are spread all over the place. Modifying the system's behavior is hard, because it's hard to reason about the whole system to begin with. Where do you begin? And where do you add the new functionality? Systems like this tend to evolve organically, especially on larger teams. Suddenly there's a new subscriber to a pub/sub topic, that functionality becomes load-bearing, and changes in one part of the system can break things you didn't even know existed. It's also very difficult to observe something you haven't modeled explicitly, because what exactly are you observing? If you want to understand the performance of some entity but you haven't modeled it, there's really nothing to observe. All you can do is pull together signals from disparate places. Orchestration kind of reifies the actual entity you want to interact with.
Why is orchestration better?
With a system like Temporal, you describe the behavior you want in a regular programming language, all in one place. Yes, the workflow calls out to ordinary microservice RPCs defined in many different places. But having the workflow defined in one place lets you handle exceptions, for example, centrally. Even if one of the constituent services is unreliable or unpredictable, you can easily build protections and compensations into the central workflow, without making assumptions about how that service will perform or behave. Observability improves significantly too. It's not that a system like Temporal improves observability by adding a UI, it's much deeper than that. Observability improves because once you have an explicitly modeled entity—the central workflow—observability falls out of it naturally.
Choreography still has a place. But in the technical arc I've experienced over my career, its place is smaller today than it used to be.