CN110474917A - The upper and lower line method of message-oriented middleware, device, equipment and readable storage medium storing program for executing - Google Patents
The upper and lower line method of message-oriented middleware, device, equipment and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN110474917A CN110474917A CN201910772052.3A CN201910772052A CN110474917A CN 110474917 A CN110474917 A CN 110474917A CN 201910772052 A CN201910772052 A CN 201910772052A CN 110474917 A CN110474917 A CN 110474917A
- Authority
- CN
- China
- Prior art keywords
- message
- middleware
- oriented
- handling capacity
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 238000002955 isolation Methods 0.000 claims abstract description 32
- 238000011068 loading method Methods 0.000 claims abstract description 14
- 230000004044 response Effects 0.000 claims description 42
- 238000004364 calculation method Methods 0.000 claims description 7
- 238000012360 testing method Methods 0.000 claims description 7
- 238000012217 deletion Methods 0.000 claims description 5
- 230000037430 deletion Effects 0.000 claims description 5
- 238000005516 engineering process Methods 0.000 abstract description 6
- 238000012790 confirmation Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 3
- 101100008044 Caenorhabditis elegans cut-1 gene Proteins 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 238000010200 validation analysis Methods 0.000 description 2
- 238000005303 weighing Methods 0.000 description 2
- 241000251736 Raja clavata Species 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Data Mining & Analysis (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
Abstract
The present invention relates to financial technology fields, and disclose a kind of message-oriented middleware server-side inserting method, comprising: are read-only status by the first message theme priority assignation of first message middleware when receiving the offline request of first message middleware;The first message handling capacity and information consumption progress of first message middleware are verified;If setting down status for the first message middleware, and being by first message theme priority assignation can not read-write state by verifying.The invention also discloses a kind of message-oriented middleware server-side loading method, upper and lower line apparatus, equipment and readable storage medium storing program for executing.The problem of present invention is added to the isolation of message-oriented middleware, is not in client timeout when offline on part between guaranteeing in the message;Also, to it is upper offline when verifying, guarantee message do not lose.
Description
Technical field
The present invention relates to the message-oriented middleware services of financial technology (Fintech) technical field more particularly to financial industry
Hold upper and lower line method, device, equipment and readable storage medium storing program for executing.
Background technique
With the development of computer technology, more and more technologies are (such as distributed, block chain Blockchain, artificial intelligence
Can wait) it applies in financial field, traditional financial industry gradually changes to financial technology (Fintech), more and more technologies
Applied to financial industry, such as distribution application system.Existing distribution application system is constructed using message-oriented middleware mode,
Developer is by using message-oriented middleware application extension to different operating system and different network environments.Based on message
Mechanism be more suitable for by event driven application, when an incident occurs, message-oriented middleware notifies service side that should carry out
How to operate.
Message-oriented middleware is stored for message and message forwarding.One important function of message-oriented middleware is can be across
Platform operation, provides convenience for the application integration on different operating system.
Existing message-oriented middleware server B roker cluster, in the message between part it is offline when, calculate information consumption value, be
The calculating of consumption value is carried out by client, still, when the client of message-oriented middleware connection is more, calculates time-consuming compare
It is long, it is easy to lead to information drop-out because of time-out;When part is online between in the message, not to main on same cluster message-oriented middleware
Topic Topic authority information compare, when occur Topic information it is inconsistent when, will lead to message-oriented middleware Broker it is online after
The case where mass flow discrepancy weighs occurs so as to cause message time-out, therefore, when offline on message-oriented middleware in the prior art, often
Can there are information drop-out, or the situation of time-out.
Summary of the invention
It is a primary object of the present invention to propose a kind of upper and lower line method of message-oriented middleware server-side, device, equipment and can
Read storage medium, it is intended to information drop-out or time-out are easy when solving the problems, such as offline on message-oriented middleware in the prior art.
To achieve the above object, the present invention provides a kind of message-oriented middleware server-side inserting method, which is characterized in that described
Message-oriented middleware server-side inserting method includes the following steps:
When receiving the offline request of first message middleware, by the first message theme of the first message middleware
Priority assignation is read-only status;
The first message handling capacity and information consumption progress of the first message middleware are verified;
If the first message handling capacity and the information consumption progress are by verifying, by the first message middleware
It is set as down status, and being by the first message theme priority assignation can not read-write state.
Optionally, the step of verifying to the first message handling capacity of the first message middleware include:
Corresponding first average response time of first message middleware described in timing acquisition and the first average user number;
Corresponding first message handling capacity is calculated based on first average response time and the first average user number;
Judge whether the first message handling capacity is equal to the first preset value;
If so, updating first average response time and corresponding first times of acquisition of the first average user number;
If first times of acquisition are greater than or equal to the second preset value, determine the first message handling capacity by testing
Card.
Optionally, the step of verifying to the information consumption progress include:
By the first message middleware, the information consumption progress in first message queue is inquired;
Judge whether the information consumption progress is equal to third preset value, wherein if so, determine the information consumption into
Degree passes through verifying.
Optionally, described to set down status for the first message middleware, and the first message theme is weighed
Limit be set as can not read-write state the step of before, the method also includes:
Obtain the first connection number information between the first message middleware and first client;
Judge whether the first connection number information is equal to the 4th preset value;
If so, the first routing iinformation between the first message middleware and first client is isolated.
Optionally, first routing iinformation by between the first message middleware and first client is isolated
The step of include:
The first route registration tool is inquired by the first message middleware;
By the first route registration tool the first routing iinformation isolation relevant to the first message middleware.
In addition, the present invention also provides a kind of message-oriented middleware server-side loading method, in the message-oriented middleware server-side
Line method includes:
When receiving the online request of second message middleware, by the second message theme of the second message middleware
Priority assignation is read-only status;
The second message handling capacity of the second message middleware is verified;
If the second message handling capacity releases the corresponding isolation of the second message middleware by verifying,
So that the second client connects the second message middleware;
It is pre- to judge whether the second connection number information between the second message middleware and second client meets
If condition;
If the second connection number information meets the preset condition, set online for the second message middleware
State, and the second message theme permission is revised as readable write state.
Optionally, the step of second message handling capacity to the second message middleware is verified include:
Second message middleware described in timing acquisition is average to the second average response time of second message data and second
Number of users;
Corresponding second message handling capacity is calculated based on second average response time and the second average user number;
Judge whether the second message handling capacity is equal to the 5th preset value;
If so, updating second average response time and corresponding second times of acquisition of the second average user number;
If second times of acquisition are greater than or equal to the 6th preset value, determine the second message handling capacity by testing
Card.
Optionally, described to release the corresponding isolation of the second message middleware, so that the second client connects institute
The step of stating second message middleware include:
Secondary route, which is inquired, by the second message middleware registers tool;
By secondary route registration tool secondary route information deletion relevant to the second message middleware.
Optionally, the second connection number information judged between the second message middleware and second client
The step of whether meeting preset condition include:
Hash calculation is carried out to the connection number information of each middleware in the cluster where the second message middleware,
Obtain the corresponding cryptographic Hash of each middleware, wherein the cryptographic Hash includes the second connection number of the second message middleware
The third connection number of middleware in corresponding first cryptographic Hash of information and the cluster in addition to the second message middleware
Corresponding second cryptographic Hash of information;
Judge whether second cryptographic Hash matches with first cryptographic Hash, wherein if so, determining that described second disappears
The second connection number information between breath middleware and second client meets preset condition.
Optionally, described to set online state for the second message middleware, and the second message theme is weighed
Before the step of limit is revised as readable write state, the method also includes:
By the second message middleware, second message queue is monitored;
Judge whether the second message queue has leakage to listen state;
Online state is set by the second message middleware if so, executing, and the second message theme is weighed
The step of limit is revised as readable write state.
In addition, to achieve the above object, the present invention also provides a kind of message-oriented middleware server-side coil inserting apparatus, feature exists
In the message-oriented middleware server-side coil inserting apparatus includes:
First receiving module will be in the first message for when receiving the offline request of first message middleware
Between part first message theme priority assignation be read-only status;
First authentication module, for the first message middleware first message handling capacity and information consumption progress into
Row verifying;
First setup module, if for the first message handling capacity and the information consumption progress by verifying, it will
The first message middleware is set as down status, and being by the first message theme priority assignation can not read-write state.
In addition, to achieve the above object, the present invention also provides a kind of message-oriented middleware server-side eedle threader, the message
Middleware services end eedle threader includes:
Second receiving module will be in the second message for when receiving the online request of second message middleware
Between part second message theme priority assignation be read-only status:
Second authentication module is verified for the second message handling capacity to the second message middleware;
Module is released, if releasing the second message middleware pair by verifying for the second message handling capacity
The isolation answered, so that the second client connects the second message middleware;
Second judgment module, for judging the second connection between the second message middleware and second client
Whether number information meets preset condition;
Second setup module disappears if meeting the preset condition for the second connection number information by described second
Breath middleware is set as online state, and the second message theme permission is revised as readable write state.
In addition, to achieve the above object, the present invention also provides a kind of offline equipment of message-oriented middleware server-side, the message
The offline equipment in middleware services end includes: first memory, first processor and is stored on the first memory and can be
Sequence of threads under the message-oriented middleware server-side run on the first processor, sequence of threads quilt under the message-oriented middleware server-side
The step of message-oriented middleware server-side inserting method as described in any one of above-mentioned is realized when the processor executes.
In addition, to achieve the above object, the present invention also provides a kind of online equipment of message-oriented middleware server-side, the message
The online equipment in middleware services end includes: second memory, second processor and is stored on the second memory and can be
Sequence of threads in the message-oriented middleware server-side run in the second processor, sequence of threads quilt in the message-oriented middleware server-side
The step of message-oriented middleware server-side loading method as described in any one of above-mentioned is realized when the processor executes.
In addition, to achieve the above object, the present invention also provides a kind of readable storage medium storing program for executing, being deposited on the readable storage medium storing program for executing
The upper and lower sequence of threads of message-oriented middleware server-side is contained, sequence of threads is executed by first processor under the message-oriented middleware server-side
The step of message-oriented middleware server-side inserting method of the Shi Shixian as described in any one of above-mentioned, and the message-oriented middleware service
Hold the message-oriented middleware server-side loading method realized as described in any one of above-mentioned when program is executed by second processor up and down
The step of.
Message-oriented middleware server-side inserting method proposed by the present invention disappears when first message middleware is offline by first
Breath theme priority assignation be read-only status so that the first client can not again to the first message middleware send message, first
Client only needs to carry out information consumption, so that the first client, which forwards the message to other, does not have offline message-oriented middleware,
It is equivalent to and flow switching is walked, prevent when first message middleware is offline, message is also toward sending on first message middleware
Caused by message time-out;It is tested by first message handling capacity to the first message middleware and information consumption progress
Card, when being verified, sets down status for the first message middleware, and be by first message theme priority assignation
Can not read-write state so that the first client guarantee consume complete message after, first message theme permission is revised as can not
Read-write state, since the first client obtains the information less than first message theme permission, so can be automatically and in first message
Between part disconnect, it is therefore prevented that first message middleware suddenly it is offline caused by extensive service alarm the case where occur.
Message-oriented middleware server-side loading method proposed by the present invention, when second message middleware is online, by described
The second message theme priority assignation of two message-oriented middlewares is read-only status, when confirming online, does not have message and enters second
In message-oriented middleware;Second message handling capacity is verified, it is ensured that could when no message enters second message middleware
Release isolation;It is all in part cluster between illustrating in the message when the second connection number information meets the preset condition
Middleware reaches consistent state, flow can be put into second message middleware, avoids the monitoring of the second client
It is unbalanced and overtime.
The present invention is added to the isolation of message-oriented middleware, is not in client when offline on part between guaranteeing in the message
Hold the problem of time-out;Also, to it is upper offline when verifying, regardless of in synchronized clusters or asynchronous cluster, guarantee message is not lost.
Detailed description of the invention
Fig. 1 is the device structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of message-oriented middleware server-side inserting method first embodiment of the present invention;
Fig. 3 is the flow diagram of message-oriented middleware server-side inserting method second embodiment of the present invention;
Fig. 4 is the flow diagram of message-oriented middleware server-side loading method first embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in Figure 1, Fig. 1 is the device structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
The upper and lower line equipment of message-oriented middleware server-side of the embodiment of the present invention can be PC machine or server apparatus.
As shown in Figure 1, the upper and lower line equipment of the message-oriented middleware server-side may include: processor 1001, such as CPU, net
Network interface 1004, user interface 1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing these
Connection communication between component.User interface 1003 may include display screen (Display), input unit such as keyboard
(Keyboard), optional user interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 is optional
May include standard wireline interface and wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory,
It is also possible to stable memory (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally may be used also
To be independently of the storage device of aforementioned processor 1001.
It will be understood by those skilled in the art that device structure shown in Fig. 1 does not constitute the restriction to equipment, can wrap
It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
As shown in Figure 1, as may include operating system, net in a kind of memory 1005 of computer readable storage medium
Network communication module, Subscriber Interface Module SIM and the upper and lower sequence of threads of message-oriented middleware server-side.
In equipment shown in Fig. 1, network interface 1004 is mainly used for connecting background server, carries out with background server
Data communication;User interface 1003 is mainly used for connecting client, carries out data communication with client;And processor 1001 can be with
For calling the upper and lower sequence of threads of message-oriented middleware server-side stored in memory 1005, and execute following message-oriented middleware clothes
Operation in each embodiment of the upper and lower line method in end of being engaged in.
Based on above-mentioned hardware configuration, the upper and lower line method embodiment of message-oriented middleware server-side of the present invention is proposed.
It is the flow diagram of message-oriented middleware server-side inserting method first embodiment of the present invention, institute referring to Fig. 2, Fig. 2
The method of stating includes:
Step S10, when receiving the offline request of first message middleware, by the first of the first message middleware
Message subject priority assignation is read-only status;
In the present embodiment, in distribution application system, including message-oriented middleware, i.e. first message middleware Broker,
Message-oriented middleware provides message core service as server, for storing the forwarding of message and message;Service requester, i.e.,
Request message is sent to service provider by message-oriented middleware Broker, is one kind of client by the consumer of service;Clothes
Be engaged in provider, that is, the supplier serviced receives the calling message of service requester, business processing is carried out, to the consumer of service
Issue one kind of response (or not issuing response) and client;First message theme permission Topic, is message-oriented middleware
A kind of service on Broker carries out message subscribing for service provider, and service requester sends message;Message-oriented middleware road
By registration tool Namesrv, routing iinformation and client query routing iinformation are reported for message-oriented middleware Broker.
When first message middleware needs offline, broadcast will do it, message-oriented middleware server-side coil inserting apparatus is somebody's turn to do
Offline request, at this point, read-only status is set by the corresponding first message theme permission Topic of the first message middleware, and
The first message theme permission Topic variation that distribution application system perceives first message middleware is read-only status.
It should be noted that theme permission Topic can be divided by message-oriented middleware route registration tool Namesrv
For four kinds of states: read-write (being indicated with number 6), it is read-only (being indicated with number 4), it only writes and (is indicated with number 2), can not be read and write
(being indicated with number 0).
It is read-only shape by the first message theme priority assignation of the first message middleware when receiving offline request
State enables to message not re-send on the first message middleware, only carries out the consumption of message, i.e., so that just offline
Middleware no longer receives message, and forwarding the message to other convenient for service requester (consumer) does not have offline message-oriented middleware
On, it is equivalent to and flow is switched off, prevent when the first message middleware is offline, message is also in the past first message middleware
It is upper transmission and lead to message time-out phenomenon.
Step S20 verifies the first message handling capacity and information consumption progress of the first message middleware;
In the step, after ensuring that first message middleware no longer receives message, disappear to the first of first message middleware
Breath handling capacity and information consumption progress are tested, and are specifically included to the verifying of first message handling capacity:
Corresponding first average response time of first message middleware described in timing acquisition and the first average user number;It is based on
First average response time and the first average user number calculate corresponding first message handling capacity;Judge the first message
Whether handling capacity is equal to the first preset value;If so, update first average response time and the first average user number are corresponding
The first times of acquisition;If first times of acquisition are greater than or equal to the second preset value, determine that the first message is handled up
Amount passes through verifying.
By the verifying to first message handling capacity, the first preset value is chosen as 0, and the second preset value can be 3, such as when every
It is 0 that first message handling capacity was got every 1 second, and continuously getting first message handling capacity three times is 0, then determines that first disappears
Handling capacity is ceased by verifying, and confirmation enters back into the first message middleware without message at this time.
Verifying is carried out to information consumption progress to specifically include:
By the first message middleware, the information consumption progress in first message queue is inquired;
Judge whether the information consumption progress is equal to third preset value, wherein if so, determine the information consumption into
Degree passes through verifying.
By the verifying to information consumption progress, third preset value is chosen as 0, when information consumption progress is 0, confirms this
When the first message middleware on message data consumed and finished, to effectively avoid first message middleware when offline
Information drop-out.
It is understood that needing first to carry out first message handling capacity verifying, then carry out information consumption progress and test in this case
Card just can guarantee the accurate validation of information consumption progress after guarantee absolutely not flow enters the first message middleware again.
By the verifying to first message handling capacity and information consumption progress, effective guarantee first message middleware is offline
When message do not lose.
Step S30, if the first message handling capacity and the information consumption progress are disappeared by verifying by described first
Breath middleware is set as down status, and being by the first message theme priority assignation can not read-write state;
In the step, when confirming that first message handling capacity and information consumption progress are verified, described first is disappeared
Breath middleware is set as down status, and setting first message theme permission Topic to can not read-write state.
Specifically, in order to allow service requester, the i.e. connection of the disconnection of consumer's gracefulness and first message middleware,
First message theme permission Topic is set as to read and write in the case that message is not lost when offline by one message-oriented middleware
State (is indicated) with number 0, at this point, being not when service provider (producer) gets first message theme permission Topic
When the corresponding status information of readable write state, the Topic that can not be read and write can be filtered out, so that service requester (consumer) nothing
Method gets the Topic information, at this point, can disconnect automatically with first message middleware.
By in the case where first message middleware when offline do not lose by message, by first message theme permission
Topic be set as can not read-write state, caused extensive service alarm when effectivelying prevent first message middleware offline suddenly
The case where occur.
Message-oriented middleware server-side inserting method proposed by the present invention disappears when first message middleware is offline by first
Breath theme priority assignation be read-only status so that the first client can not again to the first message middleware send message, first
Client only needs to carry out information consumption, so that the first client, which forwards the message to other, does not have offline message-oriented middleware,
It is equivalent to and flow switching is walked, prevent when first message middleware is offline, message is also toward sending on first message middleware
Caused by message time-out;It is tested by first message handling capacity to the first message middleware and information consumption progress
Card, when being verified, by first message theme priority assignation be can not read-write state so that the first client guarantee consume
After completing message, by first message theme permission be revised as can not read-write state, disappear since the first client is obtained less than first
The information of theme permission is ceased, so can disconnect automatically with first message middleware, it is therefore prevented that first message middleware is offline suddenly
The case where caused extensive service alarm, occurs.
Further, the first embodiment based on message-oriented middleware server-side inserting method of the present invention proposes that the present invention disappears
Cease the second embodiment of middleware services end inserting method;As shown in figure 3, step S20 may include:
Step S21, corresponding first average response time of first message middleware described in timing acquisition and first average is used
Amount;
Step S22 calculates corresponding first message based on first average response time and the first average user number and gulps down
The amount of spitting;
Step S23, judges whether the first message handling capacity is equal to the first preset value;
Step S24, if so, updating first average response time and corresponding first acquisition of the first average user number
Number;
Step S25 determines that the first message is handled up if first times of acquisition are greater than or equal to the second preset value
Amount passes through verifying.
In the present embodiment, the first message handling capacity of first message middleware is verified, specifically: timing acquisition
The the first average response time R and the first average user number N of one message-oriented middleware;Based on the first average response time R and first
Average user number N obtains corresponding first message handling capacity tps;Judge whether first message handling capacity tps is 0, if so, more
New first average response time and corresponding first times of acquisition of the first average user number;If first times of acquisition are big
In or equal to the second preset value, then determine that the first message handling capacity is carried out by verifying, and to the information consumption progress
Verifying.
Mainly judge first message middleware in the present embodiment, whether there are also flow disengaging, by formula N=R*X,
In, R indicates the first average response time, it is of course also possible to be average response rate;N indicates the first average user number, and X is indicated
First message handling capacity tps can calculate X by formula, first message handling capacity can be obtained after getting R and N
Value.
It is obvious that when the first preset value is chosen as 0, as the first average response time R or the first average user number N
In any one number be 0 when, first message handling capacity be 0, it is to be understood that when message is not present in first message middleware
Response time, or there is no active user, then, it can determine that first message handling capacity is 0, i.e., among first message at this time
Part does not reprocess message at this time.
By the verifying to first message handling capacity, when first message handling capacity is 0, confirmation at this time without message again into
Enter the first message middleware.
Second preset value is chosen as 3, for example prefixed time interval is 1 second, then gulping down every the first message of confirmation in 1 second
Whether the amount of spitting is 0, can continuously acquire 3 times or more than, when continuous 3 first message handling capacities of confirmation are 0, can determine that the
One message throughput is by verifying, certainly, if it is not 0 that middleware, which has certain once, still can not determine first message handling capacity energy
Enough pass through verifying.
Judged by carrying out whether being equal to the first preset value to first message handling capacity in prefixed time interval, effectively
Server is avoided erroneous judgement caused by jitter conditions occur.
Further, the second embodiment based on message-oriented middleware server-side inserting method of the present invention proposes that the present invention disappears
Cease the 3rd embodiment of middleware services end inserting method;Step S25 may include:
By the first message middleware, the information consumption progress in first message queue is inquired;
Judge whether the information consumption progress is equal to third preset value, wherein if so, determine the information consumption into
Degree passes through verifying.
In the present embodiment, after determining that the first message handling capacity is 0 within a preset time interval, by first message
Between part, inquire first message queue in information consumption progress;Judge whether the information consumption progress is equal to third preset value,
Wherein, if so, determining that the information consumption progress passes through verifying.
It is finished to guarantee that first message middleware message in offline completion has been consumed, avoids asking for information drop-out
Topic, after determining the first message handling capacity by verifying, confirmation enters back into the first message middleware without message at this time;
Again by first message middleware, corresponding first message queue Queue is inquired, information consumption progress offset is obtained.
It should be noted that the information consumption progress of this case can be obtained by calculating broadcast consumption group, since broadcast disappears
Take ack (confirmation) value of group in client, so need to be calculated with deliveroffset (delivery) value, disappears when first
When breath middleware tells the delivery value (maxoffset-deliveroffset) of the first client to be less than or equal to 0, it is determined that broadcast
The consumption of consumption group finishes.I.e. first message middleware can inquire the message between first message queue and the first client and deliver note
Record, the first client gives first message queue posted message packet, every to deliver one, then the first client confirmation delivers one, i.e.,
The message package of itself is cut 1, also, first message middleware can inquire the delivery progress of the first client, when
When the message package delivery of one client finishes, i.e., when the message package of itself has been shipped to first message queue completely, first disappears
The message package delivery of breath queue finishes, at this point, information consumption progress becomes 0.
It is corresponding, when information consumption progress is not the consumption of broadcast consumption group, first is preserved in first message middleware
The message progress of client, i.e. the first client provide the inquiry of service logic to first message middleware, and inquiry is primary, and first
Client is it is confirmed that primary, and the inquiry times of the first client are just cut 1 time, are determining the inquiry progress (maxoffset-
When ackoffset) becoming 0, then illustrate to have inquired to finish, i.e. information consumption finishes.It can determine that the message of first message queue
Packet is delivered and is finished, at this point, information consumption progress becomes 0, and information consumption progress passes through verifying.
It is understood that the judgement that this case is not limited to the information consumption progress of selection message-oriented middleware offsets to realize
The judgement whether expense is completed can also carry out the calculating of information consumption progress offset value by being connected to each client.
By the verifying to information consumption progress, guarantee the accurate validation of information consumption progress, effective guarantee first message
Middleware message when offline is not lost.
Further, down status is set by the first message middleware, and by the first message theme permission
Be set as can not read-write state the step of before, this method can also include:
Obtain the first connection number information between the first message middleware and first client;
Judge whether the first connection number information is equal to the 4th preset value;
If so, the first routing iinformation between first message middleware and first client is isolated;
Later, down status is set by the first message middleware, and by the first message theme priority assignation
For can not read-write state.
In the present embodiment, first message middleware Broker connection number is stored in multiple data structures, therefore, is only needed
It to be stored in a global data structure, when client connects and when client wants will obtain among first message
The link information of part Broker constantly, directly acquires index set, when all connections on acquisition first message middleware Broker
It is disconnected for 0 expression all clients, at this moment can be carried out the isolation of first message middleware Broker, i.e., first disappears
The first routing iinformation between breath middleware and the first client is isolated, and adds isolation.
After the first routing iinformation between the first message middleware and first client is isolated,
On one message-oriented middleware Broker, a state is added to indicate whether first message middleware Broker is under offline
Linear state, after first message middleware Broker is arranged to offline, when there is message to be sent to first message middleware
When Broker, first message middleware Broker can refuse request, and client is allowed to retry other online presences
Message-oriented middleware Broker.
Wherein, the first routing iinformation between the first message middleware and first client is isolated can wrap
It includes:
The first route registration tool is inquired by the first message middleware;
By the first routing iinformation isolation relevant to the first message middleware of the first route registration tool.
In the present embodiment, first message middleware is isolated, is mainly prevented, when on first message middleware Broker
When line, many work are not ready for that client is just allowed to perceive Broker information, can directly result in message time-out in this way, so
The isolation of a middleware Broker is added on middleware route registration tool namesrv, so that client is based on institute
When stating first message middleware described in the first route registration tool queries, first routing iinformation can not be inquired.When first
It is when message-oriented middleware Broker is offline, first message middleware Broker is enterprising from middleware route registration tool namesrv
Row isolation, as long as not releasing isolation in this way, client is to perceive less than existing for Broker, preventing first message middleware
Broker is not ready for just client being allowed to perceive routing iinformation when starting.
It is the flow diagram of message-oriented middleware server-side loading method first embodiment of the present invention, institute referring to Fig. 4, Fig. 4
The method of stating includes:
Step S100, when receiving the online request of second message middleware, by the of the second message middleware
Two message subject priority assignations are read-only status;
In the present embodiment, on second message middleware Broker add a request code come indicate setting authority request,
Be by Topic priority assignation it is read-only, being previously mentioned read-only be data structure in Broker is indicated with digital 4
's.By request code modification when there is second message theme Topic permission on new online Broker, reaffirms and guarantee online
When, since second message theme Topic permission is read-only status, message is not had and is entered in Broker.
Step S200 verifies the second message handling capacity of the second message middleware;
In the step, the second message handling capacity of the second message middleware is verified specifically: timing acquisition
Second average response time and second average user number of the second message middleware to second message data;Based on described
Two average response times and the second average user number calculate corresponding second message handling capacity;Judge the second message handling capacity
Whether the 5th preset value is equal to;If so, updating second average response time and the second average user number corresponding second
Times of acquisition;If second times of acquisition are greater than or equal to the 6th preset value, determine that the second message handling capacity passes through
Verifying.
It is calculated as calculation of message-oriented middleware when offline by N=R*X, reaffirms it is not disappear
Breath enters second message middleware Broker, when confirming that two message-oriented middleware Broker do not have message, could release two and disappear
Cease the isolation of middleware Broker.
Likewise, guaranteeing that message is not lost by the verifying to second message handling capacity.
Step S300, if it is corresponding to release the second message middleware by verifying for the second message handling capacity
Isolation, so that the second client connects the second message middleware;
In the step, the corresponding isolation of the second message middleware is released specifically: pass through the second message
Middleware inquires secondary route and registers tool;By secondary route registration tool relevant to the second message middleware the
Two routing iinformations are deleted, so that second client is based on the secondary route and registers tool queries second message middleware
When, after inquiring the secondary route information, connect the second message middleware.
After second message handling capacity is by verifying, the corresponding isolation of second message middleware is released, i.e., by arriving
Request code is added on message route registration tool namesrv, is removed in isolation data structure, just online Broker's
Information releases isolation, due to second message theme permission Topic or read-only status at this time, so client is only now
It can connect up, not will do it message transmission.
Step S400 judges that the second connection number information between the second message middleware and second client is
It is no to meet preset condition;
In the step, judge that the second connection number information between the second message middleware and second client is
It is no to meet preset condition specifically: to the connection number information of each middleware in the cluster where the second message middleware
Hash calculation is carried out, obtains the corresponding cryptographic Hash of each middleware, wherein the cryptographic Hash includes the second message middleware
Corresponding first cryptographic Hash of the second connection number information and the cluster in middleware in addition to the second message middleware
Corresponding second cryptographic Hash of third connection number information;
Judge whether second cryptographic Hash matches with first cryptographic Hash, wherein if so, determining in second message
Between the second connection number information between part and second client meet preset condition.
The present embodiment using it is graceful it is online by the way of, Topic information on same cluster Broker is compared, if not into
Row comparison, if it is inconsistent Topic information occur, will lead to Broker it is online after mass flow discrepancy weighing apparatus the case where appearance.Because of number
According to bigger reason is measured, this process is compared than relatively time-consuming.Therefore, it is carried out by the way of the hash value for calculating Topic
Compare, greatly accelerates compare speed in this way.
Step S500, if the second connection number information meets the preset condition, by the second message middleware
It is set as online state, and the second message theme permission is revised as readable write state;
In the step, if the second connection number information meets the preset condition, the second message middleware is set
It is set to online state, Broker state is modified especially by request code, after Broker state changes, so that it may message is received, and
Will not refuse information send into Broker.This step is in order to which the modification of subsequent permission just prepares.
After second message theme permission is revised as readable write state, the upper line process of second message middleware is completed,
Of course, it is possible to continue to check look at whether flow is normal in same cluster, if there is the situation of message time-out to occur.
The present invention sets the second message theme permission of the second message middleware when second message middleware is online
It is set to read-only status, when confirming online, message is not had and enters in second message middleware;Second message handling capacity is carried out
Verifying, it is ensured that be that no message could release isolation when entering second message middleware;When the second connection number information meets
When the preset condition, middleware all in part cluster reaches consistent state between illustrating in the message, can be flow
It is put into second message middleware, it is unbalanced and overtime to avoid the monitoring of the second client.
Further, step S200 may include:
Second message middleware described in timing acquisition is average to the second average response time of second message data and second
Number of users;
Corresponding second message handling capacity is calculated based on the second average response time and the second average user number;
Judge whether the second message handling capacity is equal to the 5th preset value;
If so, updating the second average response time and corresponding second times of acquisition of the second average user number;
If second times of acquisition are greater than or equal to the 6th preset value, determine the second message handling capacity by testing
Card.
In the present embodiment, the second message handling capacity of the second message middleware is verified specifically: timing
The second message middleware is obtained to the second average response time and the second average user number of second message data;Based on institute
It states the second average response time and the second average user number calculates corresponding second message handling capacity;Judge that the second message gulps down
Whether the amount of spitting is equal to the 5th preset value;If so, update second average response time and the second average user number are corresponding
Second times of acquisition;If second times of acquisition are greater than or equal to the 6th preset value, the second message handling capacity is determined
Pass through verifying.
Optionally, the 5th preset value is 0, and the 6th preset value is 3 to lead to as calculation of message-oriented middleware when offline
N=R*X is crossed to be calculated, reaffirms it is that no message enters second message middleware Broker, when confirming two message
When middleware Broker does not have message, the isolation of two message-oriented middleware Broker could be released.By being gulped down to second message
The verifying for the amount of spitting guarantees that message is not lost.
Further, step S300 may include:
Secondary route, which is inquired, by the second message middleware registers tool;
By secondary route registration tool secondary route information deletion relevant to second message middleware.
In the present embodiment, isolation is released specifically: secondary route registration is inquired by the second message middleware
Tool;The secondary route is registered into tool secondary route information deletion relevant to the second message middleware, so that the
When two clients are based on secondary route registration tool queries second message middleware, the secondary route information is inquired
Afterwards, the second message middleware is connected.
Request code is added on tool namesrv by registering in secondary route, is removed in isolation data structure
The information of online Broker releases isolation, since Topic is also only read-only entirely at this time, so client now
It can connect up, not will do it message transmission.
Further, step S40 may include:
Hash calculation is carried out to the connection number information of each middleware in the cluster where the second message middleware,
Obtain the corresponding cryptographic Hash of each middleware, wherein the second connection number information of the second message middleware corresponding second is breathed out
It is uncommon to be worth, corresponding first cryptographic Hash of the third connection number information of the middleware in the cluster in addition to the second message middleware;
Judge whether second cryptographic Hash and first cryptographic Hash are corresponding, wherein if so, determining in second message
Between the second connection number information between part and second client meet preset condition.
In the present embodiment, in such a way that gracefulness is online, Topic information on same cluster Broker is compared, if
Without comparison, if it is inconsistent Topic information occur, will lead to Broker it is online after mass flow discrepancy weighing apparatus the case where appearance.Cause
For the bigger reason of data volume, this process is compared than relatively time-consuming.Therefore, using calculate Topic hash value by the way of come
It is compared, accelerates compare speed in this way.
Further, online state is set by the second message middleware, and by the second message theme permission
Before the step of being revised as readable write state, this method can also include:
By the second message middleware, second message queue is monitored;
Judge whether the second message queue has leakage to listen state;
Online state is set by the second message middleware if so, executing, and the second message theme is weighed
The step of limit is revised as readable write state.
In the present embodiment, after setting online state for second message middleware, by the second message middleware,
Monitor second message queue;Judge whether the second message queue has leakage to listen state, wherein if so, executing described the
Two message subject permissions are revised as readable write state.
One data structure is set on Broker, if corresponding second message queue queue does not have corresponding verification value,
Then illustrate that second message queue queue has leakage to listen appearance, is listened if there is leakage, it will print, allow manpower intervention to look into well
It sees, then judges whether in next step.
Also, modifying Broker state by request code is readable write state, after Broker state changes, so that it may receive
Message is transmitted into Broker without refuse information.
The present invention also provides a kind of message-oriented middleware server-side coil inserting apparatus.Under message-oriented middleware server-side of the present invention
Line apparatus includes:
First receiving module will be in the first message for when receiving the offline request of first message middleware
Between part first message theme priority assignation be read-only status;
First authentication module, for the first message middleware first message handling capacity and information consumption progress into
Row verifying;
First setup module, if for the first message handling capacity and the information consumption progress by verifying, it will
The first message theme priority assignation is can not read-write state.
Further, the first authentication module is also used to:
Corresponding first average response time of timing acquisition first message middleware and the first average user number;
Corresponding first message handling capacity is calculated based on the first average response time and the first average user number;
Judge whether the first message handling capacity is equal to the first preset value;
If so, updating the first average response time and corresponding first times of acquisition of the first average user number;
If first times of acquisition are greater than or equal to the second preset value, determine the first message handling capacity by testing
Card, and the information consumption progress is verified.
Further, the first authentication module is also used to:
By the first message middleware, the information consumption progress in first message queue is inquired;
Judge whether the information consumption progress is equal to third preset value, wherein if so, determine the information consumption into
Degree passes through verifying.
Further, message-oriented middleware server-side coil inserting apparatus includes first judgment module, and the first judgment module is used
In:
Obtain the first connection number information between the first message middleware and first client;
Judge whether the first connection number information is equal to the 4th preset value;
If so, the first routing iinformation between first message middleware and first client is isolated.
Further, the first judgment module is executing judgement the first connection number information equal to the 4th preset value
After step, the message-oriented middleware server-side coil inserting apparatus includes isolation module, is used for:
The first route registration tool is inquired by the first message middleware;
By the first route registration tool the first routing iinformation isolation relevant to the first message middleware.
Further, the message-oriented middleware server-side coil inserting apparatus further includes refusal module, is used for:
Down status is set by the first message middleware, so that first client is to the first message
When middleware initiates message request, the refusal information that the first message middleware is sent based on the message request is received.
The present invention also provides a kind of message-oriented middleware server-side eedle threaders.In message-oriented middleware server-side of the present invention
Line apparatus includes:
Second receiving module will be in the second message for when receiving the online request of second message middleware
Between part second message theme priority assignation be read-only status:
Second authentication module is verified for the second message handling capacity to the second message middleware;
Module is released, if releasing the second message middleware pair by verifying for the second message handling capacity
The isolation answered, so that the second client connects the second message middleware;
Second judgment module, for judging the second connection between the second message middleware and second client
Whether number information meets preset condition;
Second setup module disappears if meeting the preset condition for the second connection number information by described second
Breath middleware is set as online state, and the second message theme permission is revised as readable write state.
Further, second authentication module is also used to:
Second message middleware described in timing acquisition is average to the second average response time of second message data and second
Number of users;
Corresponding second message handling capacity is calculated based on the second average response time and the second average user number;
Judge whether the second message handling capacity is equal to the 5th preset value;
If so, updating the second average response time and corresponding second times of acquisition of the second average user number;
If second times of acquisition are greater than or equal to the 6th preset value, determine the second message handling capacity by testing
Card.
Further, the isolation module is also used to: being inquired secondary route by the second message middleware and is registered work
Tool;
By secondary route registration tool secondary route information deletion relevant to the second message middleware.
Further, second judgment module is also used to:
Hash calculation is carried out to the connection number information of each middleware in the cluster where the second message middleware,
Obtain the corresponding cryptographic Hash of each middleware, wherein the cryptographic Hash includes the second connection number of the second message middleware
The third connection number of middleware in corresponding first cryptographic Hash of information and the cluster in addition to the second message middleware
Corresponding second cryptographic Hash of information;
Judge whether second cryptographic Hash matches with first cryptographic Hash, if so, determining in the second message
Between the second connection number information between part and second client meet preset condition.
Further, the second setup module is also used to:
By the second message middleware, second message queue is monitored;
Judge whether the second message queue has leakage to listen state;
If so, setting online state for the second message middleware, and the second message theme permission is repaired
It is changed to readable write state.
The present invention also provides a kind of computer readable storage mediums.
The upper and lower sequence of threads of message-oriented middleware server-side, the message are stored on computer readable storage medium of the present invention
The upper and lower sequence of threads in middleware services end realizes the upper and lower line side of message-oriented middleware server-side as described above when being executed by processor
The step of method.
Wherein, the upper and lower sequence of threads of message-oriented middleware server-side that runs on the processor, which is performed, to be realized
Method can refer to each embodiment of the upper and lower line method of message-oriented middleware server-side of the present invention, and details are not described herein again.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in one as described above
In readable storage medium storing program for executing (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a message-oriented middleware server-side
Upper offline equipment (can be mobile phone, computer, server, air conditioner or the network equipment etc.) executes each implementation of the present invention
Method described in example.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (15)
1. a kind of message-oriented middleware server-side inserting method, which is characterized in that the message-oriented middleware server-side inserting method packet
Include following steps:
When receiving the offline request of first message middleware, by the first message theme permission of the first message middleware
It is set as read-only status;
The first message handling capacity and information consumption progress of the first message middleware are verified;
If the first message middleware is arranged by verifying for the first message handling capacity and the information consumption progress
For down status, and being by the first message theme priority assignation can not read-write state.
2. message-oriented middleware server-side inserting method as described in claim 1, which is characterized in that among the first message
The step of first message handling capacity of part is verified include:
Corresponding first average response time of first message middleware described in timing acquisition and the first average user number;
Corresponding first message handling capacity is calculated based on first average response time and the first average user number;
Judge whether the first message handling capacity is equal to the first preset value;
If so, updating first average response time and corresponding first times of acquisition of the first average user number;
If first times of acquisition are greater than or equal to the second preset value, determine that the first message handling capacity passes through verifying.
3. message-oriented middleware server-side inserting method as described in claim 1, which is characterized in that the information consumption progress
The step of being verified include:
By the first message middleware, the information consumption progress in first message queue is inquired;
Judge whether the information consumption progress is equal to third preset value, wherein if so, determining that the information consumption progress is logical
Cross verifying.
4. message-oriented middleware server-side inserting method as described in any one of claims 1-3, which is characterized in that it is described will be described
First message middleware is set as down status, and by the first message theme priority assignation be can not read-write state the step of
Before, the method also includes:
Obtain the first connection number information between the first message middleware and first client;
Judge whether the first connection number information is equal to the 4th preset value;
If so, the first routing iinformation between the first message middleware and first client is isolated.
5. message-oriented middleware server-side inserting method as claimed in claim 4, which is characterized in that described by the first message
The step of the first routing iinformation between middleware and first client is isolated include:
The first route registration tool is inquired by the first message middleware;
By the first route registration tool the first routing iinformation isolation relevant to the first message middleware.
6. a kind of message-oriented middleware server-side loading method, which is characterized in that the message-oriented middleware server-side loading method packet
It includes:
When receiving the online request of second message middleware, by the second message theme permission of the second message middleware
It is set as read-only status;
The second message handling capacity of the second message middleware is verified;
If the second message handling capacity releases the corresponding isolation of the second message middleware by verifying, for
Second client connects the second message middleware;
Judge whether the second connection number information between the second message middleware and second client meets default item
Part;
If the second connection number information meets the preset condition, upper threadiness is set by the second message middleware
State, and the second message theme permission is revised as readable write state.
7. message-oriented middleware server-side loading method as claimed in claim 6, which is characterized in that described to the second message
The step of second message handling capacity of middleware is verified include:
Second average response time and second average user of the second message middleware described in timing acquisition to second message data
Number;
Corresponding second message handling capacity is calculated based on second average response time and the second average user number;
Judge whether the second message handling capacity is equal to the 5th preset value;
If so, updating second average response time and corresponding second times of acquisition of the second average user number;
If second times of acquisition are greater than or equal to the 6th preset value, determine that the second message handling capacity passes through verifying.
8. message-oriented middleware server-side loading method as claimed in claim 6, which is characterized in that the releasing described second disappears
The corresponding isolation of middleware is ceased, so that the step of the second client connection second message middleware includes:
Secondary route, which is inquired, by the second message middleware registers tool;
By secondary route registration tool secondary route information deletion relevant to the second message middleware.
9. message-oriented middleware server-side loading method as claimed in claim 6, which is characterized in that the judgement described second disappears
Cease that the step of whether the second connection number information between middleware and second client meets preset condition includes:
Hash calculation is carried out to the connection number information of each middleware in the cluster where the second message middleware, is obtained
The corresponding cryptographic Hash of each middleware, wherein the cryptographic Hash includes the second connection number information of the second message middleware
The third connection number information of middleware in corresponding first cryptographic Hash and the cluster in addition to the second message middleware
Corresponding second cryptographic Hash;
Judge whether second cryptographic Hash matches with first cryptographic Hash, wherein if so, determining in the second message
Between the second connection number information between part and second client meet preset condition.
10. message-oriented middleware server-side loading method as claim in any one of claims 6-9, which is characterized in that described by institute
It states second message middleware and is set as online state, and the step of second message theme permission is revised as readable write state
Before, the method also includes:
By the second message middleware, second message queue is monitored;
Judge whether the second message queue has leakage to listen state;
Online state is set by the second message middleware if so, executing, and the second message theme permission is repaired
The step of being changed to readable write state.
11. a kind of message-oriented middleware server-side coil inserting apparatus, which is characterized in that the message-oriented middleware server-side coil inserting apparatus packet
It includes:
First receiving module, for when receiving the offline request of first message middleware, by the first message middleware
First message theme priority assignation be read-only status;
First authentication module, for the first message middleware first message handling capacity and information consumption progress test
Card;
First setup module, if for the first message handling capacity and the information consumption progress by verifying, it will be described
First message middleware is set as down status, and being by the first message theme priority assignation can not read-write state.
12. a kind of message-oriented middleware server-side eedle threader, which is characterized in that the message-oriented middleware server-side eedle threader packet
It includes:
Second receiving module, for when receiving the online request of second message middleware, by the second message middleware
Second message theme priority assignation be read-only status:
Second authentication module is verified for the second message handling capacity to the second message middleware;
Module is released, if it is corresponding to release the second message middleware by verifying for the second message handling capacity
Isolation, so that the second client connects the second message middleware;
Second judgment module, for judging that the second connection number between the second message middleware and second client is believed
Whether breath meets preset condition;
Second setup module will be in the second message if meeting the preset condition for the second connection number information
Between part be set as online state, and the second message theme permission is revised as readable write state.
13. a kind of offline equipment of message-oriented middleware server-side, which is characterized in that the offline equipment packet of message-oriented middleware server-side
It includes: first memory, first processor and being stored on the first memory and can be run on the first processor
Sequence of threads under message-oriented middleware server-side is realized such as when sequence of threads is executed by the processor under the message-oriented middleware server-side
Described in any one of claims 1 to 5 the step of message-oriented middleware server-side inserting method.
14. a kind of online equipment of message-oriented middleware server-side, which is characterized in that the online equipment packet of message-oriented middleware server-side
It includes: second memory, second processor and being stored on the second memory and can be run in the second processor
Sequence of threads in message-oriented middleware server-side is realized such as when sequence of threads is executed by the processor in the message-oriented middleware server-side
Described in any one of claim 6 to 10 the step of message-oriented middleware server-side loading method.
15. a kind of readable storage medium storing program for executing, which is characterized in that be stored on the readable storage medium storing program for executing in message-oriented middleware server-side
Sequence of threads or lower sequence of threads realize such as claim when sequence of threads is executed by first processor under the message-oriented middleware server-side
Described in any one of 1 to 5 the step of message-oriented middleware server-side inserting method or above and below the message-oriented middleware server-side
The message-oriented middleware server-side online side as described in any one of claim 6 to 10 is realized when program is executed by second processor
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910772052.3A CN110474917A (en) | 2019-08-16 | 2019-08-16 | The upper and lower line method of message-oriented middleware, device, equipment and readable storage medium storing program for executing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910772052.3A CN110474917A (en) | 2019-08-16 | 2019-08-16 | The upper and lower line method of message-oriented middleware, device, equipment and readable storage medium storing program for executing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110474917A true CN110474917A (en) | 2019-11-19 |
Family
ID=68513144
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910772052.3A Pending CN110474917A (en) | 2019-08-16 | 2019-08-16 | The upper and lower line method of message-oriented middleware, device, equipment and readable storage medium storing program for executing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110474917A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111090691A (en) * | 2019-12-19 | 2020-05-01 | 北京百度网讯科技有限公司 | Data processing method and device, electronic equipment and storage medium |
CN113296972A (en) * | 2020-07-20 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Information registration method, computing device and storage medium |
CN113630284A (en) * | 2020-05-08 | 2021-11-09 | 网联清算有限公司 | Message middleware monitoring method, device and equipment |
CN114710311A (en) * | 2022-02-11 | 2022-07-05 | 浙江高信技术股份有限公司 | Multi-project message management method and system |
CN115412603A (en) * | 2022-11-02 | 2022-11-29 | 中国电子科技集团公司第十五研究所 | High-availability method and device for message client module of message middleware |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006061262A1 (en) * | 2004-12-09 | 2006-06-15 | International Business Machines Corporation | An on demand message based financial network integration middleware |
US20110258268A1 (en) * | 2010-04-19 | 2011-10-20 | International Business Machines Corporation | Controlling message delivery in publish/subscribe messaging |
US8127305B1 (en) * | 2008-06-16 | 2012-02-28 | Sprint Communications Company L.P. | Rerouting messages to parallel queue instances |
US8185912B1 (en) * | 2008-10-03 | 2012-05-22 | Sprint Communications Company L.P. | Rerouting messages to parallel queue instances |
CN102880475A (en) * | 2012-10-23 | 2013-01-16 | 上海普元信息技术股份有限公司 | Real-time event handling system and method based on cloud computing in computer software system |
CN104424186A (en) * | 2013-08-19 | 2015-03-18 | 阿里巴巴集团控股有限公司 | Method and device for realizing persistence in flow calculation application |
CN104618466A (en) * | 2015-01-20 | 2015-05-13 | 上海交通大学 | System for balancing load and controlling overload based on message transfer and control method of system |
CN105516081A (en) * | 2015-11-25 | 2016-04-20 | 浪潮电子信息产业股份有限公司 | Method and system for issuing safety strategy by server and message queue middleware |
CN108241582A (en) * | 2018-01-12 | 2018-07-03 | 东华大学 | A kind of software automated testing platform based on RabbitMQ message-oriented middlewares |
CN108509299A (en) * | 2018-03-29 | 2018-09-07 | 努比亚技术有限公司 | Message treatment method, equipment and computer readable storage medium |
US20190124141A1 (en) * | 2017-10-23 | 2019-04-25 | Salesforce.Com, Inc. | Technologies for low latency messaging |
CN110086636A (en) * | 2019-04-17 | 2019-08-02 | 平安科技(深圳)有限公司 | A kind of message distributing method based on mqtt, server and storage medium |
-
2019
- 2019-08-16 CN CN201910772052.3A patent/CN110474917A/en active Pending
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006061262A1 (en) * | 2004-12-09 | 2006-06-15 | International Business Machines Corporation | An on demand message based financial network integration middleware |
US8127305B1 (en) * | 2008-06-16 | 2012-02-28 | Sprint Communications Company L.P. | Rerouting messages to parallel queue instances |
US8185912B1 (en) * | 2008-10-03 | 2012-05-22 | Sprint Communications Company L.P. | Rerouting messages to parallel queue instances |
US20110258268A1 (en) * | 2010-04-19 | 2011-10-20 | International Business Machines Corporation | Controlling message delivery in publish/subscribe messaging |
CN102880475A (en) * | 2012-10-23 | 2013-01-16 | 上海普元信息技术股份有限公司 | Real-time event handling system and method based on cloud computing in computer software system |
CN104424186A (en) * | 2013-08-19 | 2015-03-18 | 阿里巴巴集团控股有限公司 | Method and device for realizing persistence in flow calculation application |
CN104618466A (en) * | 2015-01-20 | 2015-05-13 | 上海交通大学 | System for balancing load and controlling overload based on message transfer and control method of system |
CN105516081A (en) * | 2015-11-25 | 2016-04-20 | 浪潮电子信息产业股份有限公司 | Method and system for issuing safety strategy by server and message queue middleware |
US20190124141A1 (en) * | 2017-10-23 | 2019-04-25 | Salesforce.Com, Inc. | Technologies for low latency messaging |
CN108241582A (en) * | 2018-01-12 | 2018-07-03 | 东华大学 | A kind of software automated testing platform based on RabbitMQ message-oriented middlewares |
CN108509299A (en) * | 2018-03-29 | 2018-09-07 | 努比亚技术有限公司 | Message treatment method, equipment and computer readable storage medium |
CN110086636A (en) * | 2019-04-17 | 2019-08-02 | 平安科技(深圳)有限公司 | A kind of message distributing method based on mqtt, server and storage medium |
Non-Patent Citations (2)
Title |
---|
张元;韩燮;: "网络化测试系统中间件的研究与设计", 计算机工程与设计, no. 22, 28 November 2009 (2009-11-28) * |
高磊;赵炫;尹继伟;孟永新;: "综合信息集成系统消息中间件技术研究及实现", 警察技术, 31 December 2012 (2012-12-31) * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111090691A (en) * | 2019-12-19 | 2020-05-01 | 北京百度网讯科技有限公司 | Data processing method and device, electronic equipment and storage medium |
CN111090691B (en) * | 2019-12-19 | 2021-02-09 | 北京百度网讯科技有限公司 | Data processing method and device, electronic equipment and storage medium |
CN113630284A (en) * | 2020-05-08 | 2021-11-09 | 网联清算有限公司 | Message middleware monitoring method, device and equipment |
CN113296972A (en) * | 2020-07-20 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Information registration method, computing device and storage medium |
CN114710311A (en) * | 2022-02-11 | 2022-07-05 | 浙江高信技术股份有限公司 | Multi-project message management method and system |
CN114710311B (en) * | 2022-02-11 | 2024-01-02 | 浙江高信技术股份有限公司 | Multi-project message management method and system |
CN115412603A (en) * | 2022-11-02 | 2022-11-29 | 中国电子科技集团公司第十五研究所 | High-availability method and device for message client module of message middleware |
CN115412603B (en) * | 2022-11-02 | 2022-12-27 | 中国电子科技集团公司第十五研究所 | High-availability method and device for message client module of message middleware |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110474917A (en) | The upper and lower line method of message-oriented middleware, device, equipment and readable storage medium storing program for executing | |
CN108540536B (en) | Block chain-based network mass service processing method, equipment and storage medium | |
CN113169952B (en) | Container cloud management system based on block chain technology | |
CN109471710B (en) | Task request processing method and device, processor, terminal and server | |
CN101421702B (en) | Load control device and its method | |
US7730479B2 (en) | Cell-phone terminal, program management method and computer program of same | |
CN102143075B (en) | Method and system for achieving load balance | |
RU2349951C2 (en) | Processing of starting event | |
CN104539713B (en) | service request processing method and device | |
US6633898B1 (en) | System, apparatus, method and computer program product for processing distributed service modules | |
US20010029526A1 (en) | Method for controlling a mobile agent | |
KR101229858B1 (en) | Web-based system and method for sharing testing devices | |
CN106446168B (en) | A kind of load client realization method of Based on Distributed data warehouse | |
CN110351366B (en) | Service scheduling system and method for internet application and storage medium | |
CN109785042A (en) | Abnormality eliminating method, server, storage medium and the device of distributed deployment | |
CN103581247A (en) | Method for testing distributed type Web based on cloud computing environment | |
RU2554570C2 (en) | Method and system for executing services on server and client of client-server architecture | |
CN103370695B (en) | database update notification method | |
CN105933408A (en) | Implementation method and device of Redis universal middleware | |
US11831746B2 (en) | Time consistency synchronization method for distributed simulation | |
CN111290965B (en) | Test method, test device, computer equipment and storage medium | |
CN115733677A (en) | Scheduling method and device for cipher machine | |
CN114490826A (en) | Request response method, data storage method, device, server and storage medium | |
US20110106712A1 (en) | Cost-Aware Service Aggregation | |
JP2003067194A (en) | Terminal device |
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 |