AWS Builder Center
When Should an AWS Workflow Be Synchronous, Asynchronous or Event-Driven?

When Should an AWS Workflow Be Synchronous, Asynchronous or Event-Driven?

Learn when AWS workflows should be synchronous, asynchronous or event-driven, and how to choose between API Gateway, SQS, EventBridge and Step Functions.

Series: AWS in Practice (By Deph..) (3 articles)

  1. 3
    When Should an AWS Workflow Be Synchronous, Asynchronous or Event-Driven? This article
DevOps | AWS | Automation | n8n | Python Expert
Most AWS architecture diagrams look reasonable when every service is healthy. API Gateway calls Lambda, Lambda talks to another service, the database responds and the user gets a result. The difficult decisions appear when one component becomes slow, traffic suddenly increases or a task takes longer than the caller is willing to wait.
This is where the communication model starts to matter. A workflow can be synchronous, asynchronous, event-driven or a combination of all three. Choosing between them is less about which AWS service is popular and more about what the caller needs to know, how long the work takes and what should happen when part of the system is unavailable.
A useful question to ask before selecting a service is simple:
Does the caller need the result before it can continue?
The answer eliminates a surprising number of bad architecture choices.

Start With the Simplest Case: Synchronous Communication

In a synchronous workflow, the caller sends a request and waits for a response. A typical HTTP API behaves this way.
Client | | Request v API Gateway | v Lambda | v Service / Database | | Response v Client
Suppose a customer opens an order page and asks to view order details. The application needs the information before it can render the page. Making this interaction asynchronous would create extra work because the client would have to submit a request, receive an acknowledgement, check whether processing has finished and eventually retrieve the result.
Synchronous communication makes sense when the result is required immediately and the work can finish within an acceptable response window. It also makes the request flow relatively easy to understand because success or failure travels directly back to the caller.
The simplicity can be deceptive, though. Every synchronous dependency becomes part of the response path.
Imagine an API that calls three services:
Client | v Order API | +----> Customer Service | +----> Inventory Service | +----> Pricing Service
If the pricing service becomes slow, the Order API becomes slow. If the inventory service is unavailable, the Order API may fail even if its own infrastructure is healthy. Adding synchronous dependencies can gradually turn one request into a chain where the user's experience depends on every service responding correctly.

When Synchronous Is a Good Choice

I would normally start with synchronous communication when:
  • The caller needs an immediate answer.
  • The operation is short-lived.
  • The user is actively waiting for the result.
  • The downstream dependency is expected to respond within a predictable period.
  • A failure should be reported directly to the caller.
  • The workflow has only a small number of dependencies.
Examples include authentication checks, fetching product details, validating a coupon, retrieving an account balance or checking whether inventory is available before showing a purchase option.
The mistake is not using synchronous communication. The mistake is extending it into workflows where the caller no longer needs to wait.

Some Work Does Not Belong Inside the Request

Consider an e-commerce API that accepts an order. After storing the order, the application needs to generate an invoice, send an email, update analytics, notify a warehouse system and perhaps update a CRM.
One approach is to do everything before responding:
POST /order | v Create Order | v Generate Invoice | v Send Email | v Update Analytics | v Notify Warehouse | v Return 200
The customer probably does not need all five operations to finish before learning that the order was accepted. Keeping them in the request path increases response time and gives unrelated systems the ability to break order creation.
This is usually a signal that part of the workflow should become asynchronous.

Asynchronous Communication Changes Who Has to Wait

In an asynchronous workflow, the caller hands off work and continues without waiting for the final result. The system acknowledges that the request has been accepted, while processing happens separately.
A queue such as Amazon SQS is a natural fit when a producer needs to hand work to a consumer without requiring both components to be available at exactly the same time.
Order API | | message v Amazon SQS | | process when ready v Worker | v Generate Invoice
If the worker slows down temporarily, messages can wait in the queue instead of forcing the Order API to wait. The producer and consumer can also scale differently because the queue creates a buffer between them.
This is one of the practical reasons  cloud connectivity and distributed application design  often move beyond direct service-to-service API calls as systems grow. Message queues and event routing give components more independence, especially when workloads arrive at different rates.
Asynchronous communication is a strong choice when:
  • The caller does not need the final result immediately.
  • Processing can take seconds, minutes or longer.
  • Traffic can arrive faster than consumers can safely process it.
  • Producer and consumer availability should be separated.
  • Work needs to survive temporary consumer failures.
  • Background processing is acceptable.
Image processing, report generation, email delivery, document processing, data imports, video transcoding and background AI jobs are common examples.

A Queue Is More Than a Place to Put Work

Moving work to Amazon SQS does not automatically make an architecture reliable. It changes the failure model.
The producer may successfully send a message even though the consumer fails later. Messages can be retried, processing can take longer than expected and consumers need to handle repeated delivery safely. Failed messages also need somewhere to go after repeated processing attempts.
The architecture now looks less like a request and more like a lifecycle:
Producer | v SQS Queue | v Consumer | +---- Success ----> Complete | +---- Failure ----> Retry | +---- Repeated failure ----> DLQ
This means asynchronous systems need good answers to questions synchronous APIs can sometimes avoid. How does the caller check status? What makes processing safe to retry? What happens to messages that repeatedly fail? How will an engineer trace a request after it has crossed several components?
AWS guidance describes asynchronous communication as useful for fault isolation, handling traffic spikes and letting services process requests according to their capacity. It also points out the tradeoff: troubleshooting and testing become harder because a single operation can cross multiple systems.
That tradeoff is worth remembering. Asynchronous does not mean simpler. It means moving complexity to a place where the system can handle it more safely.

Asynchronous and Event-Driven Are Related, but Not Identical

These terms are often used as though they mean the same thing. They overlap, but they describe different ideas.
An asynchronous message can represent a command:
GenerateInvoice
It tells a consumer to perform work.
An event describes something that has already happened:
OrderPlaced
It does not necessarily tell any particular service what to do next. It announces a fact and interested consumers decide whether that fact matters to them.
That distinction becomes useful as an application grows.

Event-Driven Architecture Helps When Several Systems Care About the Same Fact

Return to our order example. Once an order is placed, several components may care:
\+----\> Inventory
|
OrderPlaced --------+----> Analytics | +----> Notifications | +----> Fraud Detection | +----> Loyalty Service
The order service should not need to know about every consumer. Its responsibility can end after publishing the  OrderPlaced  event.
Amazon EventBridge fits this type of architecture because producers can publish events to an event bus while rules route matching events to one or more targets. Producers and consumers do not need direct knowledge of each other.
This changes the relationship between services. Adding a new consumer may no longer require changing the producer, which can be valuable when many teams or systems react independently to the same business event.

When Event-Driven Is a Good Choice

Event-driven communication becomes attractive when:
  • Multiple consumers need to react to the same business event.
  • The producer should not know which consumers exist.
  • New consumers may be added later.
  • Different consumers need different subsets of events.
  • Services should react independently.
  • The architecture represents business state changes naturally as events.
Examples include  OrderPlaced ,  PaymentCompleted ,  UserRegistered ,  ShipmentDispatched ,  FileUploaded  and  SubscriptionCancelled .
A useful test is to read the event name aloud. If it sounds like something that already happened rather than an instruction, it is probably being modeled in the right direction.

SQS or EventBridge Is Not Really the Question

Teams sometimes frame architecture discussions as "Should we use SQS or EventBridge?" That skips the more important question of what communication behavior the application needs.
Amazon SQS is well suited to buffering work for consumers. It is especially useful when the consumer needs to process work at its own pace or when producer and consumer availability should be separated.
Amazon EventBridge is useful when events need routing based on their contents or when several targets may react independently.  AWS guidance for EventBridge  describes it as a way to decouple producers from consumers and move routing logic out of individual microservices.
The two services can also work together:
\+----\> Lambda
|
EventBridge -------+----> Step Functions | +----> SQS ----> Worker | +----> Another Event Bus
That last path is useful when a consumer needs the routing benefits of EventBridge but also needs the buffering behavior of a queue. EventBridge routes the event, while SQS absorbs differences between the rate at which events arrive and the rate at which the consumer can process them.
Architecture choices do not need to be exclusive.

What About Multi-Step Business Workflows?

A different problem appears when a business operation contains several dependent steps.
Imagine an order process:
Create Order | v Reserve Inventory | v Process Payment | v Arrange Shipment
These steps cannot always run independently. Payment may only happen after inventory has been reserved. Shipment should not start if payment fails. If inventory is reserved and payment later fails, the system may need to release that inventory.
At this point, the problem is not only communication. It is workflow coordination.
AWS Step Functions is useful when a process needs explicit sequencing, branches, retries, waits, error handling or state across several steps.  AWS Step Functions service patterns  also allow workflows to handle different interaction styles, including request-response operations, waiting for a job to complete and waiting for callbacks.
A state machine makes the business flow explicit:
Reserve Inventory | v Process Payment / \ Success Failure | | v v Ship Release Inventory
This can be easier to reason about than distributing the entire process across a collection of services that only know which event they should emit next.

Orchestration and Event-Driven Choreography Solve Different Problems

With orchestration, a central workflow knows the sequence.
Step Functions | +----> Reserve Inventory | +----> Process Payment | +----> Arrange Shipment
With event-driven choreography, services react to events and produce new events:
OrderPlaced | v Inventory Service | v InventoryReserved | v Payment Service | v PaymentCompleted | v Shipping Service
Choreography removes the central coordinator and can keep services loosely coupled. As the business process grows, though, understanding the complete workflow may require tracing events across several services.
Orchestration makes the process easier to see in one place but creates an explicit coordinator. Neither approach is automatically better. The choice depends on whether the workflow benefits more from independent reactions or from centralized control over sequencing and state.

