Architecture of zeromq source code analysis notes (1), zeromq source code
1. zmq overview ZeroMQ is a message queue-based multi-thread network library that abstracts the underlying details of socket types, connection processing, frames, and even routes, supports sockets that span multiple transmission protocols. Referring to Yunfeng, ZeroMQ is not an encapsulation of socket, and cannot be used to implement existing network protocols. It has its own mode, which is different from the underlying point-to-point communication mode. It has a higher level of protocol than tcp. (Of course, ZeroMQ is not necessarily based on the TCP protocol. It can also be used for inter-process and intra-process communication.) It changes the assumption that communication is based on one-to-one connections. ZeroMQ regards communication requirements as four types. One type of communication is one-to-one communication, which is used to support the traditional TCP socket model, but is not recommended. There are only three common communication modes: