# Multiple different connections for one user

**URL:** <https://discourse.nodered.org/t/multiple-different-connections-for-one-user/58523>\
**Category:** General\
**Tags:** security, function-node\
**Created:** [17 February 2022 09:19 UTC](https://discourse.nodered.org/t/multiple-different-connections-for-one-user/58523 "2022-02-17T09:19:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![utkarshsaraf19](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/utkarshsaraf19/32/56708_2.png) [@utkarshsaraf19](https://discourse.nodered.org/u/utkarshsaraf19)\
**Post date:** [17 February 2022 09:19 UTC](https://discourse.nodered.org/t/multiple-different-connections-for-one-user/58523/1 "2022-02-17T09:19:41Z")

</div>

Hi All,

I am quite new to node-red.

I have one simple question.

Reading few posts, I came to know that node-red is single threaded. Hence need to spin up new instance per user.But wanted to know the granularity of single threadedness.  
For eg, for one user "utkarsh", I want to connect to postges and put the data to mysql  
also for same user, there is another flow which connect to mongodb and then put data to timeseries database.

Will they work in parallel or there will be some issue in it also.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [17 February 2022 10:03 UTC](https://discourse.nodered.org/t/multiple-different-connections-for-one-user/58523/2 "2022-02-17T10:03:41Z")

</div>

Single-threaded and single-user are two different things.

Node-RED is a node.js app and node.js is single-threaded. It runs all code via a single application thread.

Node-RED is mostly single-user, at least for Dashboard.

Yes, you can write to multiple different DB's

---

<div class="post-metadata">

**Author:** ![utkarshsaraf19](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/utkarshsaraf19/32/56708_2.png) [@utkarshsaraf19](https://discourse.nodered.org/u/utkarshsaraf19)\
**Post date:** [17 February 2022 10:08 UTC](https://discourse.nodered.org/t/multiple-different-connections-for-one-user/58523/3 "2022-02-17T10:08:32Z")

</div>

Thanks a lot for letting me know.I can now create multiple flows for each user.  
Is there any example to trigger these flows on demand i.e. when i want i can trigger it and keep it stopped programatically.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [17 February 2022 11:20 UTC](https://discourse.nodered.org/t/multiple-different-connections-for-one-user/58523/4 "2022-02-17T11:20:57Z")

</div>

> [@utkarshsaraf19](#):
>
> Is there any example to trigger these flows on demand

Flows don't stop and start. They are potentially running all the time, but won't actually do anything unless something happens to start a message flowing through it. For example it may be triggered by some external event, or an Inject node configured to regularly inject.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [17 February 2022 16:27 UTC](https://discourse.nodered.org/t/multiple-different-connections-for-one-user/58523/5 "2022-02-17T16:27:05Z")

</div>

Or are you talking about hiding dashboard tabs for different users?

---

<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:** [3 March 2022 16:27 UTC](https://discourse.nodered.org/t/multiple-different-connections-for-one-user/58523/6 "2022-03-03T16:27:23Z")

</div>

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