CN109257421A - A kind of data receiving-transmitting system that high concurrent may be implemented and is capable of spread - Google Patents
A kind of data receiving-transmitting system that high concurrent may be implemented and is capable of spread Download PDFInfo
- Publication number
- CN109257421A CN109257421A CN201810999387.4A CN201810999387A CN109257421A CN 109257421 A CN109257421 A CN 109257421A CN 201810999387 A CN201810999387 A CN 201810999387A CN 109257421 A CN109257421 A CN 109257421A
- Authority
- CN
- China
- Prior art keywords
- data
- tcpserver
- unique identifier
- spread
- transmitting system
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/163—In-band adaptation of TCP data exchange; In-band control procedures
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer And Data Communications (AREA)
Abstract
A kind of data receiving-transmitting system that high concurrent may be implemented and is capable of spread.The present invention realizes load balancing using Nginx, TCPServer is distributed to according to algorithm after receiving data, TCPServer receives data using Netty Open Framework, the unique identifier of corresponding client therein is extracted according to the data received, by unique identifier and the IP for sending the data in the form of key-value pair, it is stored in cache database Redis;Kafka message queue is pushed data into simultaneously.The present invention is used for data receiving-transmitting system.
Description
Technical field:
The present invention relates to a kind of data receiving-transmitting systems that high concurrent may be implemented and be capable of spread.
Background technique:
With the development of computer technology and network technology, either issued transaction or the system integration all from centralization to point
Cloth transition, now widely used distributed computing are that client/server calculates mode, also referred to as C/S (Client/
Server) mode.Client handles are interacted with user, and server is responsible for processing and is calculated;Client/Server pattern has widely
Application prospect, domestic and international many software companys are developing the network middleware product of Client/Server pattern at present.With
Growing user needs one to be able to achieve high concurrent and is capable of the data receiving-transmitting system of spread, to meet high concurrent
Demand, and ensure the stability of data.
Do not make development difficulty higher with frame.Transmitting-receiving and analysis feature are all poor, do not support great amount of terminals while connecing
Enter, does not also support spread;For the packet splicing data received, to the not perfect of its subpackage processing, the case where having packet loss hair
It is raw.
Summary of the invention:
The object of the present invention is to provide one kind to solve performance deficiency, can thoroughly solve the problems, such as the one of packet splicing data subpackage
Kind may be implemented high concurrent and be capable of the data receiving-transmitting system of spread.
Above-mentioned purpose is realized by following technical scheme:
A kind of data receiving-transmitting system that high concurrent may be implemented and is capable of spread is realized load balancing using Nginx, is being received
TCPServer is distributed to according to algorithm after to data, TCPServer receives data using Netty Open Framework, according to reception
To data extract the unique identifier of corresponding client therein, by unique identifier and the IP for sending the data with key assignments
Pair form, be stored in cache database Redis;Kafka message queue is pushed data into simultaneously.
A kind of data receiving-transmitting system that high concurrent may be implemented and is capable of spread, parsing server monitoring disappear
The data that TCPServer is sent in breath queue are drawn off being parsed once wherein there is data;And according to different data
Unused response is provided, response is stored in message queue;The number of Server is parsed in TCPServer monitoring information queue
According to being drawn off after listening to, extract the unique identifier of reply data, remove cache database according to unique identifier
The corresponding IP of unique identifier being stored in front of taking out in Redis, sends reply data on corresponding IP.
The utility model has the advantages that
1. present invention uses Open Frameworks to be developed, solve the problems, such as that development difficulty is high;Simultaneously because frame has been used,
It solves performance deficiency, does not support the access of great amount of terminals, the high concurrents problem such as reception of mass data;In the data sent
In the case where without exception, packet splicing data subpackage can be thoroughly solved the problems, such as.
The present invention, which will be received and dispatched and be parsed, to be separated, and solving the problems, such as can not spread;It can be realized high concurrent and can
The data receiving-transmitting system of spread.
The present invention can be effectively solved development difficulty, reduce the time cost and human cost of exploitation;It uses simultaneously
Open Framework, performance have obtained great optimization, and more terminals can be supported to access.
The present invention will use Open Framework to receive data, receive data and the separation of data processing business, and centre uses message
Subscription service, server being capable of spreads.
Detailed description of the invention:
Attached drawing 1 is data receiving-transmitting system architecture diagram of the invention.
Specific embodiment:
Below in conjunction with attached drawing of the invention, technical scheme in the embodiment of the invention is clearly and completely described.
Embodiment 1:
A kind of data receiving-transmitting system that high concurrent may be implemented and is capable of spread is realized load balancing using Nginx, is being received
TCPServer(transmission control protocol is distributed to according to algorithm after to data), TCPServer is connect using Netty Open Framework
Data are received, the unique identifier of corresponding client therein are extracted according to the data received, by unique identifier and transmission
The IP of the data is stored in cache database Redis in the form of key-value pair;Kafka message queue is pushed data into simultaneously.
Parse server(server) TCPServer is sent in monitoring information queue data, once wherein there are data, it will
Its taking-up is parsed;And unused response is provided according to different data, response is stored in message queue;
The data that Server is parsed in TCPServer monitoring information queue, are drawn off after listening to, extract the unique of reply data
Identification code is removed in cache database Redis the corresponding IP of unique identifier being stored in front of taking out according to unique identifier, will be answered
Answer evidence is sent on corresponding IP.
Embodiment 2:
A kind of data receiving-transmitting system that high concurrent may be implemented and is capable of spread described in embodiment 1, wherein exploitation uses
Netty frame can change flume into, message subscribing service kafka can be substituted for RabbitMQ(handbook), load balancing clothes
Business can change Distributed Architecture dubbo into.
Claims (2)
1. a kind of data receiving-transmitting system that high concurrent may be implemented and be capable of spread, it is characterized in that: being realized using Nginx
Load balancing, distributes to TCPServer according to algorithm after receiving data, and TCPServer is received using Netty Open Framework
Data extract the unique identifier of corresponding client therein according to the data received, should by unique identifier and transmission
The IP of data is stored in cache database Redis in the form of key-value pair;Kafka message queue is pushed data into simultaneously.
2. a kind of data receiving-transmitting system that high concurrent may be implemented and be capable of spread according to claim 1, special
Sign is: the data that TCPServer is sent in parsing server monitoring information queue are drawn off carrying out once wherein there is data
Parsing;And unused response is provided according to different data, response is stored in message queue;TCPServer monitoring information
The data that Server is parsed in queue, are drawn off after listening to, extract the unique identifier of reply data, are known according to unique
Other code removes in cache database Redis the corresponding IP of unique identifier being stored in front of taking out, and sends correspondence for reply data
IP on.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810999387.4A CN109257421A (en) | 2018-08-30 | 2018-08-30 | A kind of data receiving-transmitting system that high concurrent may be implemented and is capable of spread |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810999387.4A CN109257421A (en) | 2018-08-30 | 2018-08-30 | A kind of data receiving-transmitting system that high concurrent may be implemented and is capable of spread |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109257421A true CN109257421A (en) | 2019-01-22 |
Family
ID=65050362
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810999387.4A Pending CN109257421A (en) | 2018-08-30 | 2018-08-30 | A kind of data receiving-transmitting system that high concurrent may be implemented and is capable of spread |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109257421A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110365644A (en) * | 2019-06-05 | 2019-10-22 | 华南理工大学 | A method of building internet of things equipment high-performance monitoring platform |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103491071A (en) * | 2013-09-06 | 2014-01-01 | 乐视致新电子科技(天津)有限公司 | Wireless communication system |
CN103716372A (en) * | 2013-11-22 | 2014-04-09 | 浙江大学 | Digital library-as-a-service cloud computing platform construction method |
CN107734004A (en) * | 2017-09-26 | 2018-02-23 | 河海大学 | A kind of high concurrent SiteServer LBS based on Nginx, Redis |
CN108270860A (en) * | 2018-01-16 | 2018-07-10 | 宇星科技发展(深圳)有限公司 | The acquisition system and method for environmental quality online monitoring data |
-
2018
- 2018-08-30 CN CN201810999387.4A patent/CN109257421A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103491071A (en) * | 2013-09-06 | 2014-01-01 | 乐视致新电子科技(天津)有限公司 | Wireless communication system |
CN103716372A (en) * | 2013-11-22 | 2014-04-09 | 浙江大学 | Digital library-as-a-service cloud computing platform construction method |
CN107734004A (en) * | 2017-09-26 | 2018-02-23 | 河海大学 | A kind of high concurrent SiteServer LBS based on Nginx, Redis |
CN108270860A (en) * | 2018-01-16 | 2018-07-10 | 宇星科技发展(深圳)有限公司 | The acquisition system and method for environmental quality online monitoring data |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110365644A (en) * | 2019-06-05 | 2019-10-22 | 华南理工大学 | A method of building internet of things equipment high-performance monitoring platform |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110113381B (en) | Method and device for subscribing theme in block chain | |
CN106549878B (en) | Service distribution method and device | |
CN105991731A (en) | Method for obtaining information, intelligent terminal and server side | |
CN105338061A (en) | Lightweight message oriented middleware realization method and system | |
CN105281921A (en) | Method and device enabling virtual desktop to realize multicast | |
CN108459915A (en) | A kind of TCP channel suitable for high concurrent scene manages system and method | |
CN110868349B (en) | Distributed high-concurrency data acquisition and processing method and system in Internet of things environment | |
CN109636304B (en) | Business system publishing method and device, storage medium and electronic device | |
CN103139157A (en) | Network communication method based on socket, device and system | |
US8606908B2 (en) | Wake-up server | |
CN105025047A (en) | Cloud desktop pushing method, system and pushing end and receiving end | |
CN103607423A (en) | Distributed broadcast system based on WebSocket protocol | |
CN103402089A (en) | Virtual desktop image compressing method based on macro block technology | |
CN109981733A (en) | Control method, server and the computer readable storage medium of intelligent terminal | |
CN109547541A (en) | Mist calculates the node low overhead collaboration method under environment based on filtering and distribution mechanism | |
WO2007022440A3 (en) | Resource selection in a communication network | |
CN107071067B (en) | Cgo-based high-performance stock market access system and method | |
CN104378419A (en) | High-speed data push method and system | |
CN102932209A (en) | Method and device for detecting state of server cluster | |
CN109257421A (en) | A kind of data receiving-transmitting system that high concurrent may be implemented and is capable of spread | |
CN106502856B (en) | A kind of information processing method and device | |
CN109040086A (en) | A kind of industrial control system DDOS attack emulation mode and device | |
CN110022323A (en) | A kind of method and system of the cross-terminal real-time, interactive based on WebSocket and Redux | |
CN101902458B (en) | Interprocess communication method across host machine, device thereof and system thereof | |
CN111930653B (en) | Remote distribution use method and device of USB (universal serial bus) equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190122 |