Patent ID: 8448186

Claim:
A method comprising: generating, by a plurality of publishers, a plurality of events that occur in a database system, wherein the plurality of events includes a first event that is generated by a first publisher and a second event that is generated by a second publisher that is different than the first publisher; determining, by the first publisher, based on one or more first factors, a first queue from among a plurality of queues to enqueue the first event, wherein one of the one or more first factors is a number of events that are enqueued in each queue of the plurality of queues; enqueuing, by the first publisher, the first event to the first queue of the plurality of queues; determining, by the second publisher, based on one or more second factors, a second queue from among a plurality of queues to enqueue the second event, wherein one of the one or more second factors is a number of events that are enqueued in each queue of the plurality of queues; and enqueuing, by the second publisher, the second event to the second queue of the plurality of queues; wherein the method is performed by one or more computing devices.