CN105871959A - Message delivery method, system and device - Google Patents

Message delivery method, system and device Download PDF

Info

Publication number
CN105871959A
CN105871959A CN201510032833.0A CN201510032833A CN105871959A CN 105871959 A CN105871959 A CN 105871959A CN 201510032833 A CN201510032833 A CN 201510032833A CN 105871959 A CN105871959 A CN 105871959A
Authority
CN
China
Prior art keywords
message
transmission
local cache
needing
oriented middleware
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
CN201510032833.0A
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510032833.0A priority Critical patent/CN105871959A/en
Publication of CN105871959A publication Critical patent/CN105871959A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiments of the invention disclose a message delivery method, system and device. The method includes the following steps that: a publisher sends a message requiring to be passed to a message middleware server; the message middleware server stores the message requiring to be passed in a database and a local cache; the message middleware server queries whether the message requiring to be passed exists in the local cache; if the message requiring to be passed exists in the local cache, the message middleware server obtains the message requiring to be passed from the local cache; and the message middleware server delivers the message to a corresponding subscriber according to a subscription relationship. With the message delivery method, system and device provided by the technical schemes of the invention, the cost of a network, a database disk and the like can be reduced, and the performance of message middleware can be improved.

Description

A kind of mthods, systems and devices of message transmission
Technical field
The application relates to data communication technology field, the mthods, systems and devices transmitted particularly to a kind of message.
Background technology
In data communication technology field, message between object, is often utilized to interact and communicate.Message communicating basic Mode includes the method for synchronization and asynchronous system.In the method for synchronization, have to synchronize between the object of two communications.This just anticipates Taste what the service of each object must be up.So, the router in sending object (a kind of service) and connecing Receive the reception program in object (being a kind of service equally) and be all constantly in running status, and carry out the standard being in communication with each other at any time Standby.Router is after the program of reception initiates a message, and router will block the process that sending object is current.Therefore, Sending object can not carry out any communication and mutual with other application (also referred to as application program), can only wait program to be received Response.After sending object obtains the message that reception program returns, sending object just may proceed to run downwards, carries out next step Business Processing.In asynchronous system, can wait online between the object of two communications, either party only needs place simultaneously Manage the business of oneself.Such as sending object need not simply wait for the response of recipient after sending message, but can also then process Other task.The recipient of message is without processing the message received immediately.
Along with the development of technology, some large-scale systems, owing to customer volume is huge, the reasons such as business is complicated, based on synchronous communication The mode of technology cannot meet transaction system to extensibility, can safeguard, high performance demand.So can use asynchronous logical The mode of letter technology.As the one of asynchronous communications, middleware (Middleware) technology provides systems soft ware and application The software connected between software, in order to the communication between each parts of software, particularly application software is for the concentration of systems soft ware Logic, be a kind of independent systems soft ware or service routine, Distributed Application software by this software different technology it Between share resource.
Message-oriented middleware (Message Oriented Middleware, MOM, also referred to as message-oriented middleware) technology, Provide a kind of middleware mechanism carrying out message transmission with loosely-coupled flexi mode.MOM is capable of in different platform Between communication, it is often used to mask the characteristic between various platform and agreement, it is achieved collaborative between application program.Mesh The message-oriented middleware product of front main flow includes International Business Machine Corporation (IBM) (International Business Machines Corporation, IBM) MQ Series, the MessageQ of Bank of East Asia Ltd. (Bank of East Asia, BEA) and the sun The Java Message Service (Java Message Service, JMS) etc. of company (Sun).
MOM includes based on the Asynchronous message transfer between storage and the application forwarded or synchronization message transmission.Pass at asynchronous message In passing, the most directly communicate between application, but with the MOM server communication as intermediary.Asynchronous middleware Technology is again Including broadcast mode and Publish-subscribe mode two class.
In prior art, a kind of MOM of utilization Publish-subscribe mode carries out the flow chart of message transmission as shown in Figure 1.In Fig. 1, Detailed process includes: S1, sends application program (hereinafter referred to as publisher) and sends the message needing to issue to MOM server; The described message needing to issue is stored in data base's (assembly of MOM) by S2, MOM server;S3, MOM Server obtains the described message needing and issuing by network from data base;S4, MOM server according to subscribing relationship by institute State message dilivery to the corresponding application program (hereinafter referred to as subscriber) subscribing to this message.
During realizing the application, inventor finds that in prior art, at least there are the following problems:
In the actual application of MOM of publish-subscribe architecture, MOM server delivers message every time will pass through network inquiry data base Obtain the message needing transmission, so can bring about the expenses such as certain network, data base's disk, also can affect MOM simultaneously Performance.
Summary of the invention
The purpose of the embodiment of the present application is to provide the mthods, systems and devices of a kind of message transmission, to reduce network, data base's magnetic The expenses such as dish, improve the performance of message-oriented middleware.
For solving above-mentioned technical problem, the embodiment of the present application provides the mthods, systems and devices of a kind of message transmission to be realized in :
A kind of method of message transmission, including:
Issue direction message-oriented middleware server and send the message needing transmission;
The described message needing transmission is stored in data base and local cache by message-oriented middleware server;
Whether message-oriented middleware server lookup local cache has the described information needing transmission;
If so, message-oriented middleware server obtains the described message needing transmission from local cache;
Described message dilivery is given corresponding subscriber according to subscribing relationship by message-oriented middleware server.
A kind of method of message transmission, including:
Receive the message needing transmission that publisher sends;
The described message needing transmission is stored in data base and local cache;
Whether inquiry local cache has the described information needing transmission;
If so, the described message needing transmission is obtained from local cache;
Corresponding subscriber is given by described message dilivery according to subscribing relationship.
A kind of system of message transmission, including:
Publisher, needs the message of transmission for sending to message-oriented middleware server;
Message-oriented middleware server, described message-oriented middleware is provided with local cache, and described local cache is used for storing described needs The message of transmission;Described message-oriented middleware server is for being stored in data base and local cache by the described message needing transmission; Whether inquiry local cache has the described information needing transmission;If so, the described message needing transmission is obtained from local cache, and Corresponding subscriber is given by described message dilivery according to subscribing relationship;
Data base, for storing the described message needing transmission;
Subscriber, for receiving the described message needing transmission.
A kind of device of message transmission, including:
Message reception units, for receiving the message needing transmission that publisher sends;
First message storage, for being stored in data base and local cache by the described message needing transmission;
Query unit, for inquiring about whether local cache has the described information needing transmission;
First message retrieval unit, for when there being the described information needing transmission, from this during query unit inquires local cache Ground caching obtains the described message needing transmission;
First message dilivery unit, for giving corresponding subscriber according to subscribing relationship by described message dilivery.
The technical scheme provided from above the embodiment of the present application, in the embodiment of the present application, publisher will need the message of transmission After being sent to MOM server, the described message needing transmission is stored in data base by MOM server, also disappears described simultaneously Breath is stored in local cache.When delivering, to subscriber, the message needing transmission, it is not necessary to obtained described from data base by network Message, directly can obtain described message, the transmission of completion message from local cache.Compared with prior art, in utilizing message Between part completion message transmission while greatly reduce the expense such as network, data base's disk, improve the performance of message-oriented middleware.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present application or technical scheme of the prior art, below will be to embodiment or prior art In description, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only to remember in the application Some embodiments carried, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to Other accompanying drawing is obtained according to these accompanying drawings.
Fig. 1 is the flow chart that in prior art, a kind of MOM of utilization Publish-subscribe mode carries out message transmission;
Fig. 2 is the flow chart of first embodiment of the method for a kind of message of the application transmission;
Fig. 3 is the flow chart of second embodiment of the method for a kind of message of the application transmission;
Fig. 4 is the flow chart of the 3rd embodiment of the method for a kind of message of the application transmission;
Fig. 5 is the flow chart of the 4th embodiment of the method for a kind of message of the application transmission;
Fig. 6 is the flow chart of first embodiment of the system of a kind of message of the application transmission;
Fig. 7 is the flow chart of first embodiment of the method for a kind of message of the application transmission.
Detailed description of the invention
The embodiment of the present application provides the mthods, systems and devices of a kind of message transmission.
For the technical scheme making those skilled in the art be more fully understood that in the application, below in conjunction with in the embodiment of the present application Accompanying drawing, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described embodiment is only It is some embodiments of the present application rather than whole embodiments.Based on the embodiment in the application, ordinary skill people The every other embodiment that member is obtained under not making creative work premise, all should belong to the scope of the application protection.
Implementing of the embodiment of the present application is described in detail below with several specific examples.
Hereinafter the first embodiment of the method for a kind of message of the application transmission is first introduced.In conjunction with accompanying drawing 2, this embodiment includes:
S210: issue direction MOM server and send the message needing transmission.
In actual applications, general employing message-oriented middleware is all some large-scale systems, and therefore, publisher here is general It is multiple publishers, it is also possible to be a publisher, namely there may be one or more issue directions MOM server simultaneously Send message.
Further, publisher would generally pass through MOM client corresponding for used MOM to MOM server send disappear The message-oriented middleware product that breath, such as sky cat system use be the message-oriented middleware of referred to as " Notify ", have one corresponding Notify Client sends message for issuing direction Notify Server.
The described message needing transmission is stored in data base and local cache by S220:MOM server.
In actual applications, in order to ensure that message is not lost, MOM server currently will can also be not sent to subscriber's Message is stored in data base.MOM server can message is successfully transmitted to subscriber just by message from data base Delete.
Here data base can be MySQL.MySQL is the Relational DBMS of an open source code.Additionally, Data base described in the embodiment of the present application is not limited only to MySQL, can also is that other forms, such as non-relational in practice Data bases (Not Only SQL, NoSQL) etc., the embodiment of the present application is not limited thereto.
MOM server is except being stored in data base by the described message needing transmission, it is also possible to by the described message needing transmission It is stored in local cache.
Further, here can be by recent minimum use algorithm (Least Recently Used, LRU) or first in first out team Local cache is managed by row (First Input First Output, FIFO), to ensure that the message being stored in local cache exists In the capacity range for storage of local cache.
Additionally, the management that the embodiment of the present application realizes local cache is not limited only to recent minimum use algorithm or fifo queue, Can also is that other forms in practice, the embodiment of the present application is not limited thereto.
Whether S230:MOM server lookup local cache has the described information needing transmission.
In the embodiment of the present application, after the described message needing transmission is stored data base and local cache by MOM server, Before described message dilivery is given corresponding subscriber by MOM server, need to obtain described message from local cache.Usually, Described message is stored in local cache and obtains between described message to MOM server from local cache by MOM server, past Toward there being one period performed.During this period of time, multiple issue directions MOM server may be had to send needs disappearing of transmission Breath, causes the renewal storing content in described local cache;According to local cache management strategy, the message being currently needed for transmission can Can the most not in local cache, therefore need first to inquire about described message the most also in local cache.
If the Query Result of step S230 is yes, enter step S240.
S240:MOM server obtains the described message needing transmission from local cache.
Described message dilivery is given corresponding subscriber according to subscribing relationship by S250:MOM server.
Here subscribing relationship is to be sent to MOM server subscribing to and start when, namely is issuing direction MOM Before server sends message, subscriber needs to send the request of subscription and subscribing relationship to MOM server.Then MOM clothes Described subscribing relationship is saved by business device.
In step S240, MOM server can obtain the described message needing transmission from local cache.In this step, MOM Described message dilivery can be given corresponding subscriber according to subscribing relationship by server.
As can be seen here, in the technical scheme that the embodiment of the present application provides, the message needing transmission is sent to MOM service by publisher After device, the described message needing transmission is stored in data base by MOM server, also described message is stored in local slow simultaneously Deposit.To subscriber deliver need transmission message time, it is not necessary to from data base, obtain described message by network, can directly from Local cache obtains described message, the transmission of completion message.Compared with prior art, message-oriented middleware completion message is being utilized to pass Greatly reduce the expense such as network, data base's disk while passing, improve the performance of message-oriented middleware.
Obtain from local cache to MOM server owing to the described message needing transmission is stored in local cache by MOM server Take between described message, often have one period performed.In the time that this section performs, there may be multiple issue direction MOM server sends the information needing transmission, causes the renewal storing content in described local cache;Therefore, according to this locality Cache management strategy, the message being currently needed for transmission may be the most in local cache.
On the basis of the application first method embodiment, in conjunction with accompanying drawing 3, the application second method embodiment specifically includes:
S310: issue direction MOM server and send the message needing transmission.
In actual applications, general employing message-oriented middleware is all some large-scale systems, and therefore, publisher here is general It is multiple publishers, it is also possible to be a publisher, namely there may be one or more issue directions MOM server simultaneously Send message.
Further, publisher would generally pass through MOM client corresponding for used MOM to MOM server send disappear The message-oriented middleware product that breath, such as sky cat system use be the message-oriented middleware of referred to as " Notify ", have one corresponding Notify Client sends message for issuing direction Notify Server.
The described message needing transmission is stored in data base and local cache by S320:MOM server.
In actual applications, in order to ensure that message is not lost, MOM server currently will can also be not sent to subscriber's Message is stored in data base.MOM server can message is successfully transmitted to subscriber just by message from data base Delete.
Whether S330:MOM server lookup local cache has the described message needing transmission.
In the embodiment of the present application, after the described message needing transmission is stored data base and local cache by MOM server, Before described message dilivery is given corresponding subscriber by MOM server, need to obtain described message from local cache.Usually, Described message is stored in local cache and obtains between described message to MOM server from local cache by MOM server, past Toward there being one period performed.During this period of time, multiple issue directions MOM server may be had to send message, cause institute Stating the renewal storing content in local cache, according to local cache management strategy, the message being currently needed for transmission may not exist In local cache, therefore need first to inquire about described message the most also in local cache.
If during the information that MOM server lookup has described needs to transmit to local cache, entering step S341;If MOM During the information that server lookup does not has described needs to transmit to local cache, enter step S342.
S341:MOM server obtains the described message needing transmission from local cache;
When MOM server is after local cache obtains the described message needing transmission, enter step S350.
S342:MOM server obtains the described message needing transmission from data base, and by the described message storage needing transmission In local cache.
Owing to data base can store the message currently the most not sent, therefore when obtaining described needs from local cache During the message transmitted, network inquiry data base can be passed through, from data base, obtain described message, and described message is stored in Local cache, in order to follow-up use, and enter step S350.
Described message dilivery is given corresponding subscriber according to subscribing relationship by S350:MOM server.
Here subscribing relationship is to be sent to MOM server subscribing to and start when, namely is issuing direction MOM Before server sends message, subscriber will send, to MOM server, the request of subscription and subscribing relationship is sent to MOM clothes Business device.Then described subscribing relationship is saved by MOM server.
When MOM server is after local cache or data base obtain the described message needing transmission, can incite somebody to action according to subscribing relationship Described message dilivery gives corresponding subscriber.
As can be seen here, in the technical scheme that the embodiment of the present application provides, when the message needing transmission is sent to MOM by publisher After server, the described message needing transmission is stored in data base by MOM server, and described message is also stored in this simultaneously Ground caching.When delivering, to subscriber, the message needing transmission, it is not necessary to all inquire about data base before every time delivering message, can directly from Local cache obtains described message.Only when not having described message in local cache, MOM server just passes through network from number According to storehouse obtains described message, and the transmission of completion message.Compared with prior art, message-oriented middleware completion message is being utilized to pass Greatly reduce the expense such as network, data base's disk while passing, improve the performance of message-oriented middleware.
Above-mentioned first method embodiment, it is considered to MOM server is main step, can be evolved into third method embodiment, knot Close accompanying drawing 4, specifically include:
S410: receive the message needing transmission that publisher sends.
S420: the described message needing transmission is stored in data base and local cache.
S430: whether inquiry local cache has the described information needing transmission.
There is the described information needing transmission when inquiring local cache, enter step S440.
S440: obtain the described message needing transmission from local cache.
S450: give corresponding subscriber by described message dilivery according to subscribing relationship.
As can be seen here, in the technical scheme that the embodiment of the present application provides, MOM server needs transmission by publisher sent Message be stored in data base, also described message is stored in local cache simultaneously.The message of transmission is needed delivering to subscriber Time, it is not necessary to from data base, obtain described message by network, directly can obtain described message, and completion message from local cache Transmission.Compared with prior art, while utilizing the transmission of message-oriented middleware completion message, network, data base are greatly reduced The expenses such as disk, improve the performance of message-oriented middleware.
Above-mentioned second method embodiment, it is considered to MOM server is main step, can be evolved into fourth method embodiment, knot Close accompanying drawing 5, specifically include:
S510: receive the message needing transmission that publisher sends.
S520: the described message needing transmission is stored in data base and local cache.
S530: whether inquiry local cache has the described information needing transmission.
If inquiring local cache have the described information needing transmission, enter step S541;If inquiring local cache not have The described information needing transmission, enters step S542.
S541: obtain the described message needing transmission from local cache.
When MOM server is after local cache obtains the described message needing transmission, enter step S550.
S542: obtain the described message needing transmission from data base, and the described message needing transmission is stored in local cache.
Owing to data base can store the message being currently also not sent to subscriber, therefore, when obtaining from local cache During the message that described needs transmit, MOM server can pass through network inquiry data base, obtain described message from data base, And described message is stored in local cache, in order to follow-up use, and enter step S550.
S550: give corresponding subscriber by described message dilivery according to subscribing relationship.
As can be seen here, in the technical scheme that the embodiment of the present application provides, MOM server needs transmission by publisher sent Message be stored in data base, also described message is stored in local cache simultaneously.The message of transmission is needed delivering to subscriber Time, it is not necessary to all inquire about data base before delivering message every time, directly can obtain described message from local cache.Only work as local cache In when there is no described message, MOM server just obtains described message, and the transmission of completion message by network from data base. Compared with prior art, while utilizing the transmission of message-oriented middleware completion message, greatly reduce network, data base's disk etc. to open Pin, improves the performance of message-oriented middleware.
Above-mentioned first method embodiment, corresponding messaging system first embodiment can as shown in Figure 6, and this system 600 is wrapped Include:
Publisher 610, need disappearing of transmission for sending to MOM server.
MOM server 620, described message-oriented middleware is provided with local cache, and described local cache is used for storing described needs The message of transmission;Described message-oriented middleware server is for being stored in data base and local cache by the described message needing transmission; Whether inquiry local cache has the described information needing transmission;If so, the described message needing transmission is obtained from local cache, and Corresponding subscriber is given by described message dilivery according to subscribing relationship.
Data base 630, for storing the described message needing transmission.
Subscriber 640, for receiving the described message needing transmission.
Above-mentioned first method embodiment, corresponding messaging device first embodiment can be as it is shown in fig. 7, this device 700 wraps Include:
Message reception units 710, for receiving the message needing transmission that publisher sends.
First message storage 720, for being stored in data base and local cache by the described message needing transmission.
Query unit 730, for inquiring about whether local cache has the described information needing transmission.
First message retrieval unit 740, is used for when there being the described information needing transmission during query unit inquires local cache, The described message needing transmission is obtained from local cache.
First message dilivery unit 750, for giving corresponding subscriber according to subscribing relationship by described message dilivery.
Further, this device also includes: the second message retrieval unit, for not having in query unit inquires local cache During the information that described needs transmit, obtain the described message needing transmission from data base.
Second message storage, for being stored in local cache by the described message needing transmission.
Second message dilivery unit, for giving corresponding subscriber according to subscribing relationship by described message dilivery.
As can be seen here, the mthods, systems and devices of a kind of message transmission that the embodiment of the present application provides, when needs are passed by publisher After the message passed is sent to MOM server, the described message needing transmission is stored in data base, simultaneously by MOM server Also described message is stored in local cache.When delivering, to subscriber, the message needing transmission, it is not necessary to every time before delivery message all Inquiry data base, directly can obtain described message from local cache.Only when local cache does not has described message, MOM Server just obtains described message, and the transmission of completion message by network from data base.Compared with prior art, utilizing Greatly reduce the expense such as network, data base's disk while the transmission of message-oriented middleware completion message, improve message-oriented middleware Performance.
In the nineties in 20th century, can clearly distinguish for the improvement of a technology is that the improvement on hardware is (such as, right The improvement of the circuit structures such as diode, transistor, switch) or software on improvement (for the improvement of method flow).So And, along with the development of technology, the improvement of current a lot of method flows can be considered as directly improving of hardware circuit. Designer nearly all obtains corresponding hardware circuit by being programmed in hardware circuit by the method flow of improvement.Cause This, it cannot be said that the improvement of a method flow cannot realize by hardware entities module.Such as, PLD (Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate Array, FPGA)) it is exactly such a integrated circuit, device programming is determined by its logic function by user.By designer Member's programming voluntarily comes a digital display circuit " integrated " on a piece of PLD, without chip maker please designing and make Make special IC chip 2.And, nowadays, replacing and manually make IC chip, this programming changes the most mostly Realize with " logic compiler (logic compiler) " software, software compiler phase used when it is write with program development Similar, and the most handy specific programming language of source code before compiling is write, this is referred to as hardware description language (Hardware Description Language, HDL), and HDL the most not only has one, but have many kinds, such as ABEL (Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、 Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language) etc., that commonly use most is VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog2.Those skilled in the art also it should also be apparent that, it is only necessary to method flow is used State several hardware description language slightly make programming in logic and be programmed in integrated circuit, it is possible to be readily available and realize this logical method The hardware circuit of flow process.
Controller can be implemented in any suitable manner, such as, controller can take such as microprocessor or processor and Storage can by this (micro-) processor perform computer readable program code (such as software or firmware) computer-readable medium, Gate, switch, special IC (Application Specific Integrated Circuit, ASIC), FPGA Controller and the form of embedding microcontroller, the example of controller includes but not limited to following microcontroller: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, Memory Controller can also quilt It is embodied as a part for the control logic of memorizer.
It is also known in the art that in addition to realizing controller in pure computer readable program code mode, the most permissible Make controller with gate, switch, special IC, FPGA control by method step carries out programming in logic The form of device processed and embedding microcontroller etc. realizes identical function.The most this controller is considered a kind of Hardware Subdivision Part, and the structure in hardware component can also be considered as to include in it for the device realizing various function.Or even, may be used To be considered as the device being used for realizing various function being not only the software module of implementation method but also can be the knot in hardware component Structure.
System, device, module or the unit that above-described embodiment illustrates, specifically can be realized by computer chip or entity, or Realized by the product with certain function.
For convenience of description, it is divided into various unit to be respectively described with function when describing apparatus above.Certainly, the application is being implemented Time the function of each unit can be realized in same or multiple softwares and/or hardware.
As seen through the above description of the embodiments, those skilled in the art it can be understood that to the application can be by soft Part adds the mode of required general hardware platform and realizes.Based on such understanding, the technical scheme of the application is the most in other words The part contributing prior art can embody with the form of software product, and in a typical configuration, calculating sets For including one or more processor (CPU), input/output interface, network interface and internal memory.This computer software product is permissible Including some instructions with so that a computer equipment (can be personal computer, server, or the network equipment etc.) is held Each embodiment of row the application or the method described in some part of embodiment.This computer software product can be stored in internal memory In, internal memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/or non-volatile The forms such as property internal memory, such as read only memory (ROM) or flash memory (flash RAM).Internal memory is the example of computer-readable medium.Meter Calculation machine computer-readable recording medium includes that removable media permanent and non-permanent, removable and non-can be realized by any method or technology Information stores.Information can be computer-readable instruction, data structure, the module of program or other data.The storage of computer The example of medium includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic randon access Memorizer (DRAM), other kinds of random access memory (RAM), read only memory (ROM), electrically erasable Read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read only memory (CD-ROM), numeral Multifunctional optical disk (DVD) or other optical storage, magnetic cassette tape, tape magnetic rigid disk storage other magnetic storage apparatus or appoint What his non-transmission medium, can be used for the information that storage can be accessed by a computing device.According to defining herein, computer can Read medium and do not include of short duration computer readable media (transitory media), such as data signal and the carrier wave of modulation.
Each embodiment in this specification all uses the mode gone forward one by one to describe, and between each embodiment, identical similar part is mutual Seeing, what each embodiment stressed is the difference with other embodiments.Especially for system embodiment Speech, owing to it is substantially similar to embodiment of the method, so describe is fairly simple, relevant part sees the part of embodiment of the method Illustrate.
The application can be used in numerous general or special purpose computing system environments or configuration.Such as: personal computer, server Computer, handheld device or portable set, laptop device, multicomputer system, system based on microprocessor, top set Box, programmable consumer-elcetronics devices, network PC, minicomputer, mainframe computer, include any of the above system or equipment Distributed computing environment etc..
The application can be described in the general context of computer executable instructions, such as program module. Usually, program module include perform particular task or realize the routine of particular abstract data type, program, object, assembly, Data structure etc..The application can also be put into practice in a distributed computing environment, in these distributed computing environment, by passing through Communication network and connected remote processing devices performs task.In a distributed computing environment, program module may be located at bag Include storage device in interior local and remote computer-readable storage medium.
Although depicting the application by embodiment, it will be appreciated by the skilled addressee that the application have many deformation and a change and Without departing from spirit herein, it is desirable to appended claim includes that these deformation and change are without deviating from spirit herein.

