CN110505269A - Transaction processing system, method for processing business and server - Google Patents

Transaction processing system, method for processing business and server Download PDF

Info

Publication number
CN110505269A
CN110505269A CN201910545056.8A CN201910545056A CN110505269A CN 110505269 A CN110505269 A CN 110505269A CN 201910545056 A CN201910545056 A CN 201910545056A CN 110505269 A CN110505269 A CN 110505269A
Authority
CN
China
Prior art keywords
service server
business
server
server group
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910545056.8A
Other languages
Chinese (zh)
Inventor
黄郁财
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Huya Technology Co Ltd
Original Assignee
Guangzhou Huya Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huya Technology Co Ltd filed Critical Guangzhou Huya Technology Co Ltd
Priority to CN201910545056.8A priority Critical patent/CN110505269A/en
Publication of CN110505269A publication Critical patent/CN110505269A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • H04L67/1048Departure or maintenance mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/561Adding application-functional data or data for application control, e.g. adding metadata
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/59Providing operational support to end devices by off-loading in the network or by emulation, e.g. when they are unavailable

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Library & Information Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

This application discloses transaction processing system, method for processing business and servers, wherein transaction processing system includes proxy server group and service server group, service server group is used to couple with proxy server group, and service server group includes multiple service servers;Wherein, when carrying out processing business and updates, for carrying out processing business and updates, at least another one in multiple service servers is used to carry out data interaction with proxy server group at least one of multiple service servers.By the above-mentioned means, the application can be improved the stability of transaction processing system.

Description

