# Concurrency: Writing to database

**URL:** <https://discourse.nodered.org/t/concurrency-writing-to-database/20022>\
**Category:** General\
**Created:** [7 January 2020 19:51 UTC](https://discourse.nodered.org/t/concurrency-writing-to-database/20022 "2020-01-07T19:51:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eugene](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@eugene](https://discourse.nodered.org/u/eugene)\
**Post date:** [7 January 2020 19:51 UTC](https://discourse.nodered.org/t/concurrency-writing-to-database/20022/1 "2020-01-07T19:51:54Z")

</div>

Node-red fundamental question.

I have a flow that writes input payload to a database (same table).

The input payload comes from 5 sources, the time is depending on some external event.

Do I need to worry for lost of data, if two input payload arrived at the "write database flow"?  
How about if 5 input payload arrives at the same time? or 20?

Can I be confident that node-red "write database flow", will execute each of the concurrent message?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/3/3bbf3d1e6ff7f7a4d8307cd66b685baa83c46259.png)

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [7 January 2020 19:57 UTC](https://discourse.nodered.org/t/concurrency-writing-to-database/20022/2 "2020-01-07T19:57:36Z")

</div>

> [@eugene](#):
>
> Can I be confident that node-red "write database flow", will execute each of the concurrent message?

Node-RED doesn't drop messages.

Whether the particular database node has some internal limitation as to how many concurrent requests it can handle, or whether it queues things up, will depend on the specifics of the node.
