Effect CommunityEC
Effect Community6mo ago
8 replies
Mackie

How to Initiate a Workflow and Respond Immediately in an Effect-Based REST API Server

Hello, I'm having trouble understanding conceptually how kick off a workflow and then immediately proceed to the next step in an effect. For example, if I'm running a REST API server, and in the POST /users handler, perhaps I want to initiate a HowsItGoingEmailWorkflow, where after 1 day of sleeping, it will send an email to a user. I'd like to initiate the HowsItGoingEmailWorkflow but then immediately respond with an HTTP 201. Is this possible or am I mixing up some concepts? Thanks
Was this page helpful?