* Adding support for maven assembly plugin to generate executable jar with all dependencies in built * Merge branch 'master' into issue-989 # Conflicts: # abstract-document/pom.xml # pom.xml * Adding maven assemly plugin for projects with name A * Update in format as per checkstyle, i.e. Spcae in place of tab with size of 2 * batch set - 2 having all project with B and C * issue-989 d-e-f * fixing eip pom and adding g-h-i-l-m-n Skipping naked object as it seems it doesn't have main method, will consider this at end * Adding for O and P projects Skipping Object-Mother as we don't have main method for same. * Final batch
layout, title, folder, permalink, pumlformat, categories, tags
layout | title | folder | permalink | pumlformat | categories | tags | ||
---|---|---|---|---|---|---|---|---|
pattern | Reactor | reactor | /patterns/reactor/ | svg | Concurrency |
|
Intent
The Reactor design pattern handles service requests that are delivered concurrently to an application by one or more clients. The application can register specific handlers for processing which are called by reactor on specific events. Dispatching of event handlers is performed by an initiation dispatcher, which manages the registered event handlers. Demultiplexing of service requests is performed by a synchronous event demultiplexer.
Class diagram
Applicability
Use Reactor pattern when
- A server application needs to handle concurrent service requests from multiple clients.
- A server application needs to be available for receiving requests from new clients even when handling older client requests.
- A server must maximize throughput, minimize latency and use CPU efficiently without blocking.