# Question regarding flow processing

**URL:** <https://discourse.nodered.org/t/question-regarding-flow-processing/40807>\
**Category:** General\
**Created:** [11 February 2021 08:28 UTC](https://discourse.nodered.org/t/question-regarding-flow-processing/40807 "2021-02-11T08:28:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![crackytsi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/crackytsi/32/28369_2.png) [@crackytsi](https://discourse.nodered.org/u/crackytsi)\
**Post date:** [11 February 2021 08:28 UTC](https://discourse.nodered.org/t/question-regarding-flow-processing/40807/1 "2021-02-11T08:28:24Z")

</div>

Hi,  
I have an inject node and a node-gen node (calling an API with a return delay of arround 10 seconds) outputting to an debug node.

When I click twice on inject the response occoures in the order:  
a) First Inject Click  
b) Second Inject Click (one second later)  
c) After 10 seconds: Return first click  
d) After ANOTHER 10 seconds: Return second click.

For me d) is unexepected, as I thought the REST API-Call is an aync topic, so I thought second inject message should appear only 1 second later than the first one.

Do you know whats the reason and if there is a way to change that behaviour?

Thank you very much 🙂

---

<div class="post-metadata">

**Author:** ![kuema](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kuema/32/6542_2.png) [@kuema](https://discourse.nodered.org/u/kuema)\
**Post date:** [11 February 2021 08:41 UTC](https://discourse.nodered.org/t/question-regarding-flow-processing/40807/2 "2021-02-11T08:41:30Z")

</div>

Unexpected indeed. I _should_ work as you assumed it would. Each trigger executes a new independent message flow.

How exactly are you calling the REST api? If it's done by a custom node (node-gen??), maybe it's not doing proper async calls, but is waiting for a response and blocking everything else.

Or the API backend isn't handling multiple requests well. Hard to tell without further info.

---

<div class="post-metadata">

**Author:** ![crackytsi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/crackytsi/32/28369_2.png) [@crackytsi](https://discourse.nodered.org/u/crackytsi)\
**Post date:** [11 February 2021 09:18 UTC](https://discourse.nodered.org/t/question-regarding-flow-processing/40807/3 "2021-02-11T09:18:29Z")

</div>

Thanks @kuema  
You pointed me in the right direction, issue was the REST-API limiter.  
Sorry and thanks again 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [25 February 2021 09:18 UTC](https://discourse.nodered.org/t/question-regarding-flow-processing/40807/4 "2021-02-25T09:18:39Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