Claims (14)

1. the method for a message transmission, it is characterised in that including:
Issue direction message-oriented middleware server and send the message needing transmission;
The described message needing transmission is stored in data base and local cache by message-oriented middleware server;
Whether message-oriented middleware server lookup local cache has the described information needing transmission;
If so, message-oriented middleware server obtains the described message needing transmission from local cache;
Described message dilivery is given corresponding subscriber according to subscribing relationship by message-oriented middleware server.
The method of message the most according to claim 1 transmission, it is characterised in that the method also includes:
When described message-oriented middleware server lookup to local cache does not has the described information needing transmission, message-oriented middleware service Device obtains the described message needing transmission from data base, and the described message needing transmission is stored in local cache;
Described message dilivery is given corresponding subscriber according to subscribing relationship by message-oriented middleware server.
The method of message the most according to claim 1 and 2 transmission, it is characterised in that in the middle of the message of described issue direction Part server sends needs the message of transmission to include:
Publisher sends the message needing to transmit by message-oriented middleware client to message-oriented middleware server.
The method of message the most according to claim 1 and 2 transmission, it is characterised in that the manager of described local cache Method includes: recent minimum use algorithm or fifo queue.
5. the method for a message transmission, it is characterised in that including:
Receive the message needing transmission that publisher sends;
The described message needing transmission is stored in data base and local cache;
Whether inquiry local cache has the described information needing transmission;
If so, the described message needing transmission is obtained from local cache;
Corresponding subscriber is given by described message dilivery according to subscribing relationship.
The method of message the most according to claim 5 transmission, it is characterised in that the method also includes:
When inquiring local cache and there is no the described information needing transmission, obtain the described message needing transmission from data base, and The described message needing transmission is stored in local cache;
Corresponding subscriber is given by described message dilivery according to subscribing relationship.
7. the method transmitted according to the message described in claim 5 or 6, it is characterised in that the manager of described local cache Method includes: recent minimum use algorithm or fifo queue.
8. the system of a message transmission, it is characterised in that including:
Publisher, needs the message of transmission for sending to message-oriented middleware server;
Message-oriented middleware server, described message-oriented middleware is provided with local cache, and described local cache is used for storing described needs The message of transmission;Described message-oriented middleware server is for being stored in data base and local cache by the described message needing transmission; Whether inquiry local cache has the described information needing transmission;If so, the described message needing transmission is obtained from local cache, and Corresponding subscriber is given by described message dilivery according to subscribing relationship;
Data base, for storing the described message needing transmission;
Subscriber, for receiving the described message needing transmission.
The system of message the most according to claim 8 transmission, it is characterised in that do not have described if inquiring local cache When needing the information of transmission, described message-oriented middleware server is additionally operable to obtain the described message needing transmission from data base, and will The described message needing transmission is stored in local cache, gives corresponding subscriber further according to subscribing relationship by described message dilivery.
The system of message transmission the most according to claim 8 or claim 9, it is characterised in that described to message-oriented middleware service Device sends needs the message of transmission to include:
Sent the message needing to transmit to message-oriented middleware server by message-oriented middleware client.
The system of 11. message transmission according to claim 8 or claim 9, it is characterised in that the manager of described local cache Method includes: recent minimum use algorithm or fifo queue.
The device of 12. 1 kinds of message transmission, it is characterised in that including:
Message reception units, for receiving the message needing transmission that publisher sends;
First message storage, for being stored in data base and local cache by the described message needing transmission;
Query unit, for inquiring about whether local cache has the described information needing transmission;
First message retrieval unit, for when there being the described information needing transmission, from this during query unit inquires local cache Ground caching obtains the described message needing transmission;
First message dilivery unit, for giving corresponding subscriber according to subscribing relationship by described message dilivery.
The device of 13. message according to claim 12 transmission, it is characterised in that this device also includes:
Second message retrieval unit, is used for when not having the described information needing transmission during query unit inquires local cache, from Data base obtains the described message needing transmission;
Second message storage, for being stored in local cache by the described message needing transmission;
Second message dilivery unit, for giving corresponding subscriber according to subscribing relationship by described message dilivery.
14. devices transmitted according to the message described in claim 12 or 13, it is characterised in that the management of described local cache Method includes: recent minimum use algorithm or fifo queue.
CN201510032833.0A 2015-01-22 2015-01-22 Message delivery method, system and device Pending CN105871959A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510032833.0A CN105871959A (en) 2015-01-22 2015-01-22 Message delivery method, system and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510032833.0A CN105871959A (en) 2015-01-22 2015-01-22 Message delivery method, system and device

