Mars is an open source, cross-platform infrastructure component and official terminal basic component of WeChat. It consists of four main parts: Comm, which contains a basic library, including basic tools like sockets, threads, alarm, message queues, and coroutines; Xlog, which provides high-performance, high-availability, security, and fault-tolerant log functions; SDT which is the network diagnosis module; and STN or signaling transmission network module, the major component of Mars responsible for the small data signaling channel between the terminal and the server.
Mars has been proven effective by billions of WeChat users. It supports Android, iOS/macOS and Windows platforms, and is very mobile platform friendly due to its minimal power and traffic consumption.
Features
- Cross-platform
- Mobile platform- friendly
- Socket-based implementation
- Supports long link
- DNS extension