CN107105064A - The method for pushing and system of a kind of Transaction Information - Google Patents
The method for pushing and system of a kind of Transaction Information Download PDFInfo
- Publication number
- CN107105064A CN107105064A CN201710409874.6A CN201710409874A CN107105064A CN 107105064 A CN107105064 A CN 107105064A CN 201710409874 A CN201710409874 A CN 201710409874A CN 107105064 A CN107105064 A CN 107105064A
- Authority
- CN
- China
- Prior art keywords
- transaction
- server
- client
- subject matter
- transaction request
- 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
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/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Computer And Data Communications (AREA)
Abstract
The embodiment of the present application discloses the method for pushing and system of a kind of Transaction Information, including:The transaction request for specified subject matter that shopping server real-time reception different clients are sent, and judge whether itself current load meets default high concurrent condition;If meeting, processing is traded to receiving transaction request according to default processing strategy;Shopping server sends transaction fresh information according to trading processing result to the related client of the transaction to the specified subject matter, and, to the client feedback trading processing result for sending the transaction request that shopping server is received.The technical program, push server is after obtaining or getting transaction fresh information, the transaction fresh information is directly pushed into other clients related to the transaction of the specified subject matter, enable other client quick obtainings to the result of the transaction request, effectively shorten the time that other clients wait the result.
Description
Technical field
The invention relates to the method for pushing and system of field of computer technology, more particularly to a kind of Transaction Information.
Background technology
With financial electric business transaction application continue to develop and the Internet, applications technology popularization, transaction in assets application visit
The growth of the amount of asking at double, especially when running into specific business scenario, such as bid price, bulletin business scenario.Due to this
Under specific transactions scene, a large amount of clients with accessing shopping server in a flash, server moment receive the need for handle
Size of message abruptly increase, easily cause the communication link congestion between client and shopping server.
In the prior art, the quantity of the instantaneous client for sending message of method control controlled using flow, if instantaneous hair
The quantity of the client of message is sent to exceed default threshold value, then the method control shopping server controlled using flow receives visitor
The speed for the message that family end is sent, avoids server from causing shopping service because need to receive and handling a large amount of message in this way, reaching
The systematic function of device declines the phenomenon for even causing the machine of delaying.The method controlled in existing technical scheme only with flow controls to purchase
Thing server receives the speed of the message of client transmission, when shopping server is received and has handled the message received,
Result is fed back to the client for sending message, and when other clients are also required to understand the result, such as competing
Mark business scenario in, other clients be also required to understand the subject matter present price, then can be set by result store to
Database, the result can be extracted from database by being intended to understand the client of the result.
However, when having multiple client it should be understood that during the result, because push function is not present in database, when many
When individual client is both needed to extract the result from database, accessed while due to multiple client, the database made
Communication efficiency is reduced, so that obtaining the time lengthening of the result from database, client waits the processing knot
The time of fruit is longer.
In summary, a kind of information push method is lacked in the prior art, to shorten the client related to above-mentioned transaction
Get the time of the result, so shorten the client wait result related to above-mentioned transaction when
Between.
The content of the invention
The embodiment of the present application provides a kind of Transaction Information method for pushing and system, to solve the push of existing Transaction Information
In method and system, other clients related to a certain transaction get the transaction fresh information first closed with a certain transaction
Time longer technical problem.
A kind of method for pushing of the Transaction Information provided according to the embodiment of the present application, including:
The transaction request for specified subject matter that shopping server real-time reception different clients are sent, and judge itself
Whether current load meets default high concurrent condition;
If the load of the shopping server currently meets the default high concurrent condition, according to default processing plan
Slightly processing is traded to receiving transaction request;
The shopping server is sent out according to trading processing result to the related client of the transaction to the specified subject matter
Easy fresh information is delivered, and, to the client feedback trading processing result for sending the transaction request that shopping server is received;
Wherein, the client related to the transaction of the specified subject matter is to be set in advance as receiving the transaction of the subject matter more
The client of fresh information.
The method for pushing of another Transaction Information provided according to the embodiment of the present application, including:
The transaction request for specified subject matter that shopping server real-time reception different clients are sent, and judge itself
Whether current load meets default high concurrent condition;
If the load of the shopping server currently meets the default high concurrent condition, receiving the transaction please
Ask, take default sending strategy to send the transaction request to Message Queuing server;
The Message Queuing server receives the transaction request, and the transaction request is sent to push server;
The transaction request that the push server processing is received, generation transaction fresh information, and transaction is updated into letter
Breath is sent to the client related to the transaction of specified subject matter, and the transaction received to transmission shopping server please
The client feedback trading processing result asked;
The client related to the transaction of specified subject matter is to be set in advance as receiving the transaction of the subject matter more
The client of fresh information.
A kind of supplying system of the Transaction Information provided according to the embodiment of the present application, including:
Shopping server, the transaction request for specified subject matter sent for real-time reception different clients, and sentence
Whether itself disconnected current load meets default high concurrent condition;
The shopping server, in addition to:
Processing unit, if the load for the shopping server currently meets the default high concurrent condition, root
The transaction request sent according to default processing strategy to the client received is traded processing;
Communication unit, for according to trading processing result, being sent out to the related client of the transaction to the specified subject matter
Easy fresh information is delivered, and, to the client feedback trading processing result for sending the transaction request that shopping server is received;
Client, for sending the transaction request, and receives the transaction fresh information;Wherein, it is described to refer to described
The client for determining the transaction correlation of subject matter is the client of the transaction fresh information of the reception subject matter pre-set.
The supplying system of another Transaction Information provided according to the embodiment of the present application, including:
Shopping server, the transaction request for specified subject matter sent for real-time reception different clients, and sentence
Whether itself disconnected current load meets default high concurrent condition;
The shopping server, in addition to:
Communication unit, will if the load for the shopping server currently meets the default high concurrent condition
The transaction request is sent to Message Queuing server;
Message Queuing server, for the transaction request to be sent to push server;
Push server, for handling the transaction request, according to result generation transaction fresh information, is handed over described
Easy fresh information pushes to the client related to the transaction of specified subject matter, and is received to shopping server is sent
Transaction request client feedback trading processing result;Wherein, the client related to the transaction of the specified subject matter
The client of the transaction fresh information for the reception subject matter for holding to pre-set;
Client, for sending the transaction request, and receives the transaction fresh information.
At least one above-mentioned technical scheme that the embodiment of the present application is used can reach following beneficial effect:
Transaction Information method for pushing and system that the embodiment of the present application is provided, push server are obtaining or got transaction
After fresh information, the transaction fresh information is directly pushed into other clients related to the transaction of the specified subject matter
End, enables other client quick obtainings to the result of the transaction request, effectively shortens other clients and waits institute
State the time of result.
Brief description of the drawings
Accompanying drawing described herein is used for providing further understanding of the present application, constitutes the part of the application, this Shen
Schematic description and description please is used to explain the application, does not constitute the improper restriction to the application.In the accompanying drawings:
Fig. 1 is a kind of flow chart of the method for pushing of Transaction Information in the embodiment of the present application;
Fig. 2 is a kind of concrete application scene figure of the method for pushing of Transaction Information in the embodiment of the present application;
Fig. 3 is the flow chart of another information push method in the embodiment of the present application;
Fig. 4 is the concrete application scene figure of the method for pushing of another Transaction Information in the embodiment of the present application;
Fig. 5 is a kind of structured flowchart of the supplying system of Transaction Information in the embodiment of the present application;
Fig. 6 is the structured flowchart of the supplying system of another Transaction Information in the embodiment of the present application.
Embodiment
To make the purpose, technical scheme and advantage of the application clearer, below in conjunction with the application specific embodiment and
Technical scheme is clearly and completely described corresponding accompanying drawing.Obviously, described embodiment is only the application one
Section Example, rather than whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing
Go out the every other embodiment obtained under the premise of creative work, belong to the scope of the application protection.
Below in conjunction with accompanying drawing, the technical scheme that each embodiment of the application is provided is described in detail.
Embodiment 1
Shown in Figure 1, the embodiment of the present application discloses a kind of information push method, comprises the following steps:
The transaction request for specifying subject matter that step S11, shopping server real-time reception different clients are sent, and
Judge whether itself current load meets default high concurrent condition;
The transaction request, can be different types of transaction request according to different business scenarios, such as to specifying mark
Thing carry out competitive bidding business scenario in, transaction request be to specify subject matter bid information.And to specifying subject matter to enter
In the business scenario of row bulletin, transaction request can be the msu message to specifying subject matter.
In the embodiment of the present application, for the ease of description and the processing speed of effective guarantee shopping server, a shopping
Server receives a transaction request of a subject matter:Such as in the business scenario bid to subject matter a and subject matter b
In, shopping server A receives subject matter a bid information, and shopping server B receives subject matter b bid information.
Shopping server is described above and receives the transaction request for specifying subject matter that different clients are sent, in purchase
Thing server is received after the transaction request for specifying subject matter of different clients transmission, judges whether the load of itself is full
The default high concurrent condition of foot, informational capacity that the default high concurrent condition can be current according to the shopping server and sentence
It is disconnected, the speed of information can also be received according to shopping server and be judged, not limited herein.
If step S13, the load of the shopping server currently meet the default high concurrent condition, according to default
The transaction request that is sent to the client that receives of processing strategy be traded processing;
Above-mentioned steps describe shopping server and judge whether the load of itself meets the benchmark of default high concurrent condition,
When shopping server is that itself current load meets high concurrent condition according to the result of default high concurrent condition judgment, then
The transaction request sent using default processing strategy to the client received is handled.
In the embodiment of the present application, the default processing strategy can be:Shopping server receives a transaction every time please
Ask, the result is fed back to the client for sending the transaction request after the transaction request received has been handled, to inform
The processing state of its transaction request sent of the client;At the same time, shopping server generation specifies the transaction of subject matter more
Fresh information, and the transaction fresh information is sent to the client related to the transaction of specified subject matter.It is pointed out here that, it is so-called
The client related to the transaction of specified subject matter, is not send transaction request, and pre-sets and need to receive the specified mark
Thing transaction fresh information client, it is particularized below to be illustrated with specific example:
After shopping server judges that the load of itself meets high concurrent condition, shopping server receives customer end B hair
The transaction request sent simultaneously is handled it, if handle successfully, to customer end B feed back similar " transaction request is handled successfully " it
The message of class, meanwhile, transaction fresh information is generated for the information for causing change by the transaction request that customer end B is sent, will
The transaction fresh information is sent to other and the client related to the transaction of specified subject matter.
Shopping server is above described when the load for judging itself meets high concurrent condition, to the transaction request of reception
Processing strategy, it can be seen that in the processing strategy of above-mentioned introduction, shopping server only have received the friendship that client is sent
Easily request, is just handled the transaction request, then feedback processing result after the transaction request is received.It is pointed out here that,
After shopping server judges that the load of itself meets default high concurrent condition, the request of reception client, which is taken, once only to be connect
The processing strategy of a transaction request is received, just it is handled after a transaction request is received, until the transaction request
It is processed to finish and feed back to result after client, according still further to above-mentioned processing Policy receipt and handle next transaction
Request.
The method to set up for once only being received on shopping server and handling a transaction request can be entered by client
Row setting.One of which method is to set distributed lock mechanism in client, when multiple client is both needed to its corresponding shopping
When server sends transaction request, the distributed lock mechanism need to be first got.When getting the distributed lock mechanism of setting, just
Transaction request can be sent to shopping server, otherwise, it needs to wait and obtains the distributed mechanism again, until getting
After the distributed lock mechanism, just transaction request can be sent to shopping server.
The corresponding shopping server of client mentioned above, it is how corresponding with shopping server progress as client,
The embodiment of the present application does following setting:Each shopping server receives a class transaction request of a specified subject matter, such as right
Subject matter a bidding request can be received by a shopping server.Also in the business scenario of competitive bidding, to target
Thing b bidding request is then received by another shopping server.
Step S15, the shopping server are according to trading processing result, to the transaction phase with the specified subject matter
The client of pass sends transaction fresh information, and, to the client feedback for sending the transaction request that shopping server is received
Trading processing result;The client related to the transaction of specified subject matter is not send transaction request, and is set in advance as
Receive the client of the transaction fresh information of the specified subject matter.
Shopping server is just handled the transaction request received after a transaction request is received, in processing
After the complete transaction request, result is fed back to the client for sending the transaction request, such as handles successfully, can feed back similar
In the result of " transaction request is handled successfully " etc;Otherwise, the place of similar " transaction request processing failure " etc can be fed back
Manage result.
In shopping server feedback processing result to the client for sending transaction request, while sending transaction updates letter extremely
The related client of the specified subject matter.It is pointed out here that, the so-called client related to the transaction of specified subject matter is not sent out
Transaction request is sent, and the transaction fresh information of specified subject matter need to be obtained in real time.Shopping server is to sending the transaction request
Client feedback result the link of the transaction request can be sent by client be transmitted, and shopping server
Being sent to other related clients of the transaction to specified subject matter specifies the transaction fresh information of subject matter to pass through message
Queue server is carried out, and is comprised the following steps that:
1) shopping server sends transaction fresh information to Message Queuing server;
2) the transaction fresh information is sent to push server by the Message Queuing server;
If when Message Queuing server receives the transaction fresh information, push server is handled or pushed
Other message, then now, Message Queuing server can be by the transaction fresh information storages with distributed caching, working as push
Server is completed after the current processing correctly carried out or push event, is doomed to read the transaction from distributed caching and update to believe
Breath.
4) transaction that the transaction fresh information is pushed to the specified subject matter by the push server is related
Client.
In the embodiment of the present application, push server isolation is set, and push server is located at WEB push technology isolated areas.
Be arranged such, it is to avoid because push server is reset and caused by the other application such as other databases or shopping server
The change of program.In the embodiment of the present application, the corresponding application program of shopping server is simply limited relative to shopping server
And database is mutually isolated, whether it is arranged on as push server and shopping server or database on a main frame
And be not construed as limiting.
It is as follows, enumerate a specific embodiment and be illustrated:
It is shown in Figure 2, to carry out the schematic diagram of bidding process to subject matter B, the process of competitive bidding is being carried out to subject matter B
In, browser AA, browser AB ..., browser AN ..., browser NA ..., browser NN bids to subject matter B.Its
In, browser AA, browser AB ..., browser AN ..., browser NA ..., browser NN goes out to same subject matter
The transaction request of valency is controlled by a distribution, e.g., if browser AA, and browser AB ..., browser AN ... are clear
Look at device NA ..., browser NN is both needed to bid to subject matter B to subject matter B, then it shares a distributed lock, gets
The browser of distributed lock mechanism sends the transaction request bid to subject matter B to shopping server A.If in the business of the competitive bidding
In scene, in addition to carrying out competitive bidding to subject matter B, competitive bidding also is carried out to subject matter C, then the clear of competitive bidding is carried out to subject matter B
Device of looking at shares a distributed lock mechanism, and the transaction request for receiving and handling subject matter B is shopping server A;To target
The browser that thing C carries out competitive bidding shares another distributed lock mechanism, and the transaction request for receiving and handling subject matter B is
Shopping server C (not shown)s.
After browser AA gets the distributed lock mechanism for subject matter B bids, transmission is gone out for subject matter
The transaction request of valency, in the present embodiment, shopping server A are service of the processing for the transaction request of subject matter B bid
Device.Then when shopping server A receives after being directed to the transaction request that subject matter B bids of browser AA transmissions, at it
After reason, and result is fed back into browser AA (if the price in the transaction request that browser AA is sent is higher than subject matter B's
Present price, then send the result of " bidding successfully " to browser AA;If the valency in the transaction request that browser AA is sent
Lattice are less than subject matter B present price, then send the result of " bid failure " to browser AA).When browser AA is directed to
When price in the transaction request that subject matter B is sent is higher than subject matter B present price, shopping server is except giving browser AA
Outside feedback is similar to the result of " bidding successfully ", the information of thinner subject matter B recent quotation is also sent to database,
Subject matter B transaction fresh information is pushed simultaneously to Message Queuing server, and Message Queuing server pushes away transaction fresh information
Push server is delivered to, fresh information of merchandising is pushed to other browsers in addition to browser AA by push server.
Shown except browser AA refreshes after the transaction fresh information of push server is received, automatically on the browser
Subject matter B current pricing information, it is to avoid each browser is both needed to the communication line for actively obtaining and causing from database
Congestion, while having ensured the stabilization of the performance of Database Systems.
When browser NN time-out does not receive the PUSH message of push server transmission, it passes through shopping server active
Database is accessed, database is after the access information is received, and feedback subject matter B present price gives browser AA, effectively keeps away
Exempt from not receive subject matter B recent quotation information for some reason and caused the inaccurate technology of the subject matter B price got
Problem.
In the embodiment of the present application, client also have predetermined function, such as browser NA make a reservation for its wish receive for mark
Thing C fresh information, then can be registered in browser NA, push server feed back subject matter B fresh information when, obtain
Information that browser NA registers is got to be interested in subject matter C, then shopping server is no longer pushed on mark to browser NA
Thing B fresh information, be arranged such, bandwidth saved to a certain extent, it is to avoid though client need not, message team
Leu so pushes the technical problem of the bandwidth waste caused.
The method for pushing for the Transaction Information that the embodiment of the present application is provided, shopping server has handled the transaction request received
Afterwards, transaction fresh information is sent to Message Queuing server in feedback processing result to the client for sending transaction request, disappear
Transaction fresh information is pushed to other clients by breath queue server by push server, effectively prevent multiple client
It is both needed to obtain from database and causes the problem of instantaneous visit capacity of database is big for specifying the fresh information of subject matter, effectively
The performance of database is ensured;In addition, client specifies the transaction of subject matter to update without actively being obtained from database
Information, but transaction fresh information is directly pushed to by each client by message queue and push server, effectively shorten
Because client actively accesses database and Database Feedback is merchandised time of fresh information, effective guarantee client connects in time
Receive the transaction fresh information of specified subject matter.
The Transaction Information method for pushing that the embodiment of the present application is provided, client can subscribe the renewal letter for the subject matter for wanting to receive
Breath, after the fresh information of the subject matter is subscribed, can receive the transaction of the subject matter pushed by Message Queuing server more
Fresh information, it is to avoid the consumption for the time that transaction fresh information described in active obtaining is caused.
Embodiment 2
Shown in Figure 3, the embodiment of the present application discloses a kind of method for pushing of Transaction Information, comprises the following steps:
The transaction request for specifying subject matter that step S31, shopping server real-time reception different clients are sent, and
Judge whether itself current load meets default high concurrent condition;
If step S33, the load of the shopping server currently meet the default high concurrent condition, handed over described
Easily request is sent to Message Queuing server;
Step S35, the Message Queuing server send the transaction request to push server;
Step S37, the push server receive the transaction request, the transaction request are handled, according to place
Result generation transaction fresh information is managed, and transaction fresh information is pushed into the client related to the transaction of the specified subject matter
End, and, to the client feedback trading processing result for sending the transaction request that shopping server is received;It is described to be marked with specifying
Related other clients of transaction of thing be not send transaction request, and be set in advance as receiving the specified subject matter
The client for fresh information of merchandising.
As can be seen that in the embodiment of the present application, the transaction request that shopping server is sent to the client of reception is not
Specific processing is done, is simply sent the transaction request received to Message Queuing server, Message Queuing server is sent out
Push server is given, the background thread of one of push server is handled the transaction request received, processing knot
Shu Hou, according to result, generation transaction fresh information, and fresh information of merchandising is pushed to the transaction phase with specifying subject matter
Other clients closed.Specifically method for pushing can be:
The transaction fresh information is pushed to other connected push server by the push server, each
The transaction fresh information is pushed to connected client by other push server.
The difference of the embodiment of the present application and embodiment 1 is that the server of the module of the two processing transaction request is not
Together, in addition, other descriptions in embodiment 1 are equally applicable to the embodiment of the present application, and it will not go into details again.
It is as follows, enumerate a specific embodiment and be illustrated:
Shown in Figure 4, in the application scenarios announced to subject matter B, operation personnel sends to Operation Server
After the transaction request that examination & verification to subject matter B passes through, Operation Server will be sent to message to subject matter B examination & verification by event
Queue server, Message Queuing server sends subject matter B examination & verification to push server by event.It is one of to push
Examination & verification of the background thread (such as background thread of push server 1) of server to subject matter B is handled by event, concurrently
Easy fresh information is delivered to the push server (push server 1), the push server (push server 1) will be to subject matter
B information updating event pushes to other push server (push server 3 ...) and the corresponding client of this push server
(browser AN), then the information updating event to subject matter B is pushed into other clients by other push server (browsed
Device NA ..., browser NN).
When Operation Server sends subject matter B examination & verification by event to Message Queuing server, it also can be transmitted and update
Subject matter B examination & verifications are by the information such as state to database, to ensure that the examination & verification for subject matter B that database real-time update is recorded is led to
Cross state.
As can be seen that in figure, because the background thread of push server 1 is to its start to process, push server 3
Background thread is not handled subject matter B examination & verification again by event.The examination & verification to subject matter B is effectively prevent to pass through
The network resources waste that event reprocessing is caused.
In the embodiment of the present application, when some client (browser NN) does not receive this couple of subject matter B information more for some reason
New events, can actively access shopping server (the shopping server N in such as figure), lead to shopping server N and access database, with
Inquire about subject matter B latest state information.
In the embodiment of the present application, the background thread of push server equally there is processing to send subject matter B examination & verification to pass through
The function that event is handled, be arranged such, and effective guarantee shopping server efficiently receives transaction request.Using some
The background thread of push server handles the transaction request, has no effect on push server and pushes other PUSH messages, in this way,
Further shorten the time that client receives transaction fresh information, it is ensured that client receives transaction fresh information
High efficiency.
The method for pushing for the Transaction Information that the embodiment of the present application is provided, the transaction request that client is sent is via shopping service
Device, Message Queuing server are sent to push server, and push server is handled it, and result is fed back into hair
The client of the transaction request is sent, is directly pushed to the transaction fresh information related to the transaction of the specified subject matter
Other clients, enable other client quick obtainings to the result of the transaction request, effectively shorten other visitor
Family end waits the time of the result.
Embodiment 3
Shown in Figure 5, the embodiment of the present application discloses a kind of message push system, including shopping server 51 and client
(client 522, client 523 ... client 5nn).Wherein, shopping server 51 is sent for real-time reception different clients
The transaction request for specifying subject matter, and judge whether itself current load meets default high concurrent condition.
Wherein, in shopping server 51, in addition to processing unit 511 and communication unit 512.Wherein, processing unit 511
It is right according to default processing strategy if meeting the default high concurrent condition for the load of the shopping server currently
The transaction request that the client received is sent is traded processing;Communication unit 512, for the shopping server according to friendship
Disposable result, transaction fresh information is sent to the related client of the transaction to the specified subject matter, and, purchased to sending
The client feedback trading processing result for the transaction request that thing server is received.
Multiple client (client 521, client 522 ... client 5nn) is used to send the transaction request, and connects
The transaction fresh information is received, in addition, shopping server feedback can also be received by sending the client of the transaction request
Result.
In the embodiment of the present application, the message push system also includes:
Message Queuing server 53, for receiving the transaction fresh information, and by the transaction to the specified subject matter
Fresh information is sent to push server;
Push server 54, for handling the transaction fresh information, generation transaction pushed information;
The push server 54, is additionally operable to being pushed to the transaction pushed information into the transaction with the specified subject matter
Related client.
In the embodiment of the present application, the message push system also includes:
Distributed caching, for storing the transaction fresh information for the Message Queuing server;
The push server, is additionally operable to read the transaction fresh information from the distributed caching.
In the embodiment of the present application, the shopping server 51 also includes receiving unit, and distributed lock is used for receiving
The transaction request that the client of control is sent;Shopping server 51 is after a transaction request is received, the processing unit pair
The transaction request received is handled.
It is pointed out here that, the embodiment of the present application is system embodiment corresponding with the embodiment of the method described in embodiment 1, because
This, the elaboration to embodiment of the method is equally applicable to the system embodiment in embodiment 1, will not be described here.
Transaction request result is being fed back to hair by the Transaction Information supplying system that the embodiment of the present application is provided, shopping server
When sending the client of the transaction request, according to Message Processing result generation transaction fresh information, and the transaction is updated into letter
Breath is sent to Message Queuing server, and Message Queuing server sends the transaction fresh information to push server.Due to
Push server, which can have, pushes the transaction fresh information function, enables other client quick obtainings to the transaction request
Result, effectively shorten the time that other clients wait the result.
Embodiment 4
Shown in Figure 6, the embodiment of the present application discloses a kind of message push system, including shopping server 61, for reality
When receive the transaction request for specifying subject matter that different clients are sent, and judge whether itself current load meets pre-
If high concurrent condition.Shopping server 61 includes communication unit 611, if the load for the shopping server currently meets
The default high concurrent condition, then send the transaction request to Message Queuing server.
The message push system also includes multiple client 62, Message Queuing server 63, push server 64.Its
In:
Multiple client 62 (client 521, client 522 ... client 5nn), for sending the transaction request, and
Receive the transaction fresh information.
Message Queuing server 63, for the transaction request to be sent to push server;
Push server 64,, will be described according to result generation transaction fresh information for handling the transaction request
Transaction fresh information pushes to other push server and client being connected with the push server, and described other push clothes
The transaction fresh information is pushed to connected client, and the transaction received to transmission shopping server by business device
The client feedback trading processing result of request;
As can be seen that the embodiment of the present application is system embodiment corresponding with the embodiment of the method for the description of embodiment 2, because
This, the description in embodiment of the method 2 is equally applicable for the system embodiment, will not be described here.
The Transaction Information supplying system that the embodiment of the present application is provided, transaction request takes via shopping server, message queue
Business device is sent to push server, and push server is handled it, and result is fed back into the transmission transaction please
The client asked, directly pushes to other clients related to the transaction of the specified subject matter by the transaction fresh information
End, enables other client quick obtainings to the result of the transaction request, effectively shortens other clients and waits institute
State the time of result.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the present invention can be used in one or more computers for wherein including computer usable program code
The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moved
State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus
Or any other non-transmission medium, the information that can be accessed by a computing device available for storage.Define, calculate according to herein
Machine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability
Comprising so that process, method, commodity or equipment including a series of key elements are not only including those key elements, but also wrap
Include other key elements being not expressly set out, or also include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that wanted including described
Also there is other identical element in process, method, commodity or the equipment of element.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program product.
Therefore, the application can be using the embodiment in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Form.Deposited moreover, the application can use to can use in one or more computers for wherein including computer usable program code
The shape for the computer program product that storage media is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
Embodiments herein is the foregoing is only, the application is not limited to.For those skilled in the art
For, the application can have various modifications and variations.It is all any modifications made within spirit herein and principle, equivalent
Replace, improve etc., it should be included within the scope of claims hereof.
Claims (10)
1. a kind of method for pushing of Transaction Information, it is characterised in that including:
The transaction request for specified subject matter that shopping server real-time reception different clients are sent, and judge that itself is current
Load whether meet default high concurrent condition;
It is right according to default processing strategy if the load of the shopping server currently meets the default high concurrent condition
Receive transaction request and be traded processing;
The shopping server sends to the related client of the transaction to the specified subject matter and handed over according to trading processing result
Easy fresh information, and, to the client feedback trading processing result for sending the transaction request that shopping server is received;Its
In, the client related to the transaction of the specified subject matter is to be set in advance as receiving the transaction renewal of the subject matter
The client of information.
2. according to the method described in claim 1, it is characterised in that the shopping server according to trading processing result, to
The client that the transaction of the specified subject matter is related sends transaction fresh information, including:
The shopping server sends the transaction fresh information to Message Queuing server;
The transaction fresh information is sent to push server by the Message Queuing server;
The transaction fresh information is pushed to the client related to the transaction of the specified subject matter by the push server.
3. method according to claim 2, it is characterised in that the Message Queuing server will be to the specified subject matter
Transaction fresh information be sent to push server, including:
The Message Queuing server stores the transaction fresh information into distributed caching;
The push server reads the transaction fresh information from the distributed caching.
4. according to the method described in claim 1, it is characterised in that described then according to default processing strategy to described in reception
Transaction request is handled, including:
Shopping server receives the transaction request that the client controlled using distributed lock is sent;
After a transaction request is received, the transaction request received is handled.
5. a kind of method for pushing of Transaction Information, it is characterised in that including:
The transaction request for specified subject matter that shopping server real-time reception different clients are sent, and judge that itself is current
Load whether meet default high concurrent condition;
If the load of the shopping server currently meets the default high concurrent condition, the transaction request is received, is adopted
Default sending strategy is taken to send the transaction request to Message Queuing server;
The Message Queuing server receives the transaction request, and the transaction request is sent to push server;
The transaction request that the push server processing is received, generation transaction fresh information, and will transaction fresh information hair
The client related to the transaction of specified subject matter described in delivering to, and the transaction request received to transmission shopping server
Client feedback trading processing result;The client related to the transaction of specified subject matter is described to be set in advance as receiving
The client of the transaction fresh information of subject matter.
6. a kind of supplying system of Transaction Information, it is characterised in that including:
Shopping server, the transaction request for specifying subject matter sent for real-time reception different clients, and judge certainly
Whether the load of body currently meets default high concurrent condition;
The shopping server, in addition to:
Processing unit, if the load for the shopping server currently meets the default high concurrent condition, according to pre-
If the transaction request that is sent to the client that receives of processing strategy be traded processing;
Communication unit, for according to trading processing result, sending and handing over to the related client of the transaction to the specified subject matter
Easy fresh information, and, to the client feedback trading processing result for sending the transaction request that shopping server is received;
Client, for sending the transaction request, and receives the transaction fresh information;Wherein, the described and specified mark
Thing the related client of transaction be the reception subject matter pre-set transaction fresh information client.
7. system according to claim 6, it is characterised in that the system also includes:
Message Queuing server, for receiving the transaction fresh information, and will be sent to push to the transaction fresh information
Server;
Push server, the client related to the transaction of the specified subject matter is pushed to for the transaction to be updated into breath.
8. system according to claim 7, it is characterised in that also include:
Distributed caching, for storing the transaction fresh information for the Message Queuing server;
The push server, is additionally operable to read the transaction fresh information from the distributed caching.
9. system according to claim 6, it is characterised in that the shopping server, in addition to:
Receiving unit, for receiving the transaction request that the client controlled using distributed lock is sent;
After a transaction request is received, the processing unit is handled the transaction request received.
10. a kind of supplying system of Transaction Information, it is characterised in that including:
Shopping server, the transaction request for specifying subject matter sent for real-time reception different clients, and judge certainly
Whether the load of body currently meets default high concurrent condition;
The shopping server, in addition to:
Communication unit, will be described if the load for the shopping server currently meets the default high concurrent condition
Transaction request is sent to Message Queuing server;
Message Queuing server, for the transaction request to be sent to push server;
Push server, for handling the transaction request, according to result generation transaction fresh information, merchandises described more
Fresh information pushes to the client related to the transaction of specified subject matter, and the friendship received to transmission shopping server
The client feedback trading processing result easily asked;Wherein, the client related to the transaction of the specified subject matter is
The client of the transaction fresh information of the reception subject matter pre-set;
Client, for sending the transaction request, and receives the transaction fresh information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710409874.6A CN107105064A (en) | 2017-06-02 | 2017-06-02 | The method for pushing and system of a kind of Transaction Information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710409874.6A CN107105064A (en) | 2017-06-02 | 2017-06-02 | The method for pushing and system of a kind of Transaction Information |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107105064A true CN107105064A (en) | 2017-08-29 |
Family
ID=59660827
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710409874.6A Pending CN107105064A (en) | 2017-06-02 | 2017-06-02 | The method for pushing and system of a kind of Transaction Information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107105064A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107992373A (en) * | 2017-12-20 | 2018-05-04 | 翟德义 | A kind of method and system, client, proxy server for realizing cooperating |
CN108390924A (en) * | 2018-02-07 | 2018-08-10 | 善林(上海)金融信息服务有限公司 | Order fulfillment method and device |
CN108876521A (en) * | 2018-06-04 | 2018-11-23 | 贵州数据宝网络科技有限公司 | A kind of high concurrent data transacting system and method |
CN110719330A (en) * | 2019-10-11 | 2020-01-21 | 拉扎斯网络科技(上海)有限公司 | Regulation and control method, device and related equipment |
CN111383099A (en) * | 2020-03-25 | 2020-07-07 | 中国建设银行股份有限公司 | Wind control method and device based on bulk goods transaction |
CN111737274A (en) * | 2020-06-19 | 2020-10-02 | 中国工商银行股份有限公司 | Transaction data processing method and device and server |
CN111880611A (en) * | 2020-06-19 | 2020-11-03 | 深圳宏芯宇电子股份有限公司 | Server for fast transaction and fast transaction data processing method |
CN111970315A (en) * | 2019-05-20 | 2020-11-20 | 北京车和家信息技术有限公司 | Method, device and system for pushing message |
CN112734584A (en) * | 2021-01-21 | 2021-04-30 | 建信金融科技有限责任公司 | Method and system for locking insurance policy based on financial insurance business process |
CN114021052A (en) * | 2021-09-26 | 2022-02-08 | 度小满科技(北京)有限公司 | Inference service method, equipment and system |
CN114428684A (en) * | 2020-10-29 | 2022-05-03 | 中移互联网有限公司 | Message pushing method, device and system based on distribution |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101364230A (en) * | 2008-09-24 | 2009-02-11 | 金蝶软件(中国)有限公司 | Concurrent access control method and device |
CN102346891A (en) * | 2010-07-30 | 2012-02-08 | 阿里巴巴集团控股有限公司 | Network transaction method and server |
US20130117312A1 (en) * | 2010-09-30 | 2013-05-09 | Huawei Device Co., Ltd. | Method and server for pushing information proactively |
CN103677771A (en) * | 2012-09-06 | 2014-03-26 | 阿里巴巴集团控股有限公司 | Processing method and device for concurrent transactions |
CN104077111A (en) * | 2014-06-24 | 2014-10-01 | 用友优普信息技术有限公司 | Concurrent access control method and device for service operations |
CN104333577A (en) * | 2014-10-23 | 2015-02-04 | 张勇平 | Message pushing system and method based on HTTP |
CN105938605A (en) * | 2016-04-14 | 2016-09-14 | 华东交通大学 | Vehicle trading platform |
CN105989065A (en) * | 2015-02-09 | 2016-10-05 | 苏宁云商集团股份有限公司 | Flash shot data processing method and system |
-
2017
- 2017-06-02 CN CN201710409874.6A patent/CN107105064A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101364230A (en) * | 2008-09-24 | 2009-02-11 | 金蝶软件(中国)有限公司 | Concurrent access control method and device |
CN102346891A (en) * | 2010-07-30 | 2012-02-08 | 阿里巴巴集团控股有限公司 | Network transaction method and server |
US20130117312A1 (en) * | 2010-09-30 | 2013-05-09 | Huawei Device Co., Ltd. | Method and server for pushing information proactively |
CN103677771A (en) * | 2012-09-06 | 2014-03-26 | 阿里巴巴集团控股有限公司 | Processing method and device for concurrent transactions |
CN104077111A (en) * | 2014-06-24 | 2014-10-01 | 用友优普信息技术有限公司 | Concurrent access control method and device for service operations |
CN104333577A (en) * | 2014-10-23 | 2015-02-04 | 张勇平 | Message pushing system and method based on HTTP |
CN105989065A (en) * | 2015-02-09 | 2016-10-05 | 苏宁云商集团股份有限公司 | Flash shot data processing method and system |
CN105938605A (en) * | 2016-04-14 | 2016-09-14 | 华东交通大学 | Vehicle trading platform |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107992373A (en) * | 2017-12-20 | 2018-05-04 | 翟德义 | A kind of method and system, client, proxy server for realizing cooperating |
CN108390924A (en) * | 2018-02-07 | 2018-08-10 | 善林(上海)金融信息服务有限公司 | Order fulfillment method and device |
CN108876521A (en) * | 2018-06-04 | 2018-11-23 | 贵州数据宝网络科技有限公司 | A kind of high concurrent data transacting system and method |
CN111970315A (en) * | 2019-05-20 | 2020-11-20 | 北京车和家信息技术有限公司 | Method, device and system for pushing message |
CN110719330A (en) * | 2019-10-11 | 2020-01-21 | 拉扎斯网络科技(上海)有限公司 | Regulation and control method, device and related equipment |
CN111383099A (en) * | 2020-03-25 | 2020-07-07 | 中国建设银行股份有限公司 | Wind control method and device based on bulk goods transaction |
CN111880611A (en) * | 2020-06-19 | 2020-11-03 | 深圳宏芯宇电子股份有限公司 | Server for fast transaction and fast transaction data processing method |
CN111737274A (en) * | 2020-06-19 | 2020-10-02 | 中国工商银行股份有限公司 | Transaction data processing method and device and server |
CN111880611B (en) * | 2020-06-19 | 2022-06-28 | 深圳宏芯宇电子股份有限公司 | Server for quick transaction and quick transaction data processing method |
CN111737274B (en) * | 2020-06-19 | 2023-08-08 | 中国工商银行股份有限公司 | Transaction data processing method, device and server |
CN114428684A (en) * | 2020-10-29 | 2022-05-03 | 中移互联网有限公司 | Message pushing method, device and system based on distribution |
CN112734584A (en) * | 2021-01-21 | 2021-04-30 | 建信金融科技有限责任公司 | Method and system for locking insurance policy based on financial insurance business process |
CN114021052A (en) * | 2021-09-26 | 2022-02-08 | 度小满科技(北京)有限公司 | Inference service method, equipment and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107105064A (en) | The method for pushing and system of a kind of Transaction Information | |
CN103886079B (en) | A kind of data processing method and system | |
US20190259099A1 (en) | System and method for a semi-lit market | |
TW578076B (en) | Buyer, multi-supplier, multi-stage supply chain management system with lot tracking | |
US10621666B2 (en) | System and method for facilitation cross orders | |
AU2019203081A1 (en) | Techniques for facilitating electronic trading | |
US20130339199A1 (en) | Inventory exchange for managing inventory across multiple sales channels | |
CN107656818A (en) | The flow implementation method and related system of a kind of bill business | |
US20130024352A1 (en) | Trading System | |
BRPI0718169A2 (en) | SYSTEM AND METHOD FOR PRIORIZED DATA DISTRIBUTION IN AN ELECTRONIC TRADING ENVIRONMENT | |
US10678192B1 (en) | Optimization of production systems | |
JP6298078B2 (en) | Network capacity allocation based on incremental evaluation | |
CN111179080A (en) | Order processing method and order processing device | |
CN106530084B (en) | Information processing method and server | |
JP2004506272A (en) | A system that processes raw financial data and generates validated product guidance information for subscribers | |
US8538858B2 (en) | Apparatus and method for commodity trading with automatic odd lot hedging | |
US20160371753A1 (en) | Method, apparatus, and system for controlling publication of network media information | |
US20200042164A1 (en) | System and Method for a Mobile Computing Device Having a User Interface and Options Selection in the User Interface | |
US20180197241A1 (en) | Systems and methods of sequencing or combining multiple related, but different, transaction requests into a single transaction | |
KR102454969B1 (en) | Device for providing online used luxury goods exchange platform | |
US20230119912A1 (en) | Omnibus Address Generation and Autoconversion of Cryptocurrency | |
TW201905812A (en) | Exchange transaction management system and a management method thereof | |
WO2024150143A1 (en) | Gasless decentralized token swaps | |
CN117078417A (en) | Transaction data adjustment method, device, equipment and storage medium | |
CN111144777A (en) | Resource transfer method, device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170829 |