Skill 1.1.4
Describe differences between synchronous and asynchronous patterns
Key Concepts
Synchronous patterns, such as a client calling API Gateway backed by Lambda, are simple and give an immediate result, but the caller is blocked and the overall latency is the sum of every step. They are also limited by timeouts, such as API Gateway's default 29-second integration timeout.
Asynchronous patterns hand the request to a queue, topic, event bus or asynchronous Lambda invocation and return immediately, often with a request ID the client can use to check progress later. This improves responsiveness and resilience for long-running work, at the cost of handling retries, duplicates and eventual results. The same service can support both: Lambda can be invoked with RequestResponse (synchronous) or Event (asynchronous).