# One-shot mode for node-red?

**URL:** <https://discourse.nodered.org/t/one-shot-mode-for-node-red/25977>\
**Category:** General\
**Created:** [3 May 2020 06:37 UTC](https://discourse.nodered.org/t/one-shot-mode-for-node-red/25977 "2020-05-03T06:37:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcims](https://avatars.discourse-cdn.com/v4/letter/j/2acd7d/32.png) [@jcims](https://discourse.nodered.org/u/jcims)\
**Post date:** [3 May 2020 06:37 UTC](https://discourse.nodered.org/t/one-shot-mode-for-node-red/25977/1 "2020-05-03T06:37:09Z")

</div>

Hi all,

Thinking of some serverless use cases for node-red and am curious if anyone is running it to execute a single flow from content passed in and then exit. Basically a lambda-type use of the product?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [3 May 2020 07:13 UTC](https://discourse.nodered.org/t/one-shot-mode-for-node-red/25977/2 "2020-05-03T07:13:06Z")

</div>

Search this forum for "lambda"

---

<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:** [3 May 2020 08:30 UTC](https://discourse.nodered.org/t/one-shot-mode-for-node-red/25977/3 "2020-05-03T08:30:54Z")

</div>

The main issue with that model is the startup time of Node-RED is many seconds and that really isn't suitable for a serverless type environment.

---

<div class="post-metadata">

**Author:** ![jcims](https://avatars.discourse-cdn.com/v4/letter/j/2acd7d/32.png) [@jcims](https://discourse.nodered.org/u/jcims)\
**Post date:** [3 May 2020 16:06 UTC](https://discourse.nodered.org/t/one-shot-mode-for-node-red/25977/4 "2020-05-03T16:06:02Z")

</div>

@dceejay Welp, i probably should have done that to start with, thanks.

@knolleary Ah, ok. I only have used it in docker and it's hard to see how quickly the startup completes.

---

<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:** [2 July 2020 16:06 UTC](https://discourse.nodered.org/t/one-shot-mode-for-node-red/25977/5 "2020-07-02T16:06:09Z")

</div>

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