CN108924041A - A kind of message efficient reliable diffusion method in instant messaging - Google Patents

A kind of message efficient reliable diffusion method in instant messaging Download PDF

Info

Publication number
CN108924041A
CN108924041A CN201810876884.5A CN201810876884A CN108924041A CN 108924041 A CN108924041 A CN 108924041A CN 201810876884 A CN201810876884 A CN 201810876884A CN 108924041 A CN108924041 A CN 108924041A
Authority
CN
China
Prior art keywords
message
session
queue
sent
service
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
CN201810876884.5A
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.)
Beijing Jieyixun Information Technology Co Ltd
Original Assignee
Beijing Jieyixun Information Technology 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 Beijing Jieyixun Information Technology Co Ltd filed Critical Beijing Jieyixun Information Technology Co Ltd
Priority to CN201810876884.5A priority Critical patent/CN108924041A/en
Publication of CN108924041A publication Critical patent/CN108924041A/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
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/566Grouping or aggregating service requests, e.g. for unified processing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of message efficient reliable diffusion methods in instant messaging, include the following steps:Message sink service receives message, examines and delivers message to correspondence multichannel queue according to session where message after legitimacy;Message handling services batch, which pulls, holds path message;Message according to message session is divided into multiple batches to message by logic in batches, and according to the multiple parallel single Dialog processing logics of session initiation;After the logics such as single conversation message processing logic carries out message duplicate removal in session, and version generates, it is synchronous by message according to after version addition buffer service by message dilivery to queue to be sent;Asynchronous persistent services are by the asynchronous storage of message in buffer queue;Message sends service acquisition queue message to be sent and is sent to recipient.The present invention, message band-wise processing, different sessions can hit different channels;Message high-volume to be processed pulls, and carries out parallel processing in batches by session.

Description

A kind of message efficient reliable diffusion method in instant messaging
Technical field
The present invention relates to instant communication method technical field, message efficient reliable diffusion side in specifically a kind of instant messaging Method.
Background technique
Instant messaging(Instant Messaging)It is communication modes the most popular on current Internet, it is various each The instant message applications of sample also emerges one after another;Service provider also provides more and more abundant Communications service function.It does not accommodate It doubts, Internet has become real information superhighway.From practical engineering application angle, with Computer Networks Principle For guidance, in conjunction with some common technologies in current network, programming realizes that the Internet chat tool based on C/S framework is conscientiously may be used Capable.
With the fast development of mobile communication technology, the increase of user group, the instant messaging established based on mobile network (IM)It is widely used, in the case where user base number is big, the reliability and high efficiency of transmission of IM message all suffer from huge choose War, currently, IM are sent through RabbitMQ as message queue guarantee message reliability, and message throughput is not under high concurrent It is ideal.
Summary of the invention
The purpose of the present invention is to provide a kind of message efficient reliable diffusion methods in instant messaging, to solve above-mentioned background The problem of being proposed in technology.
To achieve the above object, the present invention provides the following technical solutions:
A kind of message efficient reliable diffusion method in instant messaging, includes the following steps:
(1), message sink service receive message, examine and message delivered to correspondence multichannel according to session where message after legitimacy Queue;
(2), message handling services batch pulls and holds path message;
(3), message according to message session is divided into multiple batches to message by logic in batches, and according to the multiple parallel lists of session initiation Dialog processing logic;
(4), single conversation message processing logic carries out message duplicate removal in session, after the logics such as version generates, synchronization is by message root It is added after buffer service according to version by message dilivery to queue to be sent;
(5), asynchronous persistent services are by the asynchronous storage of message in buffer queue;
(6), message send service acquisition queue message to be sent be sent to recipient.
As a further solution of the present invention:Step(2)In, messaging service holds channel and supports adjust automatically.
As further scheme of the invention:Step(4)In, the buffer service, which refers to that message pulls, to order completely Middle caching.
Compared with prior art, the beneficial effects of the invention are as follows:
Message efficient reliable diffusion method, message band-wise processing, different sessions can be hit not in a kind of instant messaging Same channel;Message high-volume to be processed pulls, and carries out parallel processing in batches by session;Message Processing is not put in storage directly, and addition is slow Deposit processing(Message version, message such as pull at the hit caching completely), so that the asynchronous storage of message queue, and then guarantee in high concurrent Lower message throughput reaches perfect condition, high reliablity.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of a kind of message efficient reliable diffusion method in instant messaging.
Fig. 2 is a kind of structural schematic diagram of embodiment in a kind of message efficient reliable diffusion method in instant messaging.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Referring to Fig. 1, in the present invention, a kind of message efficient reliable diffusion method in instant messaging includes the following steps:
(1), message sink service receive message, examine and message delivered to correspondence multichannel according to session where message after legitimacy Queue;
(2), message handling services batch pulls and holds path message(Messaging service holds channel and supports adjust automatically);
(3), message according to message session is divided into multiple batches to message by logic in batches, and according to the multiple parallel lists of session initiation Dialog processing logic;
(4), single conversation message processing logic carries out message duplicate removal in session, after the logics such as version generates, synchronization is by message root Buffer service is added according to version(Message pulls can hit caching completely)Afterwards by message dilivery to queue to be sent;
(5), asynchronous persistent services are by the asynchronous storage of message in buffer queue;
(6), message send service acquisition queue message to be sent be sent to recipient.
Referring to Fig. 2, one embodiment in the present invention, a kind of message efficient reliable diffusion method in instant messaging, including Following steps:
(1), after connection service receives the message of user, according to message place session by message dilivery to message queue(It is to be processed Queue)In;
(2), messaging service processing message after cache and send:In batches comprising message, duplicate removal, Version Control, message are slow in session It deposits;
(3), connection service receive message to be sent after, transmit the message to user terminal;
(4), asynchronous persistence service according to message in buffer queue carries out asynchronous storage processing in messaging service;
(5), interface service provides message by message in messaging service caching and pulls function.
This invention is by by message distribution, mass disposal, in batches parallel processing, multistage asynchronous mode, cache Etc. tight interfaces, realize under high pressure, high concurrent, message efficient is reliably sent, and greatly improves handling up for message system Ability, message processing components support lateral dilatation, include(Message queue, messaging service, connection service, connects cache Oral business), the flexible ability of system obtained effective promotion.
The present invention is applied at present in customer service IM, and operational effect is outstanding in test and line, but actually in general purpose I M scene The lower present invention is equally applicable, distributes message by session in the present invention, and in batches, session is a kind of general category in instant messaging Property, there is no concurrent pressure for message in session, can effectively promote treatment effeciency, message high-volume between session after message distribution The modes message attributes such as processing, caching, asynchronous are unrelated, therefore the present invention equally can be promoted effectively at message in general purpose I M scene Reason ability and extended capability.
Rabbit:RabbitMQ is to realize AMQP(Advanced message queue protocol)Message-oriented middleware, it is consistent to data Property, stability and reliability have preferable support.
Kafka:Apacha Kafka is a distributed post-subscription messaging system, has high-throughput, low prolongs Late, the characteristics such as Highly Scalable, high fault tolerance, distribution.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims Variation is included within the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.
In addition, it should be understood that although this specification is described in terms of embodiments, but not each embodiment is only wrapped Containing an independent technical solution, this description of the specification is merely for the sake of clarity, and those skilled in the art should It considers the specification as a whole, the technical solutions in the various embodiments may also be suitably combined, forms those skilled in the art The other embodiments being understood that.