Publications (1)

Publication Number Publication Date
CN105871959A true CN105871959A (en) 2016-08-17

Family

ID=56623513

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510032833.0A Pending CN105871959A (en) 2015-01-22 2015-01-22 Message delivery method, system and device

Country Status (1)

Country Link
CN (1) CN105871959A (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106851411A (en) * 2016-12-29 2017-06-13 深圳Tcl数字技术有限公司 Television set control message transmission method, system and device
CN107038077A (en) * 2016-11-17 2017-08-11 阿里巴巴集团控股有限公司 Message flood storage method and device
CN107395761A (en) * 2017-08-29 2017-11-24 北京大生在线科技有限公司 Local issue online education prison class system based on subscription
CN108459914A (en) * 2017-12-26 2018-08-28 深圳神州数码云科数据技术有限公司 A kind of middleware command execution method and device
CN109451032A (en) * 2018-11-20 2019-03-08 上海联寓智能科技有限公司 A kind of messaging system
CN109446216A (en) * 2018-09-12 2019-03-08 珠海凡泰极客科技有限责任公司 A kind of message system for supporting SQL syntax
CN109672748A (en) * 2019-01-03 2019-04-23 深圳怡化电脑股份有限公司 Processing method, processing unit and the processing system of self-service device transaction journal
CN109828961A (en) * 2018-12-17 2019-05-31 上海七印信息科技有限公司 A kind of article publication high concurrent caching method
CN110379195A (en) * 2019-08-22 2019-10-25 公安部交通管理科学研究所 Traffic event information based on V2X orients delivery system
CN110708312A (en) * 2019-09-30 2020-01-17 交控科技股份有限公司 Method and system for message transmission in ATS and ATS
CN111131299A (en) * 2019-12-31 2020-05-08 上海依图网络科技有限公司 Trans-gatekeeper data transmission method, device, medium and system based on kubernets platform
CN111290973A (en) * 2020-05-11 2020-06-16 深圳市科信通信技术股份有限公司 Data writing method and device, computer equipment and storage medium
CN111711663A (en) * 2020-05-26 2020-09-25 北京金山云网络技术有限公司 Processing method and device for publishing and subscribing services and electronic equipment
CN111930861A (en) * 2020-08-19 2020-11-13 上海繁易信息科技股份有限公司 Kafka-based real-time data analysis subscription processing method and device
CN112422670A (en) * 2020-11-10 2021-02-26 广州凡科互联网科技股份有限公司 Method for designing asynchronous push model based on intermediate message
CN114244899A (en) * 2021-12-02 2022-03-25 上海微盟企业发展有限公司 Message transmission method and device and readable storage medium
CN116056052A (en) * 2022-08-17 2023-05-02 荣耀终端有限公司 Message processing method, device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090300403A1 (en) * 2008-05-30 2009-12-03 Mark Cameron Little Fine grained failure detection in distributed computing
CN102938731A (en) * 2012-11-22 2013-02-20 北京锐易特软件技术有限公司 Exchange and integration device and method based on proxy cache adaptation model
US20140078876A1 (en) * 2012-09-14 2014-03-20 International Business Machines Corporation Controlling persisting of data to disk
CN104092767A (en) * 2014-07-21 2014-10-08 北京邮电大学 Posting/subscribing system for adding message queue models and working method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090300403A1 (en) * 2008-05-30 2009-12-03 Mark Cameron Little Fine grained failure detection in distributed computing
US20140078876A1 (en) * 2012-09-14 2014-03-20 International Business Machines Corporation Controlling persisting of data to disk
CN102938731A (en) * 2012-11-22 2013-02-20 北京锐易特软件技术有限公司 Exchange and integration device and method based on proxy cache adaptation model
CN104092767A (en) * 2014-07-21 2014-10-08 北京邮电大学 Posting/subscribing system for adding message queue models and working method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郑一村: "基于XML消息的异构数据集成方法与应用", 《中山大学硕士学位论文》 *

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107038077A (en) * 2016-11-17 2017-08-11 阿里巴巴集团控股有限公司 Message flood storage method and device
CN107038077B (en) * 2016-11-17 2021-07-27 创新先进技术有限公司 Message flood storage method and device
CN106851411A (en) * 2016-12-29 2017-06-13 深圳Tcl数字技术有限公司 Television set control message transmission method, system and device
CN107395761B (en) * 2017-08-29 2020-09-18 北京大生在线科技有限公司 Local publishing online education course monitoring system based on subscription
CN107395761A (en) * 2017-08-29 2017-11-24 北京大生在线科技有限公司 Local issue online education prison class system based on subscription
CN108459914A (en) * 2017-12-26 2018-08-28 深圳神州数码云科数据技术有限公司 A kind of middleware command execution method and device
CN108459914B (en) * 2017-12-26 2021-01-01 深圳神州数码云科数据技术有限公司 Middleware command execution method and device
CN109446216A (en) * 2018-09-12 2019-03-08 珠海凡泰极客科技有限责任公司 A kind of message system for supporting SQL syntax
CN109451032A (en) * 2018-11-20 2019-03-08 上海联寓智能科技有限公司 A kind of messaging system
CN109451032B (en) * 2018-11-20 2021-11-23 上海联寓智能科技有限公司 Message transmission system
CN109828961A (en) * 2018-12-17 2019-05-31 上海七印信息科技有限公司 A kind of article publication high concurrent caching method
CN109828961B (en) * 2018-12-17 2023-12-08 上海七印信息科技有限公司 Article release high concurrency caching method
CN109672748A (en) * 2019-01-03 2019-04-23 深圳怡化电脑股份有限公司 Processing method, processing unit and the processing system of self-service device transaction journal
CN109672748B (en) * 2019-01-03 2021-08-13 深圳怡化电脑股份有限公司 Processing method, processing device and processing system for self-service equipment transaction flow
CN110379195A (en) * 2019-08-22 2019-10-25 公安部交通管理科学研究所 Traffic event information based on V2X orients delivery system
CN110708312A (en) * 2019-09-30 2020-01-17 交控科技股份有限公司 Method and system for message transmission in ATS and ATS
CN111131299A (en) * 2019-12-31 2020-05-08 上海依图网络科技有限公司 Trans-gatekeeper data transmission method, device, medium and system based on kubernets platform
CN111290973A (en) * 2020-05-11 2020-06-16 深圳市科信通信技术股份有限公司 Data writing method and device, computer equipment and storage medium
CN111711663A (en) * 2020-05-26 2020-09-25 北京金山云网络技术有限公司 Processing method and device for publishing and subscribing services and electronic equipment
CN111930861A (en) * 2020-08-19 2020-11-13 上海繁易信息科技股份有限公司 Kafka-based real-time data analysis subscription processing method and device
CN112422670A (en) * 2020-11-10 2021-02-26 广州凡科互联网科技股份有限公司 Method for designing asynchronous push model based on intermediate message
CN114244899A (en) * 2021-12-02 2022-03-25 上海微盟企业发展有限公司 Message transmission method and device and readable storage medium
CN114244899B (en) * 2021-12-02 2024-05-17 上海微盟企业发展有限公司 Message transmission method, device and readable storage medium
CN116056052A (en) * 2022-08-17 2023-05-02 荣耀终端有限公司 Message processing method, device, electronic equipment and storage medium
CN116056052B (en) * 2022-08-17 2023-10-31 荣耀终端有限公司 Message processing method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN105871959A (en) Message delivery method, system and device
US11341131B2 (en) Query scheduling based on a query-resource allocation and resource availability
US11321321B2 (en) Record expansion and reduction based on a processing task in a data intake and query system
US11442935B2 (en) Determining a record generation estimate of a processing task
US11586627B2 (en) Partitioning and reducing records at ingest of a worker node
US11580107B2 (en) Bucket data distribution for exporting data to worker nodes
US11599541B2 (en) Determining records generated by a processing task of a query
US20200364223A1 (en) Search time estimate in a data intake and query system
CN109189835B (en) Method and device for generating data wide table in real time
US20190272271A1 (en) Assigning processing tasks in a data intake and query system
US9712645B2 (en) Embedded event processing
US10904122B2 (en) Facilitating workload-aware shuffling and management of message types in message queues in an on-demand services environment
TWI467505B (en) Method and system for supporting user content feeds
US8635250B2 (en) Methods and systems for deleting large amounts of data from a multitenant database
US10546021B2 (en) Adjacency structures for executing graph algorithms in a relational database
US20190102387A1 (en) Geo-hashing for proximity computation in a stream of a distributed system
CN107395665A (en) A kind of block chain service handling and business common recognition method and device
EP3565219B1 (en) Service execution method and device
US20120030275A1 (en) Providing status information for components in a distributed landscape
JP2017530469A (en) Enriching events with dynamically typed big data for event processing
CN110389989B (en) Data processing method, device and equipment
US11080068B2 (en) Adaptive user-interface assembling and rendering
CN110737682A (en) cache operation method, device, storage medium and electronic equipment
JP2009530738A (en) Declarations for transformations in service sequences
WO2022267766A1 (en) Method, apparatus and device for accessing aggregate code payment page, and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160817

RJ01 Rejection of invention patent application after publication