laitimes

The Internet of Things (IOT) is a domestic open source network communication framework T-IO

author:Kyo Ko porcelain

The Internet of Things is an intelligent information network that enables the connection and exchange of information between various physical objects, enabling things to sense environmental changes and coordinate with each other. Key features of IoT include:

- Perception - Perceive the physical world using devices such as RFID, infrared sensors, GPS, etc.

- Interconnection - Use networks such as WiFi, 4G, 5G, Zigbee, etc. to connect objects to each other.

- Intelligence - Use cloud computing, edge computing, AI, etc. to achieve intelligent processing of object objects.

- Ad hoc networks - objects can self-organize the network to achieve specific functions.

The Internet of Things has been widely used in smart homes, wearable devices, healthcare, smart cities, industries and other fields.

T-IO: Programming IoT networks that are not difficult to develop.

The Internet of Things (IOT) is a domestic open source network communication framework T-IO

1. What is T-IO?

T-IO generally refers to TIO-CORE, which is an AIO network programming framework based on Java, and Netty belongs to the same kind; It will be easier than ever to develop IoT, real-time monitoring, IM, TCP private protocols, game servers, push services, etc. based on tio-core.

In addition to Tio-Core, the T-IO family also includes Tio-WebSocket-Server, Tio-HTTP-Server, Tio-WebPack-Core, Tio-Flash-Policy-Server, etc., and the latter are all application layer components based on Tio-CORE.

Members of the T-IO family:

  • Tio-Core: Java AIO-based web programming framework;
  • tio-websocket-server: websocket server based on tio-core;
  • Tio-HTTP-Server: An HTTP server developed based on Tio-Core;
  • tio-webpack-core: js/css/html compilation and compression tool developed based on tio-core, the code has been open source, but there are no documents and examples yet, which is temporarily in the internal use stage;
  • Tio-Flash-Policy-Server: Flash-Policy-Server developed based on Tio-Core.

Ten years of grinding a sword, t-io after careful polishing, super performance, has reached the level of operation, the program written with t-io can process 1000+ messages per second, 1.9G memory can support 300,000 TCP long connections.

The Internet of Things (IOT) is a domestic open source network communication framework T-IO

Process tens of millions of pieces of data per second

II. Brief introduction of the project

1、tio-common

Common module, client and server common module, common module mainly provides tio-core dependencies, provides unified message decoding, encoding operations, provides the initial application layer package, and subsequent message sending is extended according to the original application layer package;

2、tio-server

The server side, the server side provides services for the client to connect, as well as send messages, heartbeat detection, etc.;

3、tio-client

Client, connect to the server, send messages, heartbeat packets, etc.

Third, the practice of T-IO framework

1. Introduce dependencies

The Internet of Things (IOT) is a domestic open source network communication framework T-IO

2. Start the service

The Internet of Things (IOT) is a domestic open source network communication framework T-IO

3. Listening service

The Internet of Things (IOT) is a domestic open source network communication framework T-IO

4. Message parsing and processing

The Internet of Things (IOT) is a domestic open source network communication framework T-IO

Read on