Internet of Things message service system
A message service and Internet of Things technology, applied in the field of data gateway service and data queue service, can solve the problems that the broadcast system cannot support massive terminals, diverse protocols, and massive data communication, so as to achieve long-term non-stop operation, improve usability and The effect of throughput
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0037] In a specific embodiment, the system provided by the present invention can be provided with three parts, combining figure 1 Describe in detail the various parts of the IoT message service system. in:
[0038] The gateway service included in the invention accepts terminal connection requests, realizes load balancing among distributed systems, manages asynchronous connection channels, manages thread pools, and guarantees availability. Among them, load balancing can be realized based on Apache or Nginx; asynchronous channel can be realized based on EPoll or Java NIO; thread pool can be realized based on Netty.
[0039] The queue service contained in the present invention authenticates the identities of the sending and receiving parties, maintains the queue, persists the data, and performs data preprocessing. Among them, identity authentication can be based on encrypted / decrypted user name and password identification, commonly used encryption methods include Base64 and MD...
Embodiment 2
[0042] combine figure 2 , in a specific embodiment, the asynchronous communication mode of the IoT message service system of the present invention is described.
[0043]The asynchronous communication of the Internet of Things message service system of the present invention exists between the listening thread, the working thread and the event service. The listening thread of the networked message service system is used to monitor connection requests, and is responsible for opening service channels, binding service addresses and ports, registering channels and monitoring connection requests. After discovering the connection request, the listening thread dispatches the connection request to a specific worker thread for subsequent service. The working thread of the networked message service system is the thread actually used for data sending and receiving and processing. It is responsible for creating a handle, accepting the connection request after activation, and sending the r...
Embodiment 3
[0046] combine image 3 , in a specific embodiment, the thread model of the IoT message service system of the present invention is described.
[0047] The thread model of the Internet of Things message service system of the present invention actually includes two thread pools, one listening thread pool and one working thread pool. Wherein, the listening thread pool is a collection of listening threads described in Embodiment 2, and is configured according to predetermined parameters after the networked message service system is started. The asynchronous channel registered by the service will trigger the selection of listening threads and activate specific listening threads. The default number of threads in the listening thread pool is twice the number of CPU cores of the current server. The worker thread pool is a collection of worker threads described in Embodiment 2. When a specific listening thread dispatches a connection request, selection of a worker thread and activati...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com