# Opinions please - delay - queue option

**URL:** <https://discourse.nodered.org/t/opinions-please-delay-queue-option/48086>\
**Category:** Feature Requests\
**Created:** [6 July 2021 14:45 UTC](https://discourse.nodered.org/t/opinions-please-delay-queue-option/48086 "2021-07-06T14:45:13Z")\
**Posts on this page:** 4\
**Page:** 2

<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:** [15 July 2021 13:20 UTC](https://discourse.nodered.org/t/opinions-please-delay-queue-option/48086/21 "2021-07-15T13:20:14Z")

</div>

so yes - at what point should a simple "delay/queue" node need to become a fully featured queuing node ? As ever I'm leaning towards trying to keep the "basic" core node simple enough to cover the default use cases and leave the full on capability to a (your) more dedicated queuing node - that may have additional outputs, and metadata, finer control, etc.

I think adding lifo/pushback would allow some level of failure recovery which would (to my mind) still make sense for the simple node.

---

<div class="post-metadata">

**Author:** ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Post date:** [15 July 2021 16:15 UTC](https://discourse.nodered.org/t/opinions-please-delay-queue-option/48086/22 "2021-07-15T16:15:52Z")

</div>

I don't think `delay` ever needs to become a full-featured queue. Adding msg.flush = N and LIFO features should cover the basic use cases without having to resort to a contributed node. I would try to distinguish between the two types of nodes in the sense that `delay` is time-based and and queuing nodes are command-based. (Obviously, flush and time-to-live are exceptions.) Trying to combine too many features of both types in a single node is likely to cause logic issues in development and confusion for the user.

If new use cases appear that are not met by either `delay` or `queue-gate`, we can discuss where best to address them. Meanwhile, I will re-visit @Colin's guaranteed delivery requirement to see where `queue-gate` fell down and whether something can be done for it.

---

<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:** [15 July 2021 16:57 UTC](https://discourse.nodered.org/t/opinions-please-delay-queue-option/48086/23 "2021-07-15T16:57:15Z")

</div>

> [@drmibell](#):
>
> I will re-visit @Colin's guaranteed delivery requirement to see where `queue-gate` fell down and whether something can be done for it.

I don't think there is much that can be done about it, the problem arises from the race conditions that arise when using multiple nodes to achieve the logic required rather than putting the whole thing in a 99 line function node.

---

<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:** [13 September 2021 16:57 UTC](https://discourse.nodered.org/t/opinions-please-delay-queue-option/48086/24 "2021-09-13T16:57:17Z")

</div>

Closed on 13 September 2021 16:57 UTC

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

[Previous page](https://discourse.nodered.org/t/opinions-please-delay-queue-option/48086.md?page=1)
