maestrojs/postal.js — Issue #4: Create Subscription Invocation Aggregator
Author: ifandelse
Created: 2012-01-08 06:37:50+00:00
State: open

Per Travis's suggestion, add a subscription definition option that will collect all the messages for a subscription and only invoke the subscription once every "X" time interval (or possibly allow invocation count threshold: once every X invocations). When the invocation occurs, all the messages that have occurred up to this point will be passed into subscription callback as an array, and then the cache of those messages is purged, and the cycle starts over again.....