A catalog of stream processing optimizations
design patterns : elements of reusable object - oriented software .