Understanding the concept of 'Workflow Entity'

I’m reading this article An opinionated guide to productionizing Workflows | Temporal Documentation and I can’t understand what is meant by “structure your Workflow as an ‘entity Workflow’”. Could you please explain it or maybe provide some examples in Go?

Hi @alexv

I understand an entity workflow as a workflow that maps and represents an entity within your business domain, e.g. a customer, user, the cart in an online shop etc…

You can have other types of long-running workflows too, like pipelines that run for days or the one shown in this blog Caching API Requests With Long-Lived Workflows in Temporal

Those workflows are usually long-running workflows (they can run for days, months, or years) in contracts to workflows that perform a short set of operations, like updating database rows.

Let me know if it helps,

Antonio