How split mode works in mtproto_proxy
masterIn split mode, the proxy architecture is divided into front and back nodes using the node_role configuration:
- Front Node (
node_role = front): Runs themtp_handlerprocesses. These nodes handle the incoming Telegram client TCP connections and protocol decoding. - Back Node (
node_role = back): Runs themtp_dc_poolandmtp_down_connprocesses. These nodes manage the multiplexed connections to the actual Telegram Data Centres.
Key Characteristics:
- Transparency: Because the system uses Erlang distribution,
gen_server:calland other messages sent from a front node to a back node are transparent to the developer. - Scalability: Multiple front nodes can be deployed to handle high volumes of client connections while sharing a single back node (or a set of back nodes) to manage upstream DC connections efficiently through multiplexing.