This subsystem encompasses the core components responsible for the application's lifecycle management, network communication, and multi-process orchestration. It forms the central control plane of the `copyparty` application.
Components
SvcHub
The central orchestrator and service hub. It is responsible for the application's lifecycle, initializing and configuring other core components like TcpSrv and BrokerMp, and coordinating overall service interactions. This aligns with the "Core Server Module" pattern, acting as the application's main entry point and manager.
TcpSrv
The embedded TCP server responsible for handling all incoming network connections. It manages the listening sockets, accepts new connections, and dispatches requests to appropriate handlers. This component embodies the "Embedded Web Server" and "Protocol Handlers" patterns, providing the direct network interface for the application.
BrokerMp
Facilitates inter-process communication and manages multi-process operations. It acts as a broker, distributing tasks to a pool of MpWorker processes and coordinating their activities. This component is crucial for offloading heavy computational tasks and leveraging multi-core architectures, fitting within the "Core Server Module" for its orchestration role.
MpWorker
Represents an individual worker process managed by BrokerMp. Its primary responsibility is to execute tasks in parallel, offloading work from the main server process. These workers perform the actual processing of requests or data, contributing to the overall performance and responsiveness of the server. This component is a key part of the "Core Server Module" for distributed processing.