---
title: "Discussion on \"How to send backend response quickly when having 15 await functions\" | Hashnode"
description: "Discussion on \"How to send backend response quickly when having 15 await functions\". how to send backend response quickly when having 15 await functions"
url: "https://hashnode.com/posts/how-to-send-backend-response-quickly-when-having-15-await-functions/6a04444b52a9c969d62e0a6b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to send backend response quickly when having 15 await functions](https://akshitmahajan.hashnode.dev/how-to-send-backend-response-quickly-when-having-15-await-functions?utm_source=hashnode&utm_medium=feed)

how to send backend response quickly when having 15 await functions

May 13 · 4 min read · akshitmahajan.hashnode.dev  
Read the article

-   [#webhooks](https://hashnode.com/tag/webhooks)
-   [#ai](https://hashnode.com/tag/ai)
-   [#backend](https://hashnode.com/tag/backend)

## Written by

[Akshit](https://hashnode.com/@akshit-)

@akshit-

  
[View profile](https://hashnode.com/@akshit-)

Software Engineer

## Responses 2

Markdown supported · ⌘↵ to post

[EgeTheCEO](https://hashnode.com/@egecelik)

[Jul 14](https://hashnode.com/posts/how-to-send-backend-response-quickly-when-having-15-await-functions/6a04444b52a9c969d62e0a6b/comment/6a56aab02b98fc433f5715e1)

This is exactly where “acknowledge” and “process” should become two different transactions. We return the provider’s required 200/ACK after validating the signature and persisting a minimal immutable envelope, then let a queue handle the 15 calls. The envelope gets an idempotency key, correlation ID, attempt count, and a terminal status; each downstream side effect checks that key before writing.

The two failure modes worth designing up front are: the queue is unavailable when the webhook arrives, and the worker succeeds but crashes before recording success. A durable inbox plus idempotent workers covers both better than simply moving the awaits to Promise.all.

We ran into the same timeout/retry behavior while building Atlantic’s voice and CRM pipelines. The durable pattern was fast ACK + durable inbox + replayable worker + DLQ, with the final CRM write carrying the original event evidence.

I’m Ege, co-founder of Atlantic, sharing our implementation experience.

[Akshit](https://hashnode.com/@akshit-)

[Jul 15](https://hashnode.com/posts/how-to-send-backend-response-quickly-when-having-15-await-functions/6a04444b52a9c969d62e0a6b/comment/6a56aab02b98fc433f5715e1#reply-6a56f7f9acedf410c70dec6b)

Thank you for sharing, It is helpfull.