Claims (3)

1. a kind of message efficient reliable diffusion method in instant messaging, which is characterized in that include the following steps:
(1), message sink service receive message, examine and message delivered to correspondence multichannel according to session where message after legitimacy Queue;
(2), message handling services batch pulls and holds path message;
(3), message according to message session is divided into multiple batches to message by logic in batches, and according to the multiple parallel lists of session initiation Dialog processing logic;
(4), single conversation message processing logic carries out message duplicate removal in session, after the logics such as version generates, synchronization is by message root It is added after buffer service according to version by message dilivery to queue to be sent;
(5), asynchronous persistent services are by the asynchronous storage of message in buffer queue;
(6), message send service acquisition queue message to be sent be sent to recipient.
2. message efficient reliable diffusion method in a kind of instant messaging according to claim 1, which is characterized in that step (2)In, messaging service holds channel and supports adjust automatically.
3. message efficient reliable diffusion method in a kind of instant messaging according to claim 1, which is characterized in that step (4)In, the buffer service refers to that message pulls can hit caching completely.
CN201810876884.5A 2018-08-03 2018-08-03 A kind of message efficient reliable diffusion method in instant messaging Pending CN108924041A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810876884.5A CN108924041A (en) 2018-08-03 2018-08-03 A kind of message efficient reliable diffusion method in instant messaging

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810876884.5A CN108924041A (en) 2018-08-03 2018-08-03 A kind of message efficient reliable diffusion method in instant messaging

Publications (1)

Publication Number Publication Date
CN108924041A true CN108924041A (en) 2018-11-30

Family

ID=64394024

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810876884.5A Pending CN108924041A (en) 2018-08-03 2018-08-03 A kind of message efficient reliable diffusion method in instant messaging

Country Status (1)

