Implementing SEDA with Apache MINA

By paliwalashish

SEDA (Staged Event Driven Architecure) breaks apart from the traditional thread-pool appraoch of Code Design. While experimenting with implemeneting a MINA based Server, decide to use SEDA architecture. SEDA and MINA have great documentation, so will be jumping straight to the implementation.

SEDA can be implemented in MINA by adding Executors in Filter chain. 

Implementing SEDA using MINA

Implementing SEDA using MINA

 

From the figure above, by adding Executor in the FilterChain between the subsequent logical processing steps, we get the SEDA model in MINA.

Multiple such stages can be created and the MINA shall deliver the message to next stage via the executor implementation, thereby eliminating the blocking thread processing.

Tags: , ,

Leave a Reply