Reactor Pattern - Structure

Structure

  • Resources: Any resource that can provide input to or output from the system.
  • Synchronous Event Demultiplexer: Uses an event loop to block on all resources. When it is possible to start a synchronous operation on a resource without blocking, the demultiplexer sends the resource to the dispatcher.
  • Dispatcher: Handles registering and unregistering of request handlers. Dispatches resources from the demultiplexer to the associated request handler.
  • Request Handler: An application defined request handler and its associated resource.

Read more about this topic:  Reactor Pattern

Famous quotes containing the word structure:

    ... the structure of a page of good prose is, analyzed logically, not something frozen but the vibrating of a bridge, which changes with every step one takes on it.
    Robert Musil (1880–1942)

    What is the structure of government that will best guard against the precipitate counsels and factious combinations for unjust purposes, without a sacrifice of the fundamental principle of republicanism?
    James Madison (1751–1836)

    With sixty staring me in the face, I have developed inflammation of the sentence structure and definite hardening of the paragraphs.
    James Thurber (1894–1961)