AIFeed

Workflows and Durable Execution: Beyond Request-Response

Summary

Most applications start things with a similar pattern. A client system makes a request, a server does some work, and returns a response. Opening a product page on an e-commerce website or updating the display name on your social media profile both fit this pattern. In this pattern, the work typically finishes quickly. But there are many other processes that have a much longer life. For example, generating a large file for export might take several minutes. Or the process of setting up a customer account might involve several services. These types of processes must continue even after the original HTTP connection is closed or the server handling it gets restarted. In this article, we’ll look at these types of processes in detail. They typically involve workflows and durable execution principles. Here’s what we’ll cover: The common approach The simplest workflow How state machines make workflows easier How workflows can continue after a crash How to deal with duplicates How recovery happ…

Original text(via ByteByteGo)

Most applications start things with a similar pattern. A client system makes a request, a server does some work, and returns a response. Opening a product page on an e-commerce website or updating the display name on your social media profile both fit this pattern.

In this pattern, the work typically finishes quickly. But there are many other processes that have a much longer life. For example, generating a large file for export might take several minutes. Or the process of setting up a customer account might involve several services. These types of processes must continue even after the original HTTP connection is closed or the server handling it gets restarted.

In this article, we’ll look at these types of processes in detail. They typically involve workflows and durable execution principles. Here’s what we’ll cover:

  • The common approach
  • The simplest workflow
  • How state machines make workflows easier
  • How workflows can continue after a crash
  • How to deal with duplicates
  • How recovery happens in workflows
  • The role of a person in a workflow
  • Workflow orchestration or choreography

The Common Approach

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by ByteByteGo
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