java-design-patterns icon indicating copy to clipboard operation
java-design-patterns copied to clipboard

Acceptor-Connector pattern

Open npathai opened this issue 10 years ago • 2 comments

Description: The Acceptor-Connector design pattern decouples connection establishment from connection handling in networked systems. The pattern's main components are the Acceptor, Connector, and Handler. The Acceptor is responsible for listening for incoming connection requests and creating a new connection. The Connector actively initiates connections to a remote service. Once a connection is established, the Handler takes over to manage the communication between peers.

Implementing this pattern will improve the system’s scalability and flexibility by separating connection handling from business logic, allowing each component to be managed and extended independently.

References:

  1. Extension and Java Implementation of the Reactor−Acceptor−Connector Pattern Combination
  2. Sample implementation
  3. Pattern-Oriented Software Architecture Volume 2: Patterns for Concurrent and Networked Objects

Acceptance Criteria:

  1. Implement the Acceptor component to handle incoming connection requests.
  2. Implement the Connector component to initiate outgoing connections.
  3. Implement the Handler component to manage established connections and business logic.
  4. Provide unit tests for each component to ensure proper functionality.
  5. Update documentation with usage examples and detailed descriptions of each component.

npathai avatar Aug 27 '15 06:08 npathai

Updated task description

iluwatar avatar May 30 '24 04:05 iluwatar

This issue is stale because it has been open 60 days with no activity.

github-actions[bot] avatar Jan 12 '25 02:01 github-actions[bot]