Use the Business Requirement to Choose the Pattern

Instead of starting with AWS service names, I use a small set of questions.
Question
Likely direction
Does the caller need the result immediately?
Synchronous
Can the work finish after the caller continues?
Asynchronous
Can producers generate work faster than consumers process it?
Queue
Do several independent systems care about the same fact?
Event-driven
Does routing depend on event contents?
EventBridge
Does work need buffering until a consumer is ready?
SQS
Does the process have dependent steps, branches or waits?
Step Functions
Does a human or external system need to respond later?
Asynchronous callback/workflow
Is the user actively waiting for a simple result?
Keep it synchronous if practical
This is only a starting point. Ordering requirements, delivery guarantees, throughput, latency, failure handling, cost, security and operational experience can change the final architecture.
The important part is that the communication pattern comes before the AWS service selection.

Most Real Systems Should Be Hybrid

A production application rarely needs one communication model everywhere. Different parts of the same user journey have different requirements.
Consider an order submission:
User | | synchronous v API Gateway | v Order Service | | store order | | synchronous response v "Order accepted"
Order Service
|
| event
v
EventBridge
/ | \\
/ | \\
v v v
Inventory Analytics SQS | | asynchronous v Email Worker
The user gets a synchronous response because they need confirmation that the request was accepted. The order service publishes an event because several systems care about the new order. Email processing goes through a queue because the customer should not wait for the mail provider.
If fulfillment later requires a controlled sequence of inventory, payment and shipping operations, Step Functions could coordinate that part of the workflow.
This hybrid design is not architectural indecision. It is each interaction using the communication model that matches its actual requirement.

Watch for Synchronous Chains That Grow Quietly

One of the easiest architecture problems to create is a synchronous call chain that grows one dependency at a time.
It starts simply:
API -> Service A -> Database
A new requirement arrives:
API -> Service A -> Service B -> Database
Then another:
API -> Service A -> Service B -> Service C -> Database
Each addition may look reasonable during development. In production, the request now inherits latency and failure opportunities from every dependency in the chain.
Before adding another synchronous call, ask whether the caller truly needs the downstream result before continuing. If the answer is no, that dependency is a candidate for asynchronous processing or an event.
This question can prevent a surprising amount of accidental coupling. Developers exploring these patterns across serverless applications can use this  AWS developer roadmap  as a broader reference for APIs, messaging with SQS and SNS and decoupled AWS architectures.

Do Not Convert Everything Into Events Either

Once teams see the benefits of decoupling, it is tempting to make every interaction event-driven. That can create a different kind of complexity.
A simple request that once involved one API call may now require an event bus, several consumers, correlation IDs, retries, eventual consistency, status tracking and distributed tracing. The system becomes harder to understand without gaining much from the extra machinery.
If a client needs a product price right now, calling a pricing API can be perfectly reasonable. Publishing  PriceRequested , waiting for  PriceCalculated  and correlating the response back to the original client is probably solving a problem the application did not have.
Loose coupling has value, but so does directness.

Design the Failure Path Before the Happy Path Is Finished

Communication patterns become much easier to evaluate when you imagine failure first.
For a synchronous call, ask what happens when the dependency takes five seconds instead of 100 milliseconds. For an SQS consumer, ask what happens when the same message is processed again. For an EventBridge target, ask what happens when delivery fails. For a Step Functions workflow, ask what should happen when step four fails after the first three have already changed state.
These questions often reveal the right architecture faster than drawing the successful request path.
A workflow is not finished when every arrow in the diagram works. It is finished when the team understands what happens when one of those arrows does not.

Choose the Boundary, Then Choose the AWS Service

Synchronous, asynchronous and event-driven communication are not competing architecture trends. They are tools for expressing different relationships between components.
Use synchronous communication when the caller genuinely needs an immediate result. Introduce asynchronous processing when work can happen later or needs buffering. Use events when a producer should announce what happened without owning every downstream reaction. Bring in explicit orchestration when a multi-step process needs sequencing, state, retries, waits or recovery logic.
The most useful architecture diagram is not the one with the most AWS icons. It is the one where each connection has a clear reason for being synchronous, asynchronous or event-driven.
When that reason is clear, choosing between API Gateway, SQS, EventBridge, Step Functions, Lambda and the rest of the AWS toolbox becomes much easier.

Series: AWS in Practice (By Deph..) (3 articles)

  1. 3
    When Should an AWS Workflow Be Synchronous, Asynchronous or Event-Driven? This article
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article