Message push method, outgoing server using message push method and outgoing server system

A message push and server technology, applied in transmission systems, digital transmission systems, electrical components, etc., can solve the problems of easy blockage of the information push platform system, lack of operational safeguards in the information push platform system, and loss of push information, so as to avoid message The effect of blocking, improving efficiency and avoiding system failure

Active Publication Date: 2014-06-11
SHANGHAI CTRIP COMMERCE CO LTD
View PDF5 Cites 42 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The technical problem to be solved by the present invention is to overcome the disadvantages that the synchronously operated information push platform system of the prior art is easy to be blocked, which l

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Message push method, outgoing server using message push method and outgoing server system
  • Message push method, outgoing server using message push method and outgoing server system
  • Message push method, outgoing server using message push method and outgoing server system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0065] like figure 1 As shown, the outgoing server in this embodiment includes a timing message collection unit 1 , an SOA interface 2 , a queue generation unit 3 , a push interface 4 , a processing unit 5 and an input interface 6 .

[0066] The timing message collection unit 1 collects all generated or updated message information from the message server at a preset time interval T. The SOA interface 2 is used to collect all generated or updated message information from the server of the SOA framework.

[0067] The queue generating unit 3 generates a message queue and an exception message queue. A plurality of message processing threads are running in the processing unit 5, and the message processing threads are used to process message information, that is, after each message information in the message queue is sent to a corresponding message processing thread, each message processing thread processes and generates Message information in push format. The processing unit 5 a...

Embodiment 2

[0092] like image 3 As shown, the outgoing server system of this embodiment includes four outgoing servers in Embodiment 1, wherein each outgoing server includes a daemon thread and a heartbeat thread.

[0093] The data registry of the heartbeat thread can adopt the structure shown in the following table:

[0094] field name

type of data

illustrate

ID

PK,int,not null

self-increasing primary key

ReadMark

Int, not null

read mark field

DateTime

dateTime, not null

date

MainProcessIP

Varchar(50), not null

Operating process IP

IsStopServer

Int, not null

Whether to terminate the service

ServerName

Varchar(50), null

service name

[0095] Of course, those skilled in the art can also define data registration tables of different heartbeat threads by themselves.

[0096] One of the outgoing servers is preset as the master server 11 , and the other three outgoing servers ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a message push method, an outgoing server using the message push method and an outgoing server system formed by a plurality of outgoing servers. The message push method includes the steps that all generated or updated messages in a message server are collected; the messages are inserted into a message queue; each message is sent to a corresponding message processing thread; the message processing threads process the corresponding messages to generate messages in a push format, and the messages in the push format are pushed in an asynchronous message processing mode; the message processing threads detect whether the messages in the push format are successfully pushed or not, and if not, the messages failing to be sent are inserted into an abnormal message queue; all the messages, in the push format, in the abnormal message queue are sent in an asynchronous message processing mode. By means of the message push method, blockage of a system and loss of the pushed messages can be avoided, and reliability can be improved through the master-slave structure of the outgoing servers.

Description

technical field [0001] The invention relates to a message pushing method, an outgoing server and an outgoing server system thereof, in particular to a message pushing method of a business platform, an outgoing server and an outgoing server system. Background technique [0002] With the development of the Internet, especially the recent development of distribution channels, many companies no longer only sell their own products and services, but distribute part of their products to other distributors for sale, or sell products of other companies themselves. [0003] It is shown on the Internet that many companies have launched their own open e-commerce platforms, allowing other distributors to access the e-commerce platforms through interfaces, pull product information online, place orders or sell services, and extract part of them. commission. In this process, there will inevitably be a large amount of information to be exchanged between enterprises every day, such as produc...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L12/58H04L29/06
Inventor 梁晓靖吴少钧洪东杰
Owner SHANGHAI CTRIP COMMERCE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products