Tars: The High-Performance, Multi-Language Support RPC Development Framework
Tencent’s micro-services framework, Tars, has expanded its language support by adding two new open-source versions: Node.js and PHP. This significant development brings the total number of supported languages to four, following the existing C++ and Java versions. The addition of Node.js and PHP has further solidified Tars’ position as a leading RPC development framework and integrated service management platform.
Features Introduced
Tars has introduced several new features with the addition of Node.js and PHP support. These features include:
- Tars-nodejs: This module provides RPC (Remote Procedure Call) capabilities, including RPC proxy generation, routing, and network communications. It also includes a client component that provides remote service exposure, request distribution, and network communications.
- Node-agent: This tool enables Tars Node.js applications to adapt to their environment, providing a powerful and flexible way to manage services.
- Monitor: This feature includes service monitoring and identity monitoring capabilities, ensuring that services are running smoothly and efficiently.
- Promise: Tars has implemented the popular Promise Library, Bluebird, to provide a robust and reliable way to handle asynchronous operations.
- Notify: This feature allows for the reporting of alarm messages and notifications to the Tars framework, ensuring that issues are addressed promptly.
- Log: Tars has integrated the Winston logging component, which supports stained logs and rolling logs, providing a comprehensive logging solution.
Tars PHP
The Tars PHP module is currently in development, with the client part already implemented. The Tars codec supports PHP tools generated from Tars, and RPC active call capabilities are also available. However, the server section is still under construction, and users are advised to stay tuned for further updates.
Tars Open Source
Tars, named after the robot in the movie “Interstellar,” is a high-performance, multi-language support RPC development framework and integrated service management platform. Since its official open-sourcing in early April, Tars has gained significant traction, with over 2200 stars on GitHub and an active user base of 140 people. More than 50 users have provided feedback, demonstrating the framework’s popularity and potential.
Tars in Use
Within Tencent, Tars has been used on over 1.6 million servers across more than 160 services, including mobile browsers, applications, and games. Outside the company, several subsidiaries and coworkers have begun to use Tars, and some companies have even initiated contact for potential cooperation.
Get Involved
If you’re interested in learning more about Tars or contributing to its development, please visit the GitHub repository: GitHub - TarsCloud/Tars: Tars is a high-performance RPC framework based on name service and Tars protocol, also integrated administration platform, and implemented hosting-service via flexible schedule.. Don’t forget to star the project and share your experiences with the community!
Original Statement
This article was written with the permission of the Tars development team and is published on the cloud + community platform. Reproduction without permission is strictly prohibited. If you encounter any infringement, please contact yunjia_community@tencent.com.