O'Reilly logo

Getting Started with Oracle Event Processing 11g by Lloyd Williams, Robin J. Smith, Alexandre Alves

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The EventPartitioner example

While the use of an EventPartitioner has been superseded to some extent with the newer capabilities in Oracle Event Processing for enabling concurrency in a single event processor instance, it is still worthwhile mentioning this important capability.

Typically, you can partition events onto threads upstream to the channel, and in the following example, we have two threads each carrying a subset of the input "stock symbols". In this particular case, the channel partitions the input events by hashing the specified property "symbol". This means that events containing the same value for symbol will be partitioned always to the same processor. The hash function used is one that minimizes the number of collisions. The result ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required