Country Link
CN (1) CN108924041A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109302341A (en) * 2018-10-30 2019-02-01 北京达佳互联信息技术有限公司 Instant communicating method, device, electronic equipment and storage medium
CN111083037A (en) * 2019-10-22 2020-04-28 贝壳技术有限公司 Method, device, medium and electronic equipment for realizing instant messaging
CN114390451A (en) * 2021-12-09 2022-04-22 上海帜讯信息技术股份有限公司 5G message batch sending method and device based on message queue and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103856392A (en) * 2013-06-26 2014-06-11 携程计算机技术(上海)有限公司 Message push method, outgoing server using message push method and outgoing server system
CN103856393A (en) * 2013-07-09 2014-06-11 携程计算机技术(上海)有限公司 Distributed message-oriented middleware system based on database and operating method thereof
US20150098469A1 (en) * 2013-02-21 2015-04-09 Applied Micro Circuits Corporation Tcp segmentation offload in a server on a chip
CN104683472A (en) * 2015-03-12 2015-06-03 浪潮集团有限公司 Data transmission method supporting large data volume
CN104754036A (en) * 2015-03-06 2015-07-01 合一信息技术(北京)有限公司 Message processing system and processing method based on kafka
CN106302385A (en) * 2016-07-26 2017-01-04 努比亚技术有限公司 A kind of message distribution device and method
CN107197015A (en) * 2017-05-23 2017-09-22 阿里巴巴集团控股有限公司 A kind of message treatment method and device based on Message Queuing system
CN107222530A (en) * 2017-05-23 2017-09-29 努比亚技术有限公司 Service asynchronous exchange method, equipment, system and computer-readable recording medium
CN107302489A (en) * 2017-06-02 2017-10-27 北京潘达互娱科技有限公司 Message display method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150098469A1 (en) * 2013-02-21 2015-04-09 Applied Micro Circuits Corporation Tcp segmentation offload in a server on a chip
CN103856392A (en) * 2013-06-26 2014-06-11 携程计算机技术(上海)有限公司 Message push method, outgoing server using message push method and outgoing server system
CN103856393A (en) * 2013-07-09 2014-06-11 携程计算机技术(上海)有限公司 Distributed message-oriented middleware system based on database and operating method thereof
CN104754036A (en) * 2015-03-06 2015-07-01 合一信息技术(北京)有限公司 Message processing system and processing method based on kafka
CN104683472A (en) * 2015-03-12 2015-06-03 浪潮集团有限公司 Data transmission method supporting large data volume
CN106302385A (en) * 2016-07-26 2017-01-04 努比亚技术有限公司 A kind of message distribution device and method
CN107197015A (en) * 2017-05-23 2017-09-22 阿里巴巴集团控股有限公司 A kind of message treatment method and device based on Message Queuing system
CN107222530A (en) * 2017-05-23 2017-09-29 努比亚技术有限公司 Service asynchronous exchange method, equipment, system and computer-readable recording medium
CN107302489A (en) * 2017-06-02 2017-10-27 北京潘达互娱科技有限公司 Message display method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109302341A (en) * 2018-10-30 2019-02-01 北京达佳互联信息技术有限公司 Instant communicating method, device, electronic equipment and storage medium
CN109302341B (en) * 2018-10-30 2021-02-02 北京达佳互联信息技术有限公司 Instant messaging method, instant messaging device, electronic equipment and storage medium
CN111083037A (en) * 2019-10-22 2020-04-28 贝壳技术有限公司 Method, device, medium and electronic equipment for realizing instant messaging
CN111083037B (en) * 2019-10-22 2022-02-01 贝壳技术有限公司 Method, device, medium and electronic equipment for realizing instant messaging
CN114390451A (en) * 2021-12-09 2022-04-22 上海帜讯信息技术股份有限公司 5G message batch sending method and device based on message queue and electronic equipment

Similar Documents

Publication Publication Date Title
US10097689B2 (en) System and methods for integrating short message service messaging with contact center applications
RU2429587C2 (en) Method, system and device for increasing multimedia messaging service system capacity
CN108924041A (en) A kind of message efficient reliable diffusion method in instant messaging
CN109327513B (en) Interaction method, interaction device and computer-readable storage medium
CN108667719B (en) Real-time message transmission method and system
CN101252602B (en) System and method for downloading and distributing files
JP2006501578A5 (en)
CN102594876B (en) The mixing accelerating system of game real time data and more new data
CN113067882A (en) Message processing method and device, electronic equipment and medium
WO2014180407A1 (en) Pushing method and device therefor
CN111683158B (en) MQTT protocol communication method for realizing synchronous request response
CN103037000B (en) Publish-subscribe system and notification message processing method thereof
CN107682384A (en) Virtual desktop multicast control method, terminal, proxy terminal and cloud desktop server
CN106534118A (en) Method for realizing high-performance IP-SM-GW system
CN107483628A (en) Unidirectional proxy method and system based on DPDK
CN107104964B (en) Network security terminal and use method
CN101547107B (en) Method and device for establishing multi-channel point-to-point connection
KR100773778B1 (en) Method for controlling server with multicast transmitting and System thereof
CN100438544C (en) A method and system for instant calling using instant messaging
CN115361455A (en) Data transmission and storage method and device and computer equipment
CN1633096A (en) A method of short message value-added service access
CN107483327A (en) A kind of instant communication method based on long Connection Service independent
CN100450136C (en) A method and system for instant calling of instant messaging subscriber
CN101764745A (en) E-mail allopatry migration method of distributed e-mail box and system thereof
CN1801785A (en) Multimedia content interaction system based on instantaneous communication and its realizing method

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