Transaction processing system, method for processing business and server
Technical field
This application involves field of computer technology, more particularly to transaction processing system, method for processing business and service Device.
Background technique
With the continuous development of computer technology, type of service gradually increases, and the data volume of every kind of business is increasingly Greatly, so that transaction processing system is more and more huger, so that the update and management for service server bring difficulty.
When the service server in transaction processing system needs to be updated, in order to guarantee the consistency of data, then need Suspend the write operation to the data in service server, correspondingly, service server stops externally providing service, that is, Usually said withdraws update.
Need externally to provide server the function pause of service however, withdrawing and updating, if necessary to the data volume of change Larger, then the time that database stops service can be longer, to reduce the stability of transaction processing system.
Summary of the invention
The application can be improved transaction processing system mainly solving the technical problems that provide a kind of transaction processing system Stability.
In order to solve the above technical problems, the technical solution that the application uses is: providing a kind of transaction processing system.
Wherein, transaction processing system includes proxy server group and service server group;Service server group is used for and generation The coupling of server group is managed, service server group includes multiple service servers;Wherein, when carrying out processing business and updates, multiple business At least one of server is for carrying out processing business and updates, and at least another one in multiple service servers is used for and agency service Device group carries out data interaction.
In order to solve the above technical problems, another technical solution that the application uses is: providing a kind of method for processing business.
Wherein, method for processing business includes: to receive from least one of multiple service servers carry out business more New feedback, plurality of service server correspond to identical business;It determines and carries out processing business and updates in multiple service servers At least one;Data interaction is carried out at least another one in multiple service servers.
In order to solve the above technical problems, another technical solution that the application uses is: providing a kind of server.
Wherein, server includes processor, telecommunication circuit and memory, and telecommunication circuit and memory are respectively coupled to handle Device;Processor, which is used to receive by telecommunication circuit, carries out the anti-of processing business and updates from least one of multiple service servers Feedback, plurality of service server correspond to identical business;Processor carries out business more for determining in multiple service servers At least one new;Processor is used to carry out data friendship by at least another one in telecommunication circuit and multiple service servers Mutually.
Compared with prior art, the beneficial effect of the application is: transaction processing system provided by the embodiment of the present application, leads to Crossing setting service server group includes multiple service servers, to make more when service server needs to carry out processing business and updates At least one of a service server can allow at least another one in multiple service servers for carrying out processing business and updates For carrying out data interaction with proxy server group, allow service server group while carrying out processing business and updates and agency Server group carries out data interaction, so as to carry out processing business and updates in the case where continual service, improves business processing system The stability of system.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of one embodiment of the application transaction processing system;
Fig. 2 is the structural schematic diagram of another embodiment of the application transaction processing system;
Fig. 3 is the structural schematic diagram of the another embodiment of the application transaction processing system;
Fig. 4 is the flow diagram of one embodiment of the application method for processing business;
Fig. 5 is the flow diagram of another embodiment of the application method for processing business;
Fig. 6 is the structural schematic diagram of the application server example.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiment is only a part of the embodiment of the application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
Referring to Fig. 1, Fig. 1 is the structural schematic diagram of one embodiment of the application transaction processing system.
The transaction processing system 100 of the present embodiment includes: proxy server group 10 and service server group 20.
Service server group 20 is used to couple with proxy server group 10, and service server group 20 includes multiple business services Device 21.
So-called server or server group can be to provide the equipment of the service of calculating in the present embodiment.
Service server group 20 can run the application program for executing intended service, can be 30/ Client application of client Program provides data service.
Service server group 20 for example can be based on JMX (Java Management Extension, Jav management expansion Exhibition) framework establishment server group.JMX is the frame that management function is implanted into for application program, equipment, system etc..JMX body It is frame include mechanical floor (MBean: standard MBean, dynamic MBean, open MBean and model M Bean), Agent layer (MBean Server), distributed layer and additional management agreement.Each layer of function and application is the prior art in JMX System Framework, herein It repeats no more.By offer business classify, service server group 20 for example can be game server group, direct broadcast server group, Chat server group or the server group that other function may be implemented etc..
Proxy server group 10 allows the network terminal (such as mobile phone) whole by proxy server group 10 and another network (such as service server group 20) is held to carry out indirect communication connection.In the present embodiment, proxy server group 10 can and industry Server group 20 of being engaged in is based on identical framework establishment, can also be based on the framework establishment of not phase.
Wherein, when carrying out processing business and updates, at least one of multiple service servers 21 are more for carrying out processing business and updates At least another one in a service server 21 is used to carry out data interaction with proxy server group 10.
Proxy server group 10 may include one, two or more proxy servers 11.With agency service in Fig. 1 Device group 10 includes that a proxy server carries out example.In multiple service servers 21 it is " multiple " expression two or two with On.Multiple service server groups 20 can be coupled with proxy server group 10, can also be only that multiple service server groups 20 are used It is coupled at least one and the proxy server group 10 for carrying out data interaction with proxy server group 10.When multiple service servers When group 20 is coupled with proxy server group 10, controllable at least one with multiple service servers 21 of proxy server group 10 Person carries out data interaction.Certainly, in other embodiments, service server 21 and proxy server 10 carry out the control of data interaction System can also be realized by being realized between service server 21 by Handshake Protocol by third party device.
Specifically, in transaction processing system 100, service server group 20 manages the application program of the business of correspondence, when It needs to carry out processing business and updates, such as the version updating of application program, such as carries out such as big table change (i.e. schema change) and topology When changing the operation such as (i.e. topology change) large size Schema Change, in order to interrupt service server group 20 not Externally service can make service server group 20 include multiple service servers 21, and at least one in multiple service servers 21 Person is for when carrying out processing business and updates, at least another one in multiple service servers 21 to can be used for carrying out with proxy server group 10 Data interaction, so that service server group 20 can also continue externally to provide corresponding clothes while carrying out processing business and updates Business.
For example, if service server group 20 includes two service servers 21, for example, service server A and business Server B can make service server A for carrying out processing business and updates, service server B then can be used when needing to carry out processing business and updates In with proxy server group 10 carry out data interaction.If service server group 20 includes three service servers 21, for example, industry The server A, service server B, service server C of being engaged in can make service server A for carrying out when needing to carry out processing business and updates Processing business and updates, one or two of service server 21 then can be used for carrying out data interaction with proxy server group 10.
It is different from the prior art, transaction processing system 100 provided by the embodiment of the present application, by the way that service server is arranged Group 20 includes multiple service servers 21, to make multiple service servers when service server group 20 needs processing business and updates At least one of 21 for carrying out processing business and updates, and at least another one in multiple service servers 21 can be allowed to be used for and generation It manages server group 10 and carries out data interaction, allow service server group 20 while carrying out processing business and updates and agency service Device group 10 carries out data interaction, so as to carry out processing business and updates in the case where continual service, improves transaction processing system 100 stability.
Optionally, at least one of multiple service servers 21 are used for and proxy server group after processing business and updates 10 carry out data interaction, other service servers 21 for not carrying out processing business and updates successively carry out business in multiple service servers 21 It updates.
For example, if service server group 20 includes two service servers 21, for example, service server A and business Server B.When needing to carry out processing business and updates, service server A carry out processing business and updates, service server B then with proxy server Group 10 carries out data interaction.After service server A carries out processing business and updates, proxy server group 10 is switched to be taken with business Business device A carries out data interaction, and service server B then carries out processing business and updates.If service server group 20 includes three business services Device 21, for example, service server A, service server B, service server C, when needing to carry out processing business and updates, service server A Processing business and updates are carried out, one or two in service server B, service server 21 are then counted with proxy server group 10 According to interaction.After service server A carries out processing business and updates, proxy server group 10 is switched to be counted with service server A According to interaction, service server B, C then successively carry out processing business and updates.
By being updated multiple service servers 21 successively, multiple business in service server group 20 can be made Data content in server 21 can be consistent after updating whole every time.
Due to multiple service servers after updating whole every time, before next update, in service server group 20 21 data content is consistent, so that proxy server group 10 is before next update starts, it can be in multiple service servers The switching of data interaction is carried out between 21, and can still obtain identical data content after handover, ensure that service server Group 20 can continue to provide identical or updated service, improve user experience, and ensured and do not withdrawn the smooth of update It carries out.
Optionally, at least one of multiple service servers 21 are used as main business server 21, are preferentially used for and act on behalf of Server 11 carries out data interaction;At least another one in multiple service servers 21 is preferential to use as auxiliary service server 21 In progress processing business and updates.
For example, one of settable multiple service servers 21 are used as main business server 21, other service servers 21 are used as auxiliary service server 21;Also one of multiple service servers 21 can be set and be used as auxiliary service server 21, Other service servers 21 are used as main business server 21;When the quantity of multiple service servers 21 is three or more, also The service server 21 that predetermined quantity (such as two) can be set is used as main business server 21, other service servers 21 are made Supplemented by service server 21, or setting predetermined quantity (such as two) service server 21 be used as auxiliary service server 21, He is used as main business server 21 by service server 21.
For example, if service server group 20 includes two service servers 21, for example, service server A and business Server B, settable service server A is as main business server 21, and service server B is as auxiliary service server 21, then Under normal circumstances, proxy server group 10 preferentially with service server A carry out data interaction, when service server group 20 need into Row processing business and updates, proxy server group 10 can continue with service server A carry out data interaction, service server B then preferentially into Row processing business and updates, after service server B carries out processing business and updates, proxy server group 10 is switched to and service server B Data interaction is carried out, service server A starts to carry out processing business and updates, and after the update of service server A finishing service, agency's clothes Business device group 10 is switched to again carries out data interaction with service server A.
If service server group 20 includes three service servers 21, for example, service server A, service server B, industry Be engaged in server C, and settable service server A is as main business server 21, and service server B, C are as auxiliary service server 21, then under normal circumstances, proxy server group 10 preferentially carries out data interaction with service server A, when service server group 20 Need to carry out processing business and updates, proxy server group 10 continues to carry out data interaction with service server A, and service server B can be first Processing business and updates are carried out, after service server B carries out processing business and updates, proxy server group 10 can continue and service server A carries out data interaction, and service server C starts to carry out processing business and updates, after service server C carries out processing business and updates, generation Reason server group 10, which is switched to, carries out data interaction with service server B or C, and service server A starts to carry out processing business and updates, and After the update of service server A finishing service, proxy server group 10 is switched to again carries out data friendship with service server A Mutually.
By making to include main business server 21 and auxiliary service server 21 in multiple service servers 21, so that needing every time When updating, main business server 21 is preferentially used for connection proxy server group 10, and auxiliary service server 21 is preferentially used for carrying out Processing business and updates, and after each update, 21 preferential attachment proxy server group 10 of main business server can take convenient for business Business device group 20 manages and maintains.
Optionally, at least one of multiple service servers 21 generate preset state information when carrying out processing business and updates, And preset state information is sent to proxy server group 10.
Proxy server group 10 for switched to after receiving preset state information in multiple service servers 21 At least another one carries out data interaction.
For example, if service server group 20 includes two service servers 21, for example, service server A and business Server B, and service server A, as main business server 21, service server B is as auxiliary service server 21, if currently State is that proxy server group 10 and service server A carry out data interaction, and service server group 20 receives processing business and updates and asks After asking, determines the service server B i.e. advanced row processing business and updates of auxiliary service server 21 and generate the first preset state information, first Preset state information includes that the service server 21 for needing to be updated is the information of service server B, at this point, since agency takes Business device group 10 is connect with service server A, so proxy server group 10 determines not after receiving the first preset state information Switch data interactive object is needed, i.e. proxy server group 10 continues to carry out data interaction with service server A, in business service After device B carries out processing business and updates, service server A, which is determined, starts to carry out processing business and updates and the second preset state information of generation, Second preset state information includes that the service server 21 for needing to be updated is the information of service server A, at this point, due to generation Reason server group 10 is connect with service server A, so proxy server group 10 is true after receiving the second preset state information Surely switch data interactive object is needed, then proxy server group 10, which is switched to, carries out data interaction with service server B.
Because switching it is used and the time it is extremely short, during switch data interactive object, proxy server group 10 can keep the access request at least one service server 21 in service server group 20 that for example client 30 is sent Connection, with realize in handoff procedure service server group 20 will not stop servicing.
It should be noted that the term " first " and " second " in the present embodiment are used for description purposes only, and cannot understand For indication or suggestion relative importance or implicitly indicate the quantity of indicated technical characteristic.Define as a result, " first " and The feature of " second " can explicitly or implicitly include at least one of the features.In addition, term " the packet in the embodiment of the present application Include " and " having " and their any deformations, it is intended that it covers and non-exclusive includes.
Referring to Fig. 2, Fig. 2 is the structural schematic diagram of another embodiment of the application transaction processing system.
In the present embodiment, transaction processing system 100 includes multiple groups service server group 20, and multiple groups service server group 20 is right The business answered is at least partly different, and proxy server group 10 is respectively coupled to multiple groups service server group 20.
The number of service server group 20 for example can be 3,4 or 10.
The corresponding business of multiple service server groups 20 is at least partly different.Multiple service server groups 20 can realize two The processing of above different types of business.
Optionally, multiple service server groups 20 can respectively correspond different business.When the data processing of a certain business When measuring very big, the more than two service server groups 20 being also possible in multiple service server groups 20 correspond to same industry The processing of business, other service server groups 20 then correspond to the processing of different business.
In the present embodiment, each service server group 20 includes multiple service servers 21, i.e., each business service Device group 20 can carry out processing business and updates in the case where continual service.
In other embodiments, the partial service server group 20 being also possible in multiple groups service server group 20 includes Multiple service servers 21, and partial service server group 20 is the service server 21 of existing structure.For example, multiple groups business takes It can be three groups in device group 20 of being engaged in, respectively game service server group 20, video traffic server group 20 and voice service takes Business device group 20, wherein since the demand that game player and live streaming user operate duration is larger, it is viscous to user to withdraw update The influence of degree is also larger, thus settable game service server group 20, live broadcast service server group 20 respectively include it is multiple Service server 21 allows game service server group 20, live broadcast service server group 20 the continual service the case where Lower carry out processing business and updates improve user experience.Accordingly for voice service, due to renewal time is shorter and user for The acceptance level for withdrawing update is higher, then voice traffic services device group 20 can be made using the service server 21 of existing structure, i.e., Still using the mode for withdrawing update, to reduce operation and maintenance cost.It is understood that whether needing that each business is arranged Server group 20 includes multiple service servers 21 or determines which service server group 20 need to include multiple business services Device 21 can be specifically arranged according to cost, the needs of service management person, demand of the user to different business.The present embodiment exists This with no restrictions, as long as at least one service server group 20 include multiple service servers 21.
By making transaction processing system 100 include multiple service server groups 20, and multiple service server groups 20 are corresponding Business it is at least partly different, to realize function opposite independent between multiple service server groups 20, can be improved at business The operational efficiency of reason system 100 simultaneously reduces development and maintenance cost.
Please continue to refer to Fig. 2, in the present embodiment, transaction processing system 100 further comprises client 30,30 coupling of client Connect proxy server group 10.It is 3 in Fig. 2 with client 30 to be illustrated.It can be understood that the number of client 30 It can be 1,2 or 2 or more.
Client 30 can be communicatively coupled by proxy server group 10 and service server group 20.Client 30 is used for Local service is provided for user, client 30 can be target terminal equipment, such as mobile phone, tablet computer or laptop.
Specifically, client 30 is for sending the first data to proxy server group 10, proxy server 11 is used for the One data are sent to the service server group 20 with the first Data Matching;Service server group 20 generates after receiving the first data Second data, and the second data are sent to corresponding client 30 by proxy server group 10.
Proxy server group 10 can play the function of routing, i.e., can lead between client 30 and service server group 20 Proxy server group 10 is crossed to be attached and forward data.Wherein, the first data client 30 sent pass through agency service Device group 10 is sent to the service server group 20 with the first Data Matching, can be referred to as forward route;By service server group 20 receive and generate the second data after the first data and be sent to corresponding client 30 by proxy server group 10, can claim Be reverse route.
Optionally, since proxy server group 10 has primarily served the function of routing, so proxy server group 10 can also Referred to as " light server ", i.e., relative to service server group 20, function is relatively easy, it is however generally that, proxy server group 10 Processing business can be not used in.
In an application scenarios, client 30 can be the mobile phone of user, in multiple service server groups 20 at least One is game service server group 20, and the mobile phone-downloaded of user has corresponding game APP (application program), the mobile phone of user It can connect to obtain game data with game service server group 20 by proxy server group 10.Game can not after online Disconnected release updates, wherein the content updated mainly may include UI (User Interface, user interface) resource and new road Has article, UI resource is updated by patch (patch), the performance of single client 30 is only involved when being updated, therefore not There are version problems, can directly be updated.And the update of stage property and article for example new in game then can not generally pass through Patch updates, and existing update method is to need to withdraw update, i.e. mobile phone cannot carry out game when server is updated again Or can interrupt suddenly, this update mode can great impaired user game enthusiasm, be unfavorable for user retention.
Therefore the present embodiment provides a kind of transaction processing system 100, the mobile phone of user can pass through proxy server group 10 It being connect at least one of multiple service servers 21, user can continue to keep game state if playing games, At least another one in multiple service servers 21 carries out processing business and updates simultaneously, at least another in multiple service servers 21 Person carry out processing business and updates after, 10 switch data interactive object of proxy server group with at least one in multiple service servers 21 Person's connection.In handoff procedure, proxy server group 10 remain mobile phone send in multiple service servers 21 extremely The connection of the access request of few one, until continuing according to access request after completing handoff procedure to multiple service servers 21 In at least another one access, with realize in handoff procedure service server group 20 will not stop servicing.
By the above-mentioned means, service server group 20 can be completed in the case where user is almost without perception more Newly, it and family can be used gets updated game data, improve user experience, be conducive to the viscosity for increasing user.And And the present embodiment can preferably realize the decoupling of service server 21 and client 30, by the setting of proxy server 10, Without considering the adaptation, logic between the client 30 of front end and service server 21, the present embodiment transaction processing system is improved 100 front end adaptation ability.
Optionally, proxy server group 10 is the server group based on netty frame.
Netty frame is that the java provided by JBOSS (application server of the open source code based on J2EE) is opened Source frame.Netty frame provides asynchronous, event driven web application frame and tool, quickly to develop high property Energy, 30 program of the network server of high reliability and client.That is, Netty is 30 He of client based on NIO 20 end programming framework of service server group.Netty absorbs various protocols, and (various binary systems are literary including FTP, SMTP, HTTP etc. This agreement) realization experience, and realizing the performance that its application is also assured while being easy to develop, such as stability and flexible Property.
It is understood that proxy server group 10, which is also possible to other, can provide the server group of routing function, this Apply embodiment herein with no restrictions.
Please continue to refer to Fig. 2, optionally, in the present embodiment, proxy server group 10 may include multiple proxy servers 11, The corresponding multiple service servers 21 being coupled in one group of service server group 20 of each proxy server 11, will be from visitor First data at family end 30 are sent at least one of corresponding service server group 20 and will be from service servers Second data of at least one of group 20 are sent to corresponding client 30.
Multiple proxy servers 11 be in " multiple " indicate two or more.
Each proxy server 11 is for will be sent to corresponding business from the first data of client 30 It at least one of server group 20 and will be sent to from the second data of at least one of service server group 20 Corresponding client 30.
Each client 30 can be communicated to connect with multiple proxy servers 11, for example, if certain client 30 is downloaded simultaneously Game APP and live streaming APP, transaction processing system 100 include game service server group 20 and live broadcast service server simultaneously Group 20, then the client 30 can respectively with corresponding game service server group 20 and the live broadcast service server group 20 of being coupled to Two proxy servers 11 communicate to connect, to obtain game service data and live broadcast service data.
By making proxy server group 10 include multiple proxy servers 11, and multiple proxy servers 11 and multiple business Server group 20 corresponds, and client 30 is directly connect with proxy server 11, the then basis of proxy server 11 The access request of client 30 is forwarded to the service server group 20 of rear end, so as to improve number by different types of service According to the efficiency of processing, simplify the deployment of front and back end.
Optionally, multiple proxy servers 11 can be the server based on netty frame.
It should be noted that the term " first " and " second " in the present embodiment are used for description purposes only, and cannot understand For indication or suggestion relative importance or implicitly indicate the quantity of indicated technical characteristic.Define as a result, " first " and The feature of " second " can explicitly or implicitly include at least one of the features.In addition, term " the packet in the embodiment of the present application Include " and " having " and their any deformations, it is intended that it covers and non-exclusive includes.
The present embodiment can be combined with above-mentioned 100 any embodiment of the application transaction processing system.
Referring to Fig. 3, Fig. 3 is the structural schematic diagram of the another embodiment of the application transaction processing system.
It is 3 in Fig. 3 with client 30 to be illustrated.
In the present embodiment, proxy server group 10 includes front-end proxy agent server group 10a and back-end proxy server group 10b, front-end proxy agent server group 10a include the multiple front-end proxy agent server 11a being mutually coupled, back-end proxy server group 10b includes the multiple back-end proxy server 11b being mutually coupled, the quantity of multiple front-end proxy agent server 11a and multiple rear ends The quantity of proxy server 11b is identical and corresponds coupling;
Wherein, for coupling client 30, each back-end proxy server 11b is used for each front-end proxy agent server 11a Couple multiple service servers 21 of a service server group 20.
By making proxy server group 10 include front-end proxy agent server group 10a and back-end proxy server group 10b, and it is every A front-end proxy agent server 11a is for coupling client 30, and each back-end proxy server 11b is for coupling a business service Multiple service servers 21 of device group 20, so that transaction processing system 100 provided by the present embodiment, not only front end (client 30) it can decouple, rear end (service server 21) also can independently decouple namely 30 needs of client consider and front-end proxy agent service The logical adaptation of device 11a, without the concern for the service logic with back-end proxy server 11b and service server 21, simultaneously Back-end proxy server 11b couples service server 21 and front-end proxy agent server 11a, service server 21 can also be as clients The equally access service processing system 100 at any time of end 30, to further improve the data processing effect of transaction processing system 100 Rate, while improving the stability of transaction processing system 100.
Optionally, front-end proxy agent server 11a and back-end proxy server 11b can be the service based on netty frame Device.
The present embodiment can be combined with above-mentioned 100 any embodiment of the application transaction processing system.
Based on this, the application also provides a kind of method for processing business.Referring to Fig. 4, Fig. 4 the application method for processing business one The flow diagram of embodiment.
In the present embodiment, method for processing business the following steps are included:
S120: receiving the feedback that processing business and updates are carried out from least one of multiple service servers, plurality of Service server corresponds to identical business.
Optionally, multiple service servers 21 belong to same service server group 20, corresponding identical business.
S140: at least one that processing business and updates are carried out in multiple service servers is determined.
Optionally, proxy server group 10 determines at least one that processing business and updates are carried out in multiple service servers 21.
One of multiple service servers 21 produce preset state information when carrying out processing business and updates, and will preset Status information is sent to proxy server group 10;It is multiple that proxy server group 10 is used for the determination after receiving preset state information At least one of processing business and updates is carried out in service server 21.
S160: data interaction is carried out at least another one in multiple service servers.
Optionally, at least another one in proxy server group 10 and multiple service servers 21 carries out data interaction.
Referring to Fig. 5, Fig. 5 is the flow diagram of another embodiment of the application method for processing business.It is taken in Fig. 5 with business Device group 20 of being engaged in includes 2 service servers A and B, for 30 quantity of client is 1.
For example, if service server group 20 includes two service servers A and B, and service server A is as main business Business server 21, service server B is as auxiliary service server 21, when receiving the access request of the transmission of client 30, generation It manages server group 10 and preferentially carries out data interaction with service server A, after service server group 20 receives processing business and updates request, Determine that the i.e. auxiliary service server 21 of service server B preferentially carries out processing business and updates and generates the first preset state information, first is pre- If status information includes that the service server 21 for needing to be updated is the information of service server B, at this point, due to agency service Device group 10 is connect with service server A, so the determination after receiving the first preset state information of proxy server group 10 is not required to Switch data interactive object is wanted, i.e. proxy server group 10 continues to carry out data interaction with service server A, in service server After B carries out processing business and updates, service server A, which is determined, to start to carry out processing business and updates and generates the second preset state information, the Two preset state information include that the service server 21 for needing to be updated is the information of service server A, at this point, due to agency Server group 10 is connect with service server A, so proxy server group 10 determines after receiving the second preset state information Switch data interactive object is needed, then proxy server group 10, which is switched to, carries out data interaction with service server B.Because of switching Time used is extremely short, therefore during switch data interactive object, proxy server group 10 can keep such as client 30 data interactions to service server A sent, until continuing according to access request after the completion of switching to service server B It accesses, to realize, service server group 20 will not stop servicing in handoff procedure.
Further, since service server A is main subservice server 21, under normal circumstances, proxy server group 10 Data interaction preferentially is carried out with service server A, so when after service server B carries out processing business and updates, business service Device A produces third preset state information, and third preset state information includes the information that service server A processing business and updates are completed, At this point, since proxy server group 10 is just carrying out data interaction with service server B, so proxy server group 10 is receiving It is determined after the feedback of service server A progress processing business and updates completion and needs data interaction object, i.e., proxy server group 10 switches Data interaction is carried out to service server A.During switch data interactive object, proxy server group 10 can keep example As the data interaction to service server B that client 30 is sent continues until completing after the completion of switching according to access request pair Service server A accesses, and to realize, service server group 20 will not stop servicing in handoff procedure.
Method for processing business provided by the embodiment of the present application, by receiving in multiple service servers 21 extremely After few one carries out the feedback of processing business and updates, at least one that processing business and updates are carried out in multiple service servers 21 is determined, and with At least another one in multiple service servers 21 carries out data interaction, to guarantee in business procession in multiple industry While one of them being engaged in server 21 is updated, proxy server group 10 always can be at least another one therein Data interaction is carried out, so that service server group 20 can be with continual service when carrying out processing business and updates, the method increase industry Be engaged in processing system 100 stability, and but also client 30 can keep with proxy server group 10 carry out data interaction, It is disconnected without showing, to avoid the normal use of interference user.
The method for processing business of the present embodiment can be combined with the method for processing business in a upper embodiment.
The present embodiment is executing subject with proxy server group 10, about more function and contents, refers to the application Description in any of the above-described embodiment of transaction processing system 100, details are not described herein.
It should be noted that the term " first ", " second " and " third " in the present embodiment are used for description purposes only, without It can be interpreted as indication or suggestion relative importance or implicitly indicate the quantity of indicated technical characteristic.Define as a result, " the One ", the feature of " second " and " third " can explicitly or implicitly include at least one of the features.In addition, the application is implemented Term " includes " and " having " and their any deformations in example, it is intended that cover and non-exclusive include.
In the present embodiment, the sequence of step S120 to S160 is the description order in the present embodiment, is not limited to this The sequence of the method for embodiment in commission.Under the premise of can be realized this programme, certain steps can be with reversed order.
Based on this, the application also provides a kind of server.Referring to Fig. 6, Fig. 6 is the structure of the application server example Schematic diagram.
In the present embodiment, server 200 includes processor 210, telecommunication circuit 230 and memory 220.Telecommunication circuit 230 Processor 210 is respectively coupled to memory 220.
Telecommunication circuit 230 is the interface that server 200 is connect with external device, for server 200 and external device Interaction, is referred to as " transceiver " or transmission circuit.
Processor 210 be used for by telecommunication circuit 230 receive from least one of multiple service servers 21 into The feedback of row processing business and updates, the corresponding identical business of plurality of service server 21.
Processor 210 is used to determine at least one that processing business and updates are carried out in multiple service servers 21.
Processor 210 is used to carry out data by at least another one in telecommunication circuit 230 and multiple service servers 21 Interaction.
Wherein, processor 210 can also be known as CPU (Central Processing Unit, central processing unit).Place Reason device 210 can be a kind of IC chip, the processing capacity with signal.Processor 210 can also be general processor 210, digital signal processor (DSP) 210, specific integrated circuit (ASIC), ready-made programmable gate array (FPGA) or other Programmable logic device, discrete gate or transistor logic, discrete hardware components.General processor 210 can be micro- place Reason device 210 or the processor 210 are also possible to any conventional processor 210 etc..
Memory 220 is stored with program, and program is performed the method for processing business that can be realized in above-described embodiment.Its In, which can be stored in the form of software products in above-mentioned memory 220, including some instructions are used so that at one Manage all or part of the steps that device 210 executes each embodiment method of the application.
Memory 220 is in computer storage 220 for storing the media of certain discontinuous physical quantity.And it above-mentioned deposits Reservoir 220 include: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), the various media that can store program code such as magnetic or disk.
Optionally, server 200 provided by the present embodiment can play the function of routing, so server 200 can also Referred to as " light server ", i.e., relative to service server 20, function is simpler, it is however generally that, provided by the present embodiment Server 200, which can be not used in, carries out specific business processing.
Optionally, server 200 is the server based on netty frame.
Netty frame is the java Open Framework provided by JBOSS.Netty frame provides asynchronous, event-driven Web application frame and tool, quickly to develop 30 journey of network server and client of high-performance, high reliability Sequence.That is, Netty is the 10 end programming framework of client 30 and service server based on NIO.Netty is absorbed The realization experience of various protocols (the various Binary Text agreements such as including FTP, SMTP, HTTP), and it is easy to exploitation realizing The performance for also assuring its application simultaneously, such as stability and retractility.
It is understood that server 200 provided by the present embodiment, which is also possible to other, can provide routing function Server 200, the application is herein with no restrictions.
Server 200 provided by the present embodiment can be used as the agency in any of the above-described 100 embodiment of transaction processing system Proxy server in server group 10.
The above is only presently filed embodiments, are not intended to limit the scope of the patents of the application, all to utilize the application Equivalent structure or equivalent flow shift made by specification and accompanying drawing content is applied directly or indirectly in other relevant technologies Field similarly includes in the scope of patent protection of the application.

Claims (11)

1. a kind of transaction processing system characterized by comprising
Proxy server group;
Service server group, for coupling with the proxy server group, the service server group includes multiple business services Device;
Wherein, when carrying out processing business and updates, at least one of the multiple service server is used to carry out the processing business and updates, At least another one in the multiple service server is used to carry out data interaction with the proxy server group.
2. transaction processing system according to claim 1, which is characterized in that
At least one of the multiple service server is used for and the proxy server group after processing business and updates Data interaction is carried out, other service servers for not carrying out the processing business and updates successively carry out institute in the multiple service server State processing business and updates.
3. transaction processing system according to claim 2, which is characterized in that
At least one of the multiple service server generates preset state information when carrying out the processing business and updates, and will The preset state information is sent to the proxy server group;The proxy server group is for receiving the default shape It is switched to after state information and carries out data interaction at least another one in the multiple service server.
4. transaction processing system according to any one of claims 1 to 3, which is characterized in that
The transaction processing system includes service server group described in multiple groups, and the corresponding business of service server described in multiple groups is at least Part is different;The proxy server group is respectively coupled to service server group described in multiple groups.
5. transaction processing system according to claim 4, which is characterized in that
The transaction processing system further comprises client, and the client couples the proxy server group;The client End for sending the first data to the proxy server group, the proxy server be used to for first data being sent to The service server group of first Data Matching;The service server group generates after receiving first data Two data, and second data are sent to the corresponding client by the proxy server group.
6. transaction processing system according to claim 4, which is characterized in that
The proxy server group includes multiple proxy servers, each proxy server is corresponding be coupled to one group described in business clothes At least one of device group of being engaged in, will be sent to the corresponding business service from first data of the client It at least one of device group and will be sent to from second data of at least one of the service server group The corresponding client.
7. service server according to claim 4, it is characterised in that:
The proxy server group includes front-end proxy agent server group and back-end proxy server group, the front-end proxy agent server Group includes the multiple front-end proxy agent servers being mutually coupled, and the back-end proxy server includes the multiple rear end generations being mutually coupled Server is managed, the quantity of the multiple front-end proxy agent server is identical with the quantity of the multiple back-end proxy server and one by one Corresponding coupling;
Wherein, for coupling the client, each back-end proxy server is used for each front-end proxy agent server Couple the multiple service server of a service server group.
8. transaction processing system according to claim 1, which is characterized in that
The proxy server group is the server group based on netty frame.
9. transaction processing system according to claim 1, which is characterized in that
At least one of the multiple service server be used as main business server, be preferentially used for the proxy server into Row data interaction;At least another one in the multiple service server is preferentially used for described in progress as auxiliary service server Processing business and updates.
10. a kind of method for processing business characterized by comprising
The feedback that processing business and updates are carried out from least one of multiple service servers is received, wherein the multiple business takes Business device corresponds to identical business;
Determine at least one that the processing business and updates are carried out in the multiple service server;
Data interaction is carried out at least another one in the multiple service server.
11. a kind of server, which is characterized in that including processor, telecommunication circuit and memory, the telecommunication circuit and described deposit Reservoir is respectively coupled to the processor;
The processor, which is used to receive by the telecommunication circuit, carries out industry from least one of multiple service servers The feedback that business updates, wherein the multiple service server corresponds to identical business;
The processor is for determining at least one for carrying out the processing business and updates in the multiple service server;
The processor is used to carry out data by at least another one in the telecommunication circuit and the multiple service server Interaction.
CN201910545056.8A 2019-06-21 2019-06-21 Transaction processing system, method for processing business and server Pending CN110505269A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910545056.8A CN110505269A (en) 2019-06-21 2019-06-21 Transaction processing system, method for processing business and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910545056.8A CN110505269A (en) 2019-06-21 2019-06-21 Transaction processing system, method for processing business and server

Publications (1)

Publication Number Publication Date
CN110505269A true CN110505269A (en) 2019-11-26

Family

ID=68585920

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910545056.8A Pending CN110505269A (en) 2019-06-21 2019-06-21 Transaction processing system, method for processing business and server

Country Status (1)

Country Link
CN (1) CN110505269A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112422609A (en) * 2020-08-31 2021-02-26 上海哔哩哔哩科技有限公司 Programming device and service request connection method

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101309167A (en) * 2008-06-27 2008-11-19 华中科技大学 Disaster allowable system and method based on cluster backup
CN102299904A (en) * 2010-06-23 2011-12-28 阿里巴巴集团控股有限公司 System and method for realizing service data backup
JP2012177990A (en) * 2011-02-25 2012-09-13 Nippon Telegr & Teleph Corp <Ntt> Service provision system and operation method of the same
CN104426976A (en) * 2013-09-03 2015-03-18 方正宽带网络服务股份有限公司 Online updating device and online updating method for virtual server cluster
CN106201561A (en) * 2015-04-30 2016-12-07 阿里巴巴集团控股有限公司 The upgrade method of distributed caching cluster and equipment
CN106888233A (en) * 2015-12-15 2017-06-23 北京新媒传信科技有限公司 Data update system and method
CN107277086A (en) * 2016-04-06 2017-10-20 阿里巴巴集团控股有限公司 Transaction processing system, method for processing business and service updating method
CN107872538A (en) * 2017-12-07 2018-04-03 浙江大华技术股份有限公司 Decouple method for processing business, reverse proxy and the service server of TCP length connections
CN108055168A (en) * 2017-12-29 2018-05-18 广州品唯软件有限公司 A kind of http protocol debuggings systems, devices and methods

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101309167A (en) * 2008-06-27 2008-11-19 华中科技大学 Disaster allowable system and method based on cluster backup
CN102299904A (en) * 2010-06-23 2011-12-28 阿里巴巴集团控股有限公司 System and method for realizing service data backup
JP2012177990A (en) * 2011-02-25 2012-09-13 Nippon Telegr & Teleph Corp <Ntt> Service provision system and operation method of the same
CN104426976A (en) * 2013-09-03 2015-03-18 方正宽带网络服务股份有限公司 Online updating device and online updating method for virtual server cluster
CN106201561A (en) * 2015-04-30 2016-12-07 阿里巴巴集团控股有限公司 The upgrade method of distributed caching cluster and equipment
CN106888233A (en) * 2015-12-15 2017-06-23 北京新媒传信科技有限公司 Data update system and method
CN107277086A (en) * 2016-04-06 2017-10-20 阿里巴巴集团控股有限公司 Transaction processing system, method for processing business and service updating method
CN107872538A (en) * 2017-12-07 2018-04-03 浙江大华技术股份有限公司 Decouple method for processing business, reverse proxy and the service server of TCP length connections
CN108055168A (en) * 2017-12-29 2018-05-18 广州品唯软件有限公司 A kind of http protocol debuggings systems, devices and methods

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112422609A (en) * 2020-08-31 2021-02-26 上海哔哩哔哩科技有限公司 Programming device and service request connection method

Similar Documents

Publication Publication Date Title
CN109688235B (en) Virtual network method for processing business, device and system, controller, storage medium
EP3720050A1 (en) Method and apparatus for deploying network slice
WO2019001421A1 (en) Method, device, and computer readable storage medium for managing network slice
CN102137163B (en) A kind of method of multimedia file shared system and shared multimedia file thereof
JP6275693B2 (en) Binding CRUD type protocol in distributed agreement protocol
CN103430489B (en) Document down loading method, device and system in content distributing network
CN102945175A (en) Terminal software online upgrading system and method based on cloud computing environment
CN109600388A (en) Data transmission method, device, computer-readable medium and electronic equipment
US20220201341A1 (en) Method, apparatus and device for game live-streaming
JP7476327B2 (en) AUDIO DATA PROCESSING METHOD, DELAY TIME ACQUISITION METHOD, SERVER, AND COMPUTER PROGRAM
JP5132825B1 (en) Game management server device, game management server device program, and terminal device program
CN107147921A (en) Based on section and the intelligence CDN video playback accelerated methods dispatched and equipment
CN110327621A (en) For the matched method and apparatus of network game client
CN109450701A (en) A kind of virtual switch switching method, device, host and storage medium
CN104010228A (en) Apparatus and method for level-based self-adjusting peer-to-peer media streaming
CN109874047A (en) Living broadcast interactive method, apparatus and system
CN106101184B (en) A kind of document down loading method and playback equipment
CN107547591A (en) Upgrade server, set top box, set top box upgrading file delivery method and system
CN113398595B (en) Scene resource updating method and device, storage medium and electronic device
CN110505269A (en) Transaction processing system, method for processing business and server
CN106576068B (en) A kind of software security verification method, equipment and system
CN102833592B (en) A kind of media content dispatching method, system and equipment
CN106507195A (en) Method based on the intelligent television application handover management of linux system
CN104243469A (en) Playing control method, device and system
CN104780591B (en) Business interoperability implementation method, device, system and relevant device between terminal device

Legal Events

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

Application publication date: 20191126

RJ01 Rejection of invention patent application after publication