CN108540376A - Server message real-time distribution method based on Redis mode - Google Patents

Server message real-time distribution method based on Redis mode Download PDF

Info

Publication number
CN108540376A
CN108540376A CN201810282853.7A CN201810282853A CN108540376A CN 108540376 A CN108540376 A CN 108540376A CN 201810282853 A CN201810282853 A CN 201810282853A CN 108540376 A CN108540376 A CN 108540376A
Authority
CN
China
Prior art keywords
message
server
redis
distributed
things server
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
Application number
CN201810282853.7A
Other languages
Chinese (zh)
Inventor
余敬龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Nenglong Education Co ltd
Original Assignee
Guangdong Nenglong Education Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Nenglong Education Co ltd filed Critical Guangdong Nenglong Education Co ltd
Priority to CN201810282853.7A priority Critical patent/CN108540376A/en
Publication of CN108540376A publication Critical patent/CN108540376A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method for distributing server messages in real time based on a Redis mode, which comprises the steps that a user issues messages to a Redis server; the Redis server receives a message issued by a user, issues a subscription service to the distributed Internet of things server, and sends the message to the distributed Internet of things server in real time according to the subscription condition of the distributed Internet of things server; and the distributed Internet of things server receives the message sent by the Redis server in real time according to the subscription service, checks the terminal connected with the distributed Internet of things server and sends the message to the terminal conforming to the subscription service. When a new message is sent to the Redis server, the Redis server sends the message to the distributed Internet of things server, and the distributed Internet of things server sends the message to the terminal consistent with the subscription service. By the method, the distributed Internet of things server obtains the message in real time and distributes the message to the terminal in time, so that the working efficiency and the accuracy of information transmission are improved.

Description

A method of the server message based on Redis patterns is distributed in real time
Technical field
The present invention relates to computer realm, side that especially a kind of server message based on Redis patterns is distributed in real time Method.
Background technology
Distributed Internet of Things server connected for terminal at present, when issuing message, connected server can not obtain and Shi Zhi learns the message of distribution, cannot be distributed to terminal in real time.
Invention content
In order to solve the above technical problems, the object of the present invention is to provide a kind of, the server message based on Redis patterns is real When the method distributed.
The technical solution adopted by the present invention is:
A method of the server message based on Redis patterns is distributed in real time, including:User by news release extremely Redis servers;
Redis servers receive the message of user's publication, and to distributed Internet of Things server distribution subscription service, and Distributed Internet of Things server is sent a message in real time according to the subscription situation of distributed Internet of Things server;
The message that distributed Internet of Things server is sent according to subscription service real-time reception Redis servers, and check with The terminal of distributed Internet of Things server connection, pair terminal being consistent with subscription service send message.
The message includes terminal type coding, terminal number, type of message coding and message content.
Beneficial effects of the present invention:
In the present invention, Redis servers are sent out to distributed Internet of Things server distribution subscription service when there is new message When giving Redis servers, this message will be sent to distributed Internet of Things server, distributed object by Redis servers Networked server sends the message to the terminal being consistent with subscription service again.By the method for the invention, distributed Internet of Things Server obtains message in real time, and distributes the messages to terminal in time, improves work efficiency and transmit the accuracy of information.
Description of the drawings
The specific implementation mode of the present invention is described further below in conjunction with the accompanying drawings.
Fig. 1 is the principle of the present invention block diagram.
Specific implementation mode
As shown in Figure 1, a kind of method that the server message based on Redis patterns is distributed in real time, including:
User is by news release to Redis servers;
Redis servers receive the message of user's publication, and to distributed Internet of Things server distribution subscription service, and Distributed Internet of Things server is sent a message in real time according to the subscription situation of distributed Internet of Things server;
The message that distributed Internet of Things server is sent according to subscription service real-time reception Redis servers, and check with The terminal of distributed Internet of Things server connection, pair terminal being consistent with subscription service send message.
Redis distribution subscriptions (pub/sub) are a kind of messaging modes:Sender (pub) sends message, subscriber (sub) message is received, in the present invention, Redis servers are new when having to distributed Internet of Things server distribution subscription service When message is sent to Redis servers, this message will be sent to distributed Internet of Things server by Redis servers, point Cloth Internet of Things server sends the message to the terminal being consistent with subscription service again.By the method for the invention, distributed Internet of Things server obtains message in real time, and distributes the messages to terminal in time, improves work efficiency and transmit information Accuracy.
The message includes terminal type coding, terminal number, type of message coding and message content.
The foregoing is merely the preferred embodiments of the present invention, and the present invention is not limited to the above embodiments, as long as with Essentially identical means realize that the technical solution of the object of the invention belongs within protection scope of the present invention.

Claims (2)

1. a kind of method that the server message based on Redis patterns is distributed in real time, which is characterized in that including:
User is by news release to Redis servers;
Redis servers receive the message of user's publication, and to distributed Internet of Things server distribution subscription service, and according to The subscription situation of distributed Internet of Things server sends a message to distributed Internet of Things server in real time;
The message that distributed Internet of Things server is sent according to subscription service real-time reception Redis servers, and check and be distributed The terminal of formula Internet of Things server connection, pair terminal being consistent with subscription service send message.
2. the method that a kind of server message based on Redis patterns according to claim 1 is distributed in real time, feature exist In:The message includes terminal type coding, terminal number, type of message coding and message content.
CN201810282853.7A 2018-04-02 2018-04-02 Server message real-time distribution method based on Redis mode Pending CN108540376A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810282853.7A CN108540376A (en) 2018-04-02 2018-04-02 Server message real-time distribution method based on Redis mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810282853.7A CN108540376A (en) 2018-04-02 2018-04-02 Server message real-time distribution method based on Redis mode

Publications (1)

Publication Number Publication Date
CN108540376A true CN108540376A (en) 2018-09-14

Family

ID=63482651

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810282853.7A Pending CN108540376A (en) 2018-04-02 2018-04-02 Server message real-time distribution method based on Redis mode

Country Status (1)

Country Link
CN (1) CN108540376A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101848236A (en) * 2010-05-06 2010-09-29 北京邮电大学 Real-time data distribution system with distributed network architecture and working method thereof
US20150019353A1 (en) * 2012-02-06 2015-01-15 Adstruc, Inc. System for managing the utilization of a plurality of outdoor advertising units
CN106101178A (en) * 2016-05-30 2016-11-09 海尔优家智能科技(北京)有限公司 A kind of subscription message distribution, method of reseptance, device and related system
CN106250078A (en) * 2016-07-26 2016-12-21 青岛海信电器股份有限公司 A kind of display terminal control method and equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101848236A (en) * 2010-05-06 2010-09-29 北京邮电大学 Real-time data distribution system with distributed network architecture and working method thereof
US20150019353A1 (en) * 2012-02-06 2015-01-15 Adstruc, Inc. System for managing the utilization of a plurality of outdoor advertising units
CN106101178A (en) * 2016-05-30 2016-11-09 海尔优家智能科技(北京)有限公司 A kind of subscription message distribution, method of reseptance, device and related system
CN106250078A (en) * 2016-07-26 2016-12-21 青岛海信电器股份有限公司 A kind of display terminal control method and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JEREMY NELSON: "《深入理解Redis》", 30 April 2017, 电子工业出版社 *

Similar Documents

Publication Publication Date Title
CN101631140B (en) Cluster server of instant communication system and method of inter-clusters communication
CN106230896A (en) A kind of information push method, Apparatus and system
AU2003239840A1 (en) Multi-user multimedia messaging services
CN103534978B (en) A kind of packet information packet transmission method and equipment
CN109327513B (en) Interaction method, interaction device and computer-readable storage medium
CN102355637A (en) Mobile terminal instant communication processing method and device
CN101304548B (en) Multimedia broadcast/multicast service data transmission system, method and terminal
CN107342934A (en) A kind of mixed mode Mobile solution real-time messages method for pushing and system based on WebSocket
CN101594318A (en) A kind of method and system of realizing mail and instant message intercommunication
CN108683653A (en) A kind of active message push system based on WebSocket
CN101459580A (en) Method and system for publishing enterprise information by enterprise instant communication tool
CN103037000B (en) Publish-subscribe system and notification message processing method thereof
CN114051041A (en) Intelligent agricultural machinery system and communication method based on RabbitMQ and MQTT
CN102123133A (en) Message disposition notification transmission method in internetworking of different messaging service platforms and messaging system
CN105049531A (en) Message pushing system and message pushing method
CN102571376B (en) Method and system for implementing multi-window chat
CN101098314A (en) Method and system to transmit the request for replying information in instant communication instrument
CN102768618A (en) Distributed printing control method, system and distributed printing method
CN108540376A (en) Server message real-time distribution method based on Redis mode
CN101355571B (en) Method, apparatus and system for processing multimedia information
CN101459622A (en) Method and system for sending files in instant communication
CN101212421B (en) Email pushing method and system
CN102724121A (en) Distributed network data transmission method for LAN
WO2010009642A1 (en) Method, system and device for implementing short message among enterprises
CN104022941A (en) Meeting instant communication system and implementation method thereof

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: 20180914