CN106131175A - A kind of acquisition of information, information-pushing method and equipment - Google Patents
A kind of acquisition of information, information-pushing method and equipment Download PDFInfo
- Publication number
- CN106131175A CN106131175A CN201610515724.9A CN201610515724A CN106131175A CN 106131175 A CN106131175 A CN 106131175A CN 201610515724 A CN201610515724 A CN 201610515724A CN 106131175 A CN106131175 A CN 106131175A
- Authority
- CN
- China
- Prior art keywords
- information
- message
- proxy server
- oriented middleware
- type identification
- 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.)
- Granted
Links
Classifications
-
- 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/50—Network services
- H04L67/55—Push-based network services
-
- 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/50—Network services
- H04L67/56—Provisioning of proxy services
Abstract
The invention discloses a kind of acquisition of information, information-pushing method and equipment, including: proxy server receives the information acquisition request that message reception facility sends;Described proxy server, according to the described type identification comprised in described information acquisition request, reads the information corresponding with described type identification from message-oriented middleware and/or in buffer zone;The described information read is sent to described message reception facility by described proxy server.When message receiver obtains information from message-oriented middleware, information acquisition request can be sent to proxy server, proxy server reads information according to information acquisition request from message-oriented middleware, the information of reading is sent to message receiver, owing to proxy server can be supported to read different types of information from message-oriented middleware, message receiver can be in the case of without installing different driving program, different types of information is obtained so that obtain the different types of information in message-oriented middleware convenient from proxy server.
Description
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of acquisition of information, information-pushing method and equipment.
Background technology
Message-oriented middleware is a kind of basic software, and in the transmitting procedure of message, message-oriented middleware can be in distributed system
The transmission of completion message and reception in system.Specifically, when message sender sends message to message receiver, if message connects
Debit need not receive the message that message sender sends immediately, and message-oriented middleware can receive disappearing of message sender transmission
Breath, and this message is stored, so, when message receiver needs to receive this message, can read from message-oriented middleware
Take this message.
Generally, the message that message sender sends can comprise multiple different type, and message-oriented middleware can receive and disappear
The different types of message that breath sender sends, and different types of message is stored according to the type of message, so, disappear
Breath recipient, when reading certain type of message, can read the message corresponding with the type from message-oriented middleware.
But, in actual applications, for each type of message, need different driving when reading the message of the type
Dynamic program, therefore, when message receiver reads different types of message from message-oriented middleware, is required for each type of disappearing
Breath installs different drivers.In actual applications, owing to message receiver is when installing different drivers, it is difficult to protect
Demonstrate,prove the compatibility between multiple different driving program, cause message receiver to read from message-oriented middleware during message more tired
Difficult.
Summary of the invention
In view of this, embodiments provide a kind of acquisition of information, information-pushing method and equipment, be used for solving now
The problem that some message receivers are relatively difficult when reading different types of message from message-oriented middleware.
The invention provides a kind of information getting method, led to by standard network between proxy server and message-oriented middleware
Letter agreement carries out information transmission, and described method includes:
Proxy server receives the information acquisition request that message reception facility sends, and comprises and treat in described information acquisition request
Type identification corresponding to information obtained;
Described proxy server is according to the described type identification comprised in described information acquisition request, from message-oriented middleware
And/or buffer zone is read the information corresponding with described type identification, described message-oriented middleware comprises dissimilar mark
Corresponding information, comprises the information that dissimilar mark is corresponding in described buffer zone;
The described information read is sent to described message reception facility by described proxy server.
The invention provides a kind of information-pushing method, led to by standard network between proxy server and message-oriented middleware
Letter agreement carries out information transmission, and described method includes:
Proxy server reads information from message-oriented middleware, comprises different types of information in described message-oriented middleware;
The described information read is stored to buffer zone by described proxy server;
Described message server sets information pushing corresponding to type identification to message by store in described buffer zone
Reception equipment so that described message reception facility obtains the information corresponding with described setting type identification.
The invention provides a kind of information getting method, led to by standard network between proxy server and message-oriented middleware
Letter agreement carries out information transmission, and described method includes:
Message reception facility sends information acquisition request to proxy server, comprises to be obtained in described information acquisition request
Type identification corresponding to information;
Described message reception facility receives the information that described proxy server sends, and described information is by described proxy server
According to the type identification comprised in described information acquisition request, read from message-oriented middleware and obtain, in described message-oriented middleware
Comprise the information that dissimilar mark is corresponding.
The invention provides a kind of information acquisition apparatus, between described information acquisition apparatus and message-oriented middleware, pass through standard
Network communication protocol carries out information transmission, and described equipment includes:
Receive unit, receive the information acquisition request that message reception facility sends, described information acquisition request comprises and treats
Type identification corresponding to information obtained;
Processing unit, according to the described type identification comprised in described information acquisition request, from message-oriented middleware and/or
Buffer zone is read the information corresponding with described type identification, described message-oriented middleware comprises dissimilar mark correspondence
Information, comprises the information that dissimilar mark is corresponding in described buffer zone;
Transmitting element, the described information read by described processing unit is sent to described message reception facility.
The invention provides a kind of information pushing equipment, between described information pushing equipment and message-oriented middleware, pass through standard
Network communication protocol carries out information transmission, and described equipment includes:
Read unit, from message-oriented middleware, read information, described message-oriented middleware comprises different types of information;
Memory element, stores the described information that described reading unit reads to buffer zone;
Push unit, sets the information pushing setting type identification corresponding of storage in described buffer zone to message sink
Standby so that described message reception facility obtains the information corresponding with described setting type identification.
The invention provides a kind of information acquisition apparatus, between described information acquisition apparatus and message-oriented middleware, pass through standard
Network communication protocol carries out information transmission, and described equipment includes:
Transmitting element, sends information acquisition request to proxy server, comprises to be obtained in described information acquisition request
The type identification that information is corresponding;
Receive unit, receive described proxy server send information, described information by described proxy server according to institute
State the type identification comprised in information acquisition request, read from message-oriented middleware and obtain, described message-oriented middleware comprises not
With the information that type identification is corresponding.
At least one technical scheme above-mentioned that the embodiment of the present invention uses can reach following beneficial effect:
The embodiment of the present invention provide technical scheme, message receiver when needs obtain information from message-oriented middleware,
Can to proxy server send information acquisition request, proxy server according to described information acquisition request from message-oriented middleware
Reading information, and the information of reading is sent to message receiver, owing to proxy server can be supported from message-oriented middleware
Reading different types of information, therefore, message receiver can be in the case of without installing different driving program, from agency's clothes
Obtaining different types of information in business device, relative to prior art, message receiver can obtain in message-oriented middleware easily
Different types of information.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, in embodiment being described below required for make
Accompanying drawing briefly introduce, it should be apparent that, below describe in accompanying drawing be only some embodiments of the present invention, for this
From the point of view of the those of ordinary skill in field, on the premise of not paying creative work, it is also possible to obtain it according to these accompanying drawings
His accompanying drawing.
The schematic flow sheet of a kind of information getting method that Fig. 1 provides for the embodiment of the present invention;
Fig. 2 (a) reads the schematic diagram of information for a kind of proxy server that the embodiment of the present invention provides;
Fig. 2 (b) reads the schematic diagram of information for a kind of proxy server that the embodiment of the present invention provides;
The schematic flow sheet of a kind of information-pushing method that Fig. 3 provides for the embodiment of the present invention;
The schematic flow sheet of a kind of information getting method that Fig. 4 provides for the embodiment of the present invention;
The structural representation of a kind of information acquisition apparatus that Fig. 5 provides for the embodiment of the present invention;
The structural representation of a kind of information pushing equipment that Fig. 6 provides for the embodiment of the present invention;
The structural representation of a kind of information acquisition apparatus that Fig. 7 provides for the embodiment of the present invention;
The structural representation of a kind of Information Acquisition System that Fig. 8 provides for the embodiment of the present invention.
Detailed description of the invention
In order to realize the purpose of the present invention, the embodiment of the present invention provides a kind of acquisition of information, information-pushing method and
Equipment, proxy server receives the information acquisition request that message reception facility sends, comprises and wait to obtain in described information acquisition request
The type identification that the information that takes is corresponding;Described message proxy server is according to the described type comprised in described information acquisition request
Mark, reads the information corresponding with described type identification, described message-oriented middleware from message-oriented middleware and/or in buffer zone
In comprise the information that dissimilar mark is corresponding, described buffer zone comprises the information that dissimilar mark is corresponding;Described generation
The described information read is sent to described message reception facility by reason server.
So, when message receiver needs to obtain information from message-oriented middleware, information can be sent to proxy server
Obtaining request, proxy server reads information, and the information that will read according to described information acquisition request from message-oriented middleware
It is sent to message receiver, owing to proxy server can be supported to read different types of information from message-oriented middleware, therefore,
Message receiver can obtain different types of letter in the case of without installing different driving program from proxy server
Breath, relative to prior art, message receiver can obtain the different types of information in message-oriented middleware easily.
It should be noted that the technical scheme that the embodiment of the present invention provides, can apply to ad system, at ad system
In, the technical scheme that message receiver can be provided by the embodiment of the present invention, reads different types of from message-oriented middleware
Message.In addition, the technical scheme that the embodiment of the present invention provides can also be applied to other system, does not the most do concrete limit
Fixed.
In embodiments of the present invention, can be led to by standard network between described proxy server and described message-oriented middleware
Letter agreement carries out information transmission, say, that described proxy server can be by standard network communication protocols from described message
Middleware reads different types of information, it is not necessary to different drivers, wherein, described standard network communication protocols bag are installed
Include but be not limited to: HTTP (English spelling: Hypertext transfer protocol, Chinese: Hyper text transfer) association
View, MC (English spelling: Mem cache, Chinese: high-performance caches) agreement.
Information can be carried out by standard network communication protocols between described proxy server and described message reception facility
Transmission, so, described message reception facility when being obtained the information in described message-oriented middleware by described proxy server, by
Information transmission is carried out by standard network communication protocols and described proxy server in described message reception facility, therefore, described
Message reception facility is without installing different drivers so that described message reception facility can obtain described message easily
Information in middleware.
Below in conjunction with Figure of description, each embodiment of the present invention is described in further detail, it is clear that described
Embodiment is only a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention, this area
All other embodiments that those of ordinary skill is obtained under not making creative work premise, broadly fall into present invention protection
Scope.
Embodiment 1
The schematic flow sheet of a kind of information getting method that Fig. 1 provides for the embodiment of the present invention, described method is as described below.
Step 101: proxy server receives the information acquisition request that message reception facility sends.
Wherein, described information acquisition request comprises the type identification that information to be obtained is corresponding.
In a step 101, when message sends equipment information in needing acquisition message-oriented middleware, can be to agency service
Device sends information acquisition request, can comprise the type identification of information to be obtained, described information in described information acquisition request
Obtaining the information that request is corresponding with described type identification in acquisition request message-oriented middleware, now, proxy server receives
The information acquisition request that message reception facility sends.
In embodiments of the present invention, standard network can be passed through between described proxy server and described message reception facility
Communication protocol carries out information transmission.
Step 102: described proxy server is according to the described type identification comprised in described information acquisition request, from message
The information corresponding with described type identification is read in middleware and/or in buffer zone.
Wherein, described message-oriented middleware comprises the information that dissimilar mark is corresponding, described buffer zone comprises not
With the information that type identification is corresponding.
In a step 102, proxy server, can be according to described acquisition of information after receiving described information acquisition request
The type identification of the information to be obtained comprised in request, obtains the information corresponding with described type identification from message-oriented middleware,
The information corresponding with described type identification can also be obtained from buffer zone.
In embodiments of the present invention, can be led to by standard network between described proxy server and described message-oriented middleware
Letter agreement carries out information transmission, and the most described proxy server is when reading the information in described message-oriented middleware, it is not necessary to for
Different types of information installs different drivers.
Described message-oriented middleware can comprise different types of message, described buffer zone can comprise dissimilar
Information.
Specifically, described proxy server is according to the described type identification comprised in described information acquisition request, from message
Middleware reads the information corresponding with described type identification, including:
Described proxy server, according to described type identification, determines that comprise in described message-oriented middleware with described type mark
Know corresponding information;
Described proxy server indicates at least one agent node to read the described letter determined from described message-oriented middleware
Breath.
Comprising different types of information in described message-oriented middleware, so, described proxy server can be according to described letter
Breath obtains the type identification comprised in request, determines information corresponding with described type identification in described message-oriented middleware, really
After fixed described information, described proxy server can read described information from described message-oriented middleware.
Described proxy server, when reading described information from described message-oriented middleware, may indicate that at least one is acted on behalf of
Node, uses distribution type processing method to read the described information determined.
Specifically, described proxy server indicates at least one agent node to read from described message-oriented middleware to determine
Described information, including:
Described proxy server determines the load of the different agent nodes in institute's compass of competency, and according to described load, choosing
Select load at least one agent node less than setting value;
Described proxy server instruction select described agent node from described message-oriented middleware/buffer zone in read
The described information determined.
In embodiments of the present invention, described proxy server comprises at least one agent node, in actual applications, can
To determine the number of the agent node comprised in described proxy server according to practical situation, it is not specifically limited here.
Described proxy server is when indicating described agent node to read the described information determined, it may be determined that it administers model
Enclose the load of interior different agent nodes, in order to according to the load of described agent node, select load less than setting value extremely
A few agent node, so, described proxy server may indicate that and loads less agent node from described message-oriented middleware
The described information that middle reading determines, it is achieved the described agent node load balancing when reading described information.
Described setting value can determine according to practical situation, is not specifically limited here.
As shown in Fig. 2 (a), for the schematic diagram of a kind of proxy server reading information that the embodiment of the present invention provides.
Zookeeper in Fig. 2 (a) is a distributed application program coordination service, may be used for reading in the middle of message
Information in part.Proxy server, when indicating agent node to read the message in message-oriented middleware, can be noted to zookeeper
One locum's node of volume, as shown in Fig. 2 (a), node1 represents an agent node, consumers/group1/ids/
Node1 represents node path, and the information in Topic1 is the certain type of information to be read in message-oriented middleware, Topic1
Being divided into 10 subregions, when not using load balancing, node1 can read the information in 10 subregions in Topic1.
In Fig. 2 (b), adding an agent node node2, proxy server may indicate that node1 and node2 reads
Information in Topic1, it is achieved the distributed treatment to the information of 10 subregions in Topic1.
It can be seen that proxy server is when indicating node1 and node2 to read the information in Topic1 from Fig. 2 (b),
0-4 subregion in Topic1 is distributed to node2,5-9 subregion and distributes to node1, the letter in instruction node1 reading 5-9 subregion
Breath, instruction node2 reads the information in 0-4 subregion, so, during the information of 10 subregions in reading Topic1, it is achieved negative
Carry equilibrium.
In embodiments of the present invention, described proxy server is getting the acquisition of information that described message reception facility sends
During request, the information corresponding with the type identification of information to be obtained can be read from described message-oriented middleware, in addition, also
The information corresponding with the type identification of information to be obtained can be obtained from buffer zone, wherein, described buffer zone comprises
Different types of information.
Described proxy server is reading the information corresponding with described type identification before from described buffer zone, permissible
In advance different types of information is stored in described buffer zone.
Specifically, before described proxy server receives the information acquisition request that message reception facility sends, described side
Method also includes:
Described proxy server obtains information from message-oriented middleware, and by the described information that gets according to different classes
Type stores to buffer zone.
Described proxy server is receiving before described information acquisition request, can by the method for above-mentioned record in advance from
Obtaining information in described message-oriented middleware, the information obtained here can be the information setting type, it is also possible to is dissimilar
Information, be not specifically limited.
After acquisition information, according to different types, the information of acquisition can be stored in described buffer zone.
So, described proxy server is when receiving the information acquisition request that described message reception facility sends, permissible
According to the described type identification comprised in described information acquisition request, from described buffer zone, read information.
Described proxy server, according to the described type identification comprised in described information acquisition request, is read from buffer zone
Take the information corresponding with described type identification, including:
Described proxy server, according to described type identification, is searched corresponding with described type identification from described buffer zone
Information;
Described proxy server, after finding the information corresponding with described type identification, reads the described letter found
Breath.
Described proxy server, after different types of information is stored in described buffer zone, is receiving described message
During the information acquisition request that reception equipment sends, can be according to the type identification comprised in described information acquisition request, from described
Searching the information corresponding with described type identification in buffer zone, after finding described information, described proxy server is permissible
Read described information.
In actual applications, the different types of information read is being stored to described buffer zone by described proxy server
After, in order to avoid the information of storage is too much in described buffer zone, cause the accumulation of information in described buffer zone, described agency
Described buffer zone can also be monitored by server in real time.
Alternatively, described method also includes:
Described proxy server determines remaining free memory capacity in described buffer zone;
Described proxy server is when determining described free memory capacity less than setting threshold value, and described proxy server stops
The information that obtains from described message-oriented middleware stores to buffer zone.
Described proxy server can monitor remaining free storage capacity in described buffer zone in real time, if described sky
Not busy memory capacity is less than setting threshold value, it may be said that bright, and in described buffer zone, the information of storage is too much, now, in order to avoid institute
Stating the accumulation of information in buffer zone, described proxy server can stop obtaining information from described message centre and store to slow
Deposit in region.
Wherein, described setting threshold value can determine according to practical situation, is not specifically limited here.
Described proxy server remaining free memory capacity in determining described buffer zone is more than described setting threshold value
Time, described proxy server can continue to obtain information from described message-oriented middleware and store to buffer zone.
In actual applications, described proxy server is receiving the information acquisition request that described message reception facility sends
Time, information to be obtained can be read from described message-oriented middleware, it is also possible to obtain to be obtained from described buffer zone
Information, specifically, can select the acquisition mode of information to be obtained, be not specifically limited here according to practical situation.
Step 103: the described information read is sent to described message reception facility by described proxy server.
In step 103, described proxy server reads information from described message-oriented middleware and/or in buffer zone
After, reading information can be sent to described message reception facility so that described message reception facility can obtain described information.
In the embodiment of the present invention, described proxy server can pass through standard network communication protocols, described information is sent
To described message reception facility.
The technical scheme that the embodiment of the present invention provides, when message receiver needs to obtain information from message-oriented middleware, can
To send information acquisition request to proxy server, proxy server is read from message-oriented middleware according to described information acquisition request
Win the confidence breath, and the information of reading is sent to message receiver, owing to proxy server can be supported to read from message-oriented middleware
Taking different types of information, therefore, message receiver can be in the case of without installing different driving program, from agency service
Obtaining different types of information in device, relative to prior art, message receiver can obtain in message-oriented middleware easily
Different types of information.
Embodiment 2
The schematic flow sheet of a kind of information-pushing method that Fig. 3 provides for the embodiment of the present invention.Described method is as described below.
Step 301: proxy server reads information from message-oriented middleware.
Wherein, described message-oriented middleware comprises different types of information.
In step 301, comprising different types of information in Message Queuing Middleware, proxy server can disappear from described
Breath middleware reads different types of information.Specifically, described proxy server can be by the method described in embodiment 1
From described message-oriented middleware, read different types of information, description is not repeated herein.
Step 302: the described information read is stored to buffer zone by described proxy server.
In step 302, described proxy server is reading after different types of information, can according to different types,
The described information read is stored to buffer zone.
Step 303: the information setting type identification corresponding of storage in described buffer zone is pushed away by described message server
Give message reception facility so that described message reception facility obtains the information corresponding with described setting type identification.
In step 303, described proxy server may determine that message reception facility needs the type mark of the information obtained
Know, according to described type identification, from described buffer zone, search the information corresponding with described type identification, and by described type
The information pushing of mark correspondence gives described message reception facility.
Here the type identification that sets refers to type identification corresponding to information that described message reception facility needs to obtain.
Specifically, the type identification needing the information obtained can be sent to described generation by described message reception facility in advance
Reason server, proxy server receives the type identification that described message receiver sends, and determines described type identification and described
Corresponding relation between message reception facility, so, described proxy server can be corresponding according to described message reception facility
Type identification, gives described message reception facility by the information pushing corresponding with described type identification.
In addition, described proxy server can also determine that described message reception facility needs to obtain by other means
Type identification corresponding to information, be not specifically limited here.
Described proxy server push to described message reception facility set information corresponding to type identification time, can be by
Push according to the time cycle set, it is also possible to push according to the actual demand of described message reception facility, the most do not do and have
Body limits.
In actual applications, described proxy server gives described message reception facility at the described information pushing that will determine
Time, if pushing unsuccessfully, then, described proxy server can be rolled back to described buffer zone by pushing failed information,
After being rolled back to described buffer zone, the failed information of propelling movement can also be pushed to described message and connect by described proxy server again
Receiving unit, until described message reception facility successfully obtains described information.
Embodiment 3
The schematic flow sheet of a kind of information getting method that Fig. 4 provides for the embodiment of the present invention.Described method is as described below.
The executive agent of the embodiment of the present invention can be message reception facility.
Step 401: message reception facility sends information acquisition request to proxy server.
Wherein, described information acquisition request comprises the type identification that information to be obtained is corresponding.
In step 401, message reception facility, can be to agency service when needing to obtain the information in message-oriented middleware
Device sends information acquisition request, can comprise the class of described message reception facility information to be obtained in described information acquisition request
Type identifies.
Step 402: described message reception facility receives the information that described proxy server sends.
Wherein, described information by described proxy server according to the type identification comprised in described information acquisition request, from
Message-oriented middleware reads and obtains, described message-oriented middleware comprises the information that dissimilar mark is corresponding.
In step 402, described message reception facility can with Receiving Agent server send with described type identification pair
The information answered, described information according to described type identification by described proxy server, is read from message-oriented middleware and obtains.
In embodiments of the present invention, standard network can be passed through between described message reception facility and described proxy server
Communication protocol carries out information transmission.
Described proxy server is according to the type identification comprised in described information acquisition request, from described message-oriented middleware
When reading the information corresponding with described type identification, can be read out, the most not by the method described in above-described embodiment 1
Repeat description.
Based on the method described in above-described embodiment 1 and embodiment 2, described message reception facility can pass through following two
Mode, obtains the information in described message-oriented middleware, including:
First kind of way: described message reception facility sends information acquisition request to described proxy server, receives described
The information that proxy server sends to described message reception facility according to described information acquisition request, described message is described agency
Server according to the type identification comprised in described information acquisition request, from message-oriented middleware/buffer zone in read and obtain;
The second way: described message reception facility receives the letter setting type identification that described proxy server pushes
Breath.
In actual applications, described message reception facility can obtain message-oriented middleware by a kind of mode of above-mentioned record
In information, it is also possible to obtain the information in message-oriented middleware by the two ways of above-mentioned record, be not specifically limited here.
In embodiments of the present invention, message reception facility can obtain the letter in message-oriented middleware by proxy server
Breath, owing to different types of information is read in proxy server support from message-oriented middleware, say, that proxy server is from disappearing
When reading information in breath middleware, it is not necessary to install different drivers for different types of information, and message sink sets
Information transmission can be carried out by standard network communication protocols between standby and proxy server, accordingly, with respect to prior art,
The technical scheme that inventive embodiments provides, message reception facility can obtain the information in message-oriented middleware more easily.
Embodiment 4
The structural representation of a kind of information acquisition apparatus that Fig. 5 provides for the embodiment of the present invention.Described information acquisition apparatus
And carrying out information transmission by standard network communication protocols between message-oriented middleware, described information acquisition apparatus includes: receive single
Unit 51, processing unit 52 and transmitting element 53, wherein:
Receive unit 51, receive the information acquisition request that message reception facility sends, described information acquisition request comprises
The type identification that information to be obtained is corresponding;
Processing unit 52, according to the described type identification comprised in described information acquisition request, from message-oriented middleware neutralize/
Or buffer zone is read the information corresponding with described type identification, described message-oriented middleware comprises dissimilar mark correspondence
Information, described buffer zone comprises the information that dissimilar mark is corresponding;
Transmitting element 53, is sent to described message reception facility by the described information that described processing unit 52 reads.
In embodiments of the present invention, led to by standard network between described information acquisition apparatus and described message reception facility
Letter agreement carries out information transmission.
Specifically, described processing unit 52 is according to the described type identification comprised in described information acquisition request, from message
Middleware reads the information corresponding with described type identification, including:
Described proxy server, according to described type identification, determines that comprise in described message-oriented middleware with described type mark
Know corresponding information;
Described proxy server indicates at least one agent node to read the described letter determined from described message-oriented middleware
Breath.
Described processing unit 52 indicates at least one agent node to read the described letter determined from described message-oriented middleware
Breath, including:
Described proxy server determines the load of the different agent nodes in institute's compass of competency, and according to described load, choosing
Select load at least one agent node less than setting value;
Described in the described agent node that the instruction of described proxy server selects reads from described message-oriented middleware and determines
Information.
Alternatively, described information acquisition apparatus also includes: memory element 54, wherein:
Described memory element, before described reception unit 51 receives the information acquisition request that message reception facility sends,
From message-oriented middleware, obtain information, and the described information got is stored to buffer zone according to different types.
Described processing unit 52, according to the described type identification comprised in described information acquisition request, is read from buffer zone
Take the information corresponding with described type identification, including:
According to described type identification, from described buffer zone, search the information corresponding with described type identification;
After finding the information corresponding with described type identification, read the described information found.
Alternatively, described information acquisition apparatus also includes: control unit 55, wherein:
Described control unit 55, determines remaining free memory capacity in described buffer zone;And determining the described free time
Memory capacity, less than when setting threshold value, stops obtaining information from described message-oriented middleware and stores to buffer zone.
It should be noted that the information acquisition apparatus that the embodiment of the present invention provides can be realized by hardware mode, it is possible to
To be realized by software mode, do not limit.
Embodiment 5
The structural representation of a kind of information pushing equipment that Fig. 6 provides for the embodiment of the present invention.Described information pushing equipment
And carrying out information transmission by standard network communication protocols between message-oriented middleware, described information pushing equipment includes: read single
Unit 61, memory element 62 and push unit 63, wherein:
Read unit 61, from message-oriented middleware, read information, described message-oriented middleware comprises different types of information;
Memory element 62, stores the described information that described reading unit 62 reads to buffer zone;
Push unit 63, by information pushing corresponding for the setting type identification of storage in described buffer zone to message sink
Equipment so that described message reception facility obtains the information corresponding with described setting type identification.
It should be noted that the information pushing equipment that the embodiment of the present invention provides can be realized by hardware mode, it is possible to
To be realized by software mode, do not limit.
Embodiment 6
The structural representation of a kind of information acquisition apparatus that Fig. 7 provides for the embodiment of the present invention.Described information acquisition apparatus
And carrying out information transmission by standard network communication protocols between message-oriented middleware, described information acquisition apparatus includes: send single
Unit 71 and reception unit 72, wherein:
Transmitting element 71, sends information acquisition request to proxy server, comprises to be obtained in described information acquisition request
Type identification corresponding to information;
Receive unit 72, receive described proxy server send information, described information by described proxy server according to
The type identification comprised in described information acquisition request, reads from message-oriented middleware and obtains, comprise in described message-oriented middleware
The information that dissimilar mark is corresponding.
In embodiments of the present invention, led to by standard network between described information acquisition apparatus and described message reception facility
Letter agreement carries out information transmission.
It should be noted that the information acquisition apparatus that the embodiment of the present invention provides can be realized by hardware mode, it is possible to
To be realized by software mode, do not limit.
Embodiment 7
The structural representation of a kind of Information Acquisition System that Fig. 8 provides for the embodiment of the present invention.Described Information Acquisition System
Including: message reception facility 81, proxy server 82 and message-oriented middleware 83, wherein:
Message reception facility 81, sends information acquisition request to described proxy server 82, comprises in described information request
The type identification of information to be obtained;
Proxy server 82, receives the information acquisition request that described message reception facility 81 sends, obtains according to described message
Take the type identification comprised in request, from described message-oriented middleware 83, read the information corresponding with described type identification, and will
The described information read is sent to described message reception facility 81;
Message-oriented middleware 83 comprises different types of information.
In embodiments of the present invention, led to by standard network between described proxy server 82 and described message-oriented middleware 83
Letter agreement carries out information transmission, is assisted by standard network communication between described proxy server 82 and described message reception facility 81
View carries out information transmission.
Described proxy server 82 comprises information reading module 821, cache module 822, information interactive module 823 and letter
Breath pushing module 824, wherein:
Described information reading module 821, according to the type identification comprised in described information acquisition request, indicates at least one
Agent node reads the information corresponding with described type identification from described message-oriented middleware 83;
The described information read is sent to described cache module 822.
Described cache module 822, receives the described information that described information reading module 821 sends, and described information is entered
Row storage.
Described information interactive module 823, receives the information acquisition request that described message reception facility 81 sends;
According to the type identification comprised in described information acquisition request, from described message-oriented middleware 83/described caching mould
Block 822 reads the information corresponding with described type identification;
The described information read is sent to described message reception facility 81.
Described info push module 824, pushes away the information setting type identification corresponding of storage in described cache module 822
Give described message reception facility 81 so that described message reception facility 81 obtains the letter corresponding with described setting type identification
Breath.
It will be understood by those skilled in the art that embodiments of the invention can be provided as method, device (equipment) or computer
Program product.Therefore, the present invention can use complete hardware embodiment, complete software implementation or combine software and hardware aspect
The form of embodiment.And, the present invention can use at one or more meters wherein including computer usable program code
The upper computer journey implemented of calculation machine usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.)
The form of sequence product.
The present invention is with reference to method, device (equipment) and the flow chart of computer program according to embodiments of the present invention
And/or block diagram describes.It should be understood that can be by each flow process in computer program instructions flowchart and/or block diagram
And/or the flow process in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided to refer to
Order arrives the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce
One machine so that the instruction performed by the processor of computer or other programmable data processing device is produced and is used for realizing
The device of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and computer or other programmable data processing device can be guided with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in this computer-readable memory produces and includes referring to
Make the manufacture of device, this command device realize at one flow process of flow chart or multiple flow process and/or one square frame of block diagram or
The function specified in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that at meter
Perform sequence of operations step on calculation machine or other programmable devices to produce computer implemented process, thus at computer or
The instruction performed on other programmable devices provides for realizing at one flow process of flow chart or multiple flow process and/or block diagram one
The step of the function specified in individual square frame or multiple square frame.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation
Property concept, then can make other change and amendment to these embodiments.So, claims are intended to be construed to include excellent
Select embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and the modification model without deviating from the present invention to the present invention
Enclose.So, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then
The present invention is also intended to comprise these and changes and modification.
Claims (10)
1. an information getting method, it is characterised in that pass through standard network communication between proxy server and message-oriented middleware
Agreement carries out information transmission, and described method includes:
Proxy server receives the information acquisition request that message reception facility sends, and comprises to be obtained in described information acquisition request
Type identification corresponding to information;
Described proxy server according to the described type identification comprised in described information acquisition request, from message-oriented middleware neutralize/
Or buffer zone is read the information corresponding with described type identification, described message-oriented middleware comprises dissimilar mark correspondence
Information, described buffer zone comprises the information that dissimilar mark is corresponding;
The described information read is sent to described message reception facility by described proxy server.
2. information getting method as claimed in claim 1, it is characterised in that described proxy server sets with described message sink
Information transmission is carried out by standard network communication protocols between Bei.
3. information getting method as claimed in claim 1, it is characterised in that described proxy server is according to described acquisition of information
The described type identification comprised in request, reads the information corresponding with described type identification from message-oriented middleware, including:
Described proxy server, according to described type identification, determines that comprise in described message-oriented middleware with described type identification pair
The information answered;
Described proxy server indicates at least one agent node to read the described information determined from described message-oriented middleware.
4. information getting method as claimed in claim 3, it is characterised in that described proxy server indicates at least one to act on behalf of
Node reads the described information determined from described message-oriented middleware, including:
Described proxy server determines the load of the different agent nodes in institute's compass of competency, and according to described load, selects negative
Carry at least one agent node less than setting value;
The described agent node that the instruction of described proxy server selects reads the described information determined from described message-oriented middleware.
5. information getting method as claimed in claim 1, it is characterised in that described proxy server receives message reception facility
Before the information acquisition request sent, described method also includes:
Described proxy server obtains information from message-oriented middleware, and the described information got is deposited according to different types
Storage is to buffer zone.
6. information getting method as claimed in claim 5, it is characterised in that described proxy server is according to described acquisition of information
The described type identification comprised in request, reads the information corresponding with described type identification from buffer zone, including:
Described proxy server, according to described type identification, searches the letter corresponding with described type identification from described buffer zone
Breath;
Described proxy server, after finding the information corresponding with described type identification, reads the described information found.
7. information getting method as claimed in claim 6, it is characterised in that described method also includes:
Described proxy server determines remaining free memory capacity in described buffer zone;
Described proxy server is when determining described free memory capacity less than setting threshold value, and described proxy server stops from institute
Acquisition information in message-oriented middleware of stating stores to buffer zone.
8. an information-pushing method, it is characterised in that pass through standard network communication between proxy server and message-oriented middleware
Agreement carries out information transmission, and described method includes:
Proxy server reads information from message-oriented middleware, comprises different types of information in described message-oriented middleware;
The described information read is stored to buffer zone by described proxy server;
Described message server sets information pushing corresponding to type identification to message sink by store in described buffer zone
Equipment so that described message reception facility obtains the information corresponding with described setting type identification.
9. an information getting method, it is characterised in that pass through standard network communication between proxy server and message-oriented middleware
Agreement carries out information transmission, and described method includes:
Message reception facility sends information acquisition request to proxy server, comprises letter to be obtained in described information acquisition request
The type identification that breath is corresponding;
Described message reception facility receive described proxy server send information, described information by described proxy server according to
The type identification comprised in described information acquisition request, reads from message-oriented middleware and obtains, comprise in described message-oriented middleware
The information that dissimilar mark is corresponding.
10. an information acquisition apparatus, it is characterised in that pass through standard network between described information acquisition apparatus and message-oriented middleware
Network communication protocol carries out information transmission, and described equipment includes:
Receive unit, receive the information acquisition request that message reception facility sends, described information acquisition request comprises to be obtained
Type identification corresponding to information;
Processing unit, according to the described type identification comprised in described information acquisition request, from message-oriented middleware and/or caching
Region is read the information corresponding with described type identification, described message-oriented middleware comprises the letter that dissimilar mark is corresponding
Breath, comprises the information that dissimilar mark is corresponding in described buffer zone;
Transmitting element, is sent to described message reception facility by the described information read.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610515724.9A CN106131175B (en) | 2016-07-01 | 2016-07-01 | A kind of acquisition of information, information-pushing method and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610515724.9A CN106131175B (en) | 2016-07-01 | 2016-07-01 | A kind of acquisition of information, information-pushing method and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106131175A true CN106131175A (en) | 2016-11-16 |
CN106131175B CN106131175B (en) | 2019-05-21 |
Family
ID=57469098
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610515724.9A Active CN106131175B (en) | 2016-07-01 | 2016-07-01 | A kind of acquisition of information, information-pushing method and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106131175B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107169019A (en) * | 2017-04-06 | 2017-09-15 | 华为技术有限公司 | A kind of querying method of video metadata, equipment and system |
CN108306941A (en) * | 2018-01-05 | 2018-07-20 | 上海你我贷互联网金融信息服务有限公司 | A kind of distributed information system |
CN108845808A (en) * | 2018-06-22 | 2018-11-20 | 平安科技(深圳)有限公司 | Middleware installation method, device, computer equipment and storage medium |
CN109769013A (en) * | 2018-12-18 | 2019-05-17 | 平安科技(深圳)有限公司 | Business information processing method, device, computer equipment and storage medium |
CN111049753A (en) * | 2019-12-18 | 2020-04-21 | 网易(杭州)网络有限公司 | Message sending method and device, electronic equipment and computer readable medium |
CN111385294A (en) * | 2020-03-04 | 2020-07-07 | 腾讯科技(深圳)有限公司 | Data processing method, system, computer device and storage medium |
CN111741041A (en) * | 2019-07-10 | 2020-10-02 | 北京京东尚科信息技术有限公司 | Message processing method and device, electronic equipment and computer readable medium |
CN112583931A (en) * | 2020-12-25 | 2021-03-30 | 北京百度网讯科技有限公司 | Message processing method, message middleware, electronic device and storage medium |
CN115334155A (en) * | 2022-08-12 | 2022-11-11 | 中国建设银行股份有限公司 | Message queue agent method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101184056A (en) * | 2007-12-04 | 2008-05-21 | 浙江大学 | Distributed enterprise service bus message switching method |
CN102739654A (en) * | 2012-06-08 | 2012-10-17 | 北京久其软件股份有限公司 | Method for realizing application program to access database |
CN103248684A (en) * | 2013-04-28 | 2013-08-14 | 北京奇虎科技有限公司 | Resource acquiring method and device on Internet |
CN103944968A (en) * | 2014-03-28 | 2014-07-23 | 云浮南风数字科技有限公司 | Heterogeneous medical data information integration and sharing system based on home-based care for the aged |
-
2016
- 2016-07-01 CN CN201610515724.9A patent/CN106131175B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101184056A (en) * | 2007-12-04 | 2008-05-21 | 浙江大学 | Distributed enterprise service bus message switching method |
CN102739654A (en) * | 2012-06-08 | 2012-10-17 | 北京久其软件股份有限公司 | Method for realizing application program to access database |
CN103248684A (en) * | 2013-04-28 | 2013-08-14 | 北京奇虎科技有限公司 | Resource acquiring method and device on Internet |
CN103944968A (en) * | 2014-03-28 | 2014-07-23 | 云浮南风数字科技有限公司 | Heterogeneous medical data information integration and sharing system based on home-based care for the aged |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107169019B (en) * | 2017-04-06 | 2020-07-24 | 华为技术有限公司 | Video metadata query method, device and system |
CN107169019A (en) * | 2017-04-06 | 2017-09-15 | 华为技术有限公司 | A kind of querying method of video metadata, equipment and system |
CN108306941A (en) * | 2018-01-05 | 2018-07-20 | 上海你我贷互联网金融信息服务有限公司 | A kind of distributed information system |
CN108845808A (en) * | 2018-06-22 | 2018-11-20 | 平安科技(深圳)有限公司 | Middleware installation method, device, computer equipment and storage medium |
CN108845808B (en) * | 2018-06-22 | 2020-09-29 | 平安科技(深圳)有限公司 | Middleware installation method and device, computer equipment and storage medium |
CN109769013A (en) * | 2018-12-18 | 2019-05-17 | 平安科技(深圳)有限公司 | Business information processing method, device, computer equipment and storage medium |
CN109769013B (en) * | 2018-12-18 | 2022-03-15 | 平安科技(深圳)有限公司 | Service information processing method and device, computer equipment and storage medium |
CN111741041A (en) * | 2019-07-10 | 2020-10-02 | 北京京东尚科信息技术有限公司 | Message processing method and device, electronic equipment and computer readable medium |
CN111741041B (en) * | 2019-07-10 | 2023-05-12 | 北京京东尚科信息技术有限公司 | Message processing method and device, electronic equipment and computer readable medium |
CN111049753A (en) * | 2019-12-18 | 2020-04-21 | 网易(杭州)网络有限公司 | Message sending method and device, electronic equipment and computer readable medium |
CN111049753B (en) * | 2019-12-18 | 2023-05-12 | 网易(杭州)网络有限公司 | Message sending method and device, electronic equipment and computer readable medium |
CN111385294A (en) * | 2020-03-04 | 2020-07-07 | 腾讯科技(深圳)有限公司 | Data processing method, system, computer device and storage medium |
CN112583931A (en) * | 2020-12-25 | 2021-03-30 | 北京百度网讯科技有限公司 | Message processing method, message middleware, electronic device and storage medium |
CN115334155A (en) * | 2022-08-12 | 2022-11-11 | 中国建设银行股份有限公司 | Message queue agent method and device |
CN115334155B (en) * | 2022-08-12 | 2024-04-19 | 中国建设银行股份有限公司 | Message queue proxy method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106131175B (en) | 2019-05-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106131175A (en) | A kind of acquisition of information, information-pushing method and equipment | |
CN108965164B (en) | Service request retransmission method and device based on message queue and readable storage medium | |
CN104580104A (en) | Method, device and system for identity verification | |
CN103825919B (en) | A kind of method, the apparatus and system of data cached resource | |
CN109379445A (en) | A kind of sending method and device of PUSH message | |
CN104767767A (en) | Method, device and system for sharing Internet access data and network equipment | |
CN112714192A (en) | Data synchronization method and device, computer readable medium and electronic equipment | |
CN108259533A (en) | A kind of data transmission method and device | |
CN110011952A (en) | A kind of method, service cluster and the client of data transmission | |
CN105979277A (en) | File transfer method and electronic equipment | |
CN103888895A (en) | Information processing method, server equipment and mobile terminal | |
CN103546829A (en) | Method and device for processing video service | |
US11064052B2 (en) | Page insertion method and device | |
CN104967663A (en) | File transmission method and system, file sending device, and file receiving device | |
CN113055348A (en) | Cross-platform data request method and device and electronic equipment | |
CN111324470A (en) | Method and device for generating information | |
CN110839074A (en) | Data request receiving and processing method and device | |
CN103051722B (en) | A kind ofly determine the method whether page is held as a hostage and relevant device | |
CN110401669A (en) | A kind of proof of identity method and relevant device | |
US20140351084A1 (en) | Registration process | |
CN115082038A (en) | System integration method and device and electronic equipment | |
CN111092949B (en) | Method and device for registering equipment | |
CN105635059A (en) | WLAN access authentication method, related equipment, and system | |
CN110855655B (en) | Information verification method, device, equipment and storage medium | |
CN115705476A (en) | Information display method and device, electronic equipment and computer readable 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |