t-io
t-io is a high-performance network programming framework developed based on java. Its explosive performance, long battery life stability, extremely easy-to-use API, and rich and sufficient built-in functions make it popular among engineers as soon as it debuts. , and has been continuously passed on by word of mouth
source code repository
Why develop t-io
Instead of sitting and studying the thick "xxx Authoritative Guide", it is better to stand up and independently develop and create programming APIs that more people can understand at a glance
t-io's past and present
- In 2010, talent-tan took over the communication module of the network management system in a major communication company. The old code used traditional IO, and a client needed at least 3 threads to guard, and frequent memory overflow and downtime. Talent-tan was ordered to rewrite the communication module and solve all the problems that the leaders were concerned about.
- In 2012, the talent-nio framework was developed based on nio
- In 2013, I wrote a transparent transmission module in mycat with talent-nio
- In 2014, realized the IM module of Zebo live broadcast with talent-nio
- In 2015, talent-tan began to pay attention to aio technology, and at the same time further abstracted the thread pool, lock processing, and concurrent data structure in talent-nio, so that these "Wang Xietang Qianyan" flew into the "mass code farmers"
- In 2016, talent-nio was rewritten based on aio technology, named talent-aio, and the code was settled in the code cloud, which is low-key and open source
- In 2017, talent-aio changed its name to t-io, and began to spread t-io in the form of news in open source China. In the same year, t-io became a GVP project, and t-io gained a large number of users
- In 2018, peripheral products such as tio-http-server, tio-websocket-server, and tio-webpack were implemented based on t-io. These products not only verified the excellence of t-io, but also promoted the progress of t-io
- In 2019, a Huawei team conducted a 3-6 month-long copying extreme pressure test on a smart product based on t-io. t-io withstood the test and made a solid foundation for officially entering Huawei's open source optimization library. foreshadowing
- In 2020, t-io will officially enter Huawei's open source optimization library. The first commercial IM Tanchat based on t-io will be officially launched. The cluster version of t-io will also be officially developed and passed the pressure test.
- In 2021, customer feedback based on t-io's research and development of Tanchao is very stable
- In 2022, Tanchat, a cluster version based on t-io’s research and development, won the ultimate reputation from users, and at the same time brought a long-term financial guarantee for t-io’s continuous investment
t-io ecology
Component/Framework/Product | Description | Remarks |
---|---|---|
tio-http | http server based on t-io | http server of all official products of t-io adopts tio-http |
tio-websocket | websocket server based on t-io | all official websocket servers of t-io use tio-websocket |
TioMQ | mqtt broker based on t-io | Server: broker.tiomq.com; Port: ws: 8083, wss: 8084, mqtt: 1883, mqtts: 8883; [mqtt-client test tool] (https://www.tiocloud.com/tiomq-website/product/client.html) |
TioMeter | mqtt stress testing tool based on t-io | If you need mqtt stress testing, [contact t-io official website business customer service] (https://www.tiocloud.com) |
TioMQ Enterprise | Large-scale Internet of Things access platform based on t-io | If you have any cooperation needs, [contact t-io official website business customer service] (https://www.tiocloud.com) |
tio-smpp | smpp protocol based on t-io | If you need cooperation, [contact t-io official website business customer service] (https://www.tiocloud.com) |
Pain points solved by t-io
The starting point of t-io is to solve the pain points of users in network programming. Its mission is to make the world no longer have difficult network programs to develop. Let's see the surprises t-io brings to users
- Easy to learn and easy to use. The reason why talent-tan created t-io is because similar products on the market cost a lot to learn, so when designing the API, we pay special attention to user acceptance. The first batch of t-io users mastered t-io just by watching the demonstration project provided by t-io
- Roll over the data monitoring capabilities of all well-known similar products - not only provide comprehensive monitoring data, but also ensure excellent performance
- Built-in heartbeat timeout check, heartbeat timing sending capability
- The extremely polished underlying cluster capability can seamlessly solve the cluster requirements of large-scale products such as IM and Internet of Things
- Automatically reconnect when disconnected
- t-io measured performance 1: 1.9G memory stably supports 300,000 TCP long connections: https://www.tiocloud.com/61
- t-io measured performance 2: use t-io to run 10.51 million chat messages per second: https://www.tiocloud.com/41
- t-io measured performance 3: Netty and t-io comparison test results: https://www.tiocloud.com/154
- Built-in ack message capability
- Built-in half-pack sticky bag processing
- Self-created tool libraries such as synchronous locks, synchronous safe thread pools, and synchronous data structures, providing rich out-of-the-box APIs for business applications
- Built-in slow attack defense mechanism to help applications automatically blacklist suspected IPs
- Rich ecology, currently http, websocket, mqtt and a large number of private protocols have been implemented with t-io
- Low requirements for development engineers, saving labor costs for enterprises
- Excellent performance, saving hardware deployment costs for enterprises
t-io documentation
https://www.tiocloud.com/doc/tio/85