Page History
...
Gliffy Diagram | ||||||||
---|---|---|---|---|---|---|---|---|
|
PickN
Use-case summary: Use PickN when you need to gather a precise number of events from multiple workers. The ami graph output will update only when N events have been collected. Note that there is some arithmetic rounding depending on the number of events requested and the number of workers running parallel.
PickN accumulates N events into a list. The GUI node is expanded into 3 underlying PickN graph nodes each with a color of worker, localCollector, and globalCollector. The underlying graph nodes have a different N.
...
The PickN will only update when N events have been collected. There is no guarantee on the order in which events are collected.
RollingBuffer
Use-case summary: Use RollingBuffer like a circular buffer (or first-in-first-out buffer) that keeps a finite number of events. The ami graph output updates every event.
RollingBuffer works similarly to the PickN, only it accumulates to a circular buffer, which shifts left after N elements have been accumulated. Unlike the PickN which only returns when N events have collected, the RollingBuffer returns after event.
...