amark / coalesce

Communication framework for distributed JavaScript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Module API: Add queue option

amark opened this issue · comments

For messages of sensitive pertinence, there should be the option to queue them in case the process it was handed off to crashes. This is important redundancy, fail over, and delivery guarantee.

A module which enables this will be required to confirm a completion within the specified time.

EX:

queue: 1000 * 60 * 5

Means Coalesce has to receive a completion confirmation within 5 minutes.
During this time, the message will be suspended from the queue.
After 5 minutes, it will reinstate the message, and it will be sent for processing again.

Questions:
What should happen if a confirmation is confirmed after 5 minutes? What should Coalesce do?
Does the entire queue pause, in order to assure order? Maybe this should be an option itself?