AxonFramework/AxonFramework — Issue #10: Implement a disruptor-based high-performance commandbus
Author: abuijze
Created: 2011-12-03 14:39:47+00:00
State: open
Labels: Enhancement

A command bus could use this mechanism and try to do as much "preprocessing" as possible, while leaving the actual command processing on aggregates to a single thread. Event storage and event publishing can be done by other threads, with ordering guarantees managed by the Disruptor's RingBuffer.

The current API for command handler interceptors and command handlers requires that the whole chain is executed in the same thread. This doesn't need to be a problem, if the aggregate is pre-loaded and attached to the UnitOfWork. The UoW would need to serve as a first-level cache for the repositories.

Migrated from http://code.google.com/p/axonframework/issues/detail?id=178