CN105897931B - Network exempts from method of flow control and device - Google Patents

Network exempts from method of flow control and device Download PDF

Info

Publication number
CN105897931B
CN105897931B CN201610414736.2A CN201610414736A CN105897931B CN 105897931 B CN105897931 B CN 105897931B CN 201610414736 A CN201610414736 A CN 201610414736A CN 105897931 B CN105897931 B CN 105897931B
Authority
CN
China
Prior art keywords
service condition
user identifier
storage system
business
adjacent next
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.)
Active
Application number
CN201610414736.2A
Other languages
Chinese (zh)
Other versions
CN105897931A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610414736.2A priority Critical patent/CN105897931B/en
Publication of CN105897931A publication Critical patent/CN105897931A/en
Application granted granted Critical
Publication of CN105897931B publication Critical patent/CN105897931B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • H04L41/0836Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability to enhance reliability, e.g. reduce downtime
    • 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/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention relates to a kind of networks to exempt from method of flow control and device.The method includes:Obtain service condition querying condition;The user identifier for meeting the service condition querying condition is filtered out from the first storage system according to the service condition querying condition;From the adjacent next service condition for obtaining service condition in the service condition querying condition in predefined work flow state machine;The business datum of the user identifier is obtained according to business platform of the user identifier corresponding to adjacent next service condition;Judge that the user identifier completes the business corresponding to adjacent next service condition according to the business datum, it then will be in the user identifier, adjacent next service condition and corresponding service data updating to the second storage system, it, will be in the user identifier, adjacent next service condition and corresponding service data updating to first storage system if being successfully updated in second storage system.Avoid operation flow interruption.

Description

Network exempts from method of flow control and device
Technical field
The present invention relates to network application fields, exempt from method of flow control and device more particularly to a kind of network.
Background technology
With the development of network technology and computer technology, more and more users' using terminal accesses network, passes through end End access network need consumption network flow, in order to attract user, some ISPs provide some exempt from circulation road for The user for completing the service of order uses.
Traditional order mode of exempting to flow is after detecting that user completes payment, and execution exempts to flow order business, exempts to flow ordering industry After the completion of business, the client request server-side on mobile terminal issues the nodal information for exempting from stream, however, payment transaction, exempting from stream and ordering Purchase business performance places one's entire reliance upon the notice of business platform, once notice is lost, then operation flow will be interrupted, and cause to exempt from It flows order business to interrupt, can not continue.
Invention content
Based on this, it is necessary to which, for traditional notice exempted to flow order mode and depend on business platform, notice is easy when losing The problem of causing operation flow to be interrupted, provides a kind of network and exempts from method of flow control, is avoided that the interruption of operation flow.
In addition, there is a need to a kind of network of offer exempts from flow control device, it is avoided that the interruption of operation flow.
A kind of network exempts from method of flow control, including:
Obtain service condition querying condition;
It is filtered out from the first storage system according to the service condition querying condition and meets the service condition inquiry item The user identifier of part;
From obtained in predefined work flow state machine service condition in the service condition querying condition it is adjacent under One service condition;
User's mark is obtained according to business platform of the user identifier corresponding to adjacent next service condition The business datum of knowledge;
Judge that the user identifier completes corresponding to adjacent next service condition according to the business datum Business, then by the user identifier, adjacent next service condition and corresponding service data updating to the second storage system In, if being successfully updated in second storage system, by the user identifier, adjacent next service condition and correspondence Service data updating to first storage system in.
A kind of network exempts from flow control device, including:
Querying condition acquisition module, for obtaining service condition querying condition;
Filtering module meets the industry for being filtered out from the first storage system according to the service condition querying condition The user identifier for status inquiry condition of being engaged in;
State acquisition module, for being obtained in the service condition querying condition from predefined work flow state machine Adjacent next service condition of service condition;
Business datum acquisition module, for the industry according to the user identifier corresponding to adjacent next service condition Business platform obtains the business datum of the user identifier;
Update module, for judging that the user identifier completes adjacent next business according to the business datum Business corresponding to state then arrives the user identifier, adjacent next service condition and corresponding service data updating In second storage system, if being successfully updated in second storage system, by the user identifier, adjacent next industry In business state and corresponding service data updating to first storage system.
Above-mentioned network exempts from method of flow control and device, is filtered out from the first storage system by service condition querying condition Meet the user identifier of service condition querying condition, and obtain corresponding business datum, judges that user is complete according to business datum At the business corresponding to adjacent next service condition, then by user identifier, adjacent next service condition and corresponding business number It according to update to the second storage system, then updates into the first storage system, avoids operation flow interruption.
Description of the drawings
Fig. 1 is the application environment schematic diagram that network exempts from method of flow control and device in one embodiment;
Fig. 2A is the internal structure schematic diagram of terminal in one embodiment;
Fig. 2 B are the internal structure schematic diagram of server in one embodiment;
Fig. 3 is the flow chart that network exempts from method of flow control in one embodiment;
Fig. 4 is the flow chart that network exempts from method of flow control in another embodiment;
Fig. 5 is the application schematic diagram that network exempts from method of flow control in one embodiment;
Fig. 6 is the structure diagram that network exempts from flow control device in one embodiment;
Fig. 7 is the structure diagram that network exempts from flow control device in another embodiment;
Fig. 8 is the structure diagram that network exempts from flow control device in another embodiment.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Fig. 1 is the application environment schematic diagram that network exempts from method of flow control and device in one embodiment.As shown in Figure 1, should Application environment includes terminal 110 and server 120.It is equipped in terminal 110 and exempts from stream order client, installed on server 120 Have server-side, payment platform, exempt from levelling platform etc., and it is provided with the first storage system.Terminal 110 passes through network with server 120 It is communicated.In addition, the first storage system may be alternatively located in the first storage system equipment.Payment platform and exempts from levelling platform and be alternatively Other servers.First storage system refers to being used for permanent storage data, and the data stored will not be because of restarting, closes etc. clearly It removes, data can be updated, and the storage system of a plurality of data can be screened simultaneously according to querying condition.
Fig. 2A is the internal structure schematic diagram of terminal (or electronic equipment etc.) in one embodiment.As shown in Figure 2 A, the end End includes the processor connected by system bus, non-volatile memory medium, built-in storage, network interface, display screen and defeated Enter device.Wherein, the non-volatile memory medium of terminal is stored with operating system, further includes that a kind of network exempts from flow control device, The network exempts from flow control device and exempts from method of flow control for realizing a kind of network.The processor calculates and controls energy for providing Power supports the operation of entire terminal.Built-in storage in terminal is that the network in non-volatile memory medium exempts from flow control device Operation environment is provided, computer-readable instruction can be stored in the built-in storage, the computer-readable instruction is by the processing When device executes, a kind of network of the processor execution may make to exempt from method of flow control.Network interface is used to carry out net with server Network communicates.The display screen of terminal can be liquid crystal display or electric ink display screen etc., and input unit can be display screen The touch layer of upper covering can also be the button being arranged in terminal enclosure, trace ball or Trackpad, can also be external key Disk, Trackpad or mouse etc..The terminal can be mobile phone, tablet computer or personal digital assistant or Wearable etc..This Field technology personnel are appreciated that structure shown in Fig. 2A, only with the block diagram of the relevant part-structure of application scheme, The restriction for the terminal being applied thereon to application scheme is not constituted, specific terminal may include more than as shown in the figure Or less component, it either combines certain components or is arranged with different components.
Fig. 2 B are the internal structure schematic diagram of server (or high in the clouds etc.) in one embodiment.As shown in Figure 2 B, the service Device includes processor, non-volatile memory medium, built-in storage and the network interface connected by system bus.Wherein, the clothes The non-volatile memory medium of business device is stored with operating system, database and network and exempts from flow control device, is stored in database User identifier, service condition and corresponding business datum, the network exempt from flow control device for realizing one suitable for server Kind network exempts from method of flow control.The processor of the server supports the fortune of entire server for providing calculating and control ability Row.The operation that the built-in storage of the server exempts from flow control device for the network in non-volatile memory medium provides environment, should Computer-readable instruction can be stored in built-in storage, when which is executed by the processor, may make institute It states a kind of network of processor execution and exempts from method of flow control.The network interface of the server with external terminal for passing through net according to this Network connection communication.Server can be realized with the server cluster of the either multiple server compositions of independent server.This Field technology personnel are appreciated that structure shown in Fig. 2 B, only with the block diagram of the relevant part-structure of application scheme, The restriction for the server being applied thereon to application scheme is not constituted, specific server may include than as shown in the figure More or fewer components either combine certain components or are arranged with different components.
Fig. 3 is the flow chart that network exempts from method of flow control in one embodiment.As shown in figure 3, a kind of network exempts from flow control Method is run on server, including:
Step 302, service condition querying condition is obtained.
In the present embodiment, service condition refers to that user carries out state in which during service order.Service condition can wrap Include preliminary examination state, pay status, subscription status, order completion status etc..
Preliminary examination state refers to verifying user to have user's state in which after the permission of order business.
Pay status refers to judging that user completes user's state in which after payment.
Subscription status refers to receiving user to initiate user's state in which after purchase service request.
It refers to after obtaining ordering result after handling the purchase service request residing for user to order completion status State.It can be to order success status or order status of fail to order completion status.
Service condition querying condition can be configured according to user demand.Service condition querying condition can be to filter out business State is the user of preliminary examination state, filters out service condition be pay status user, it is subscription status to filter out service condition Deng.
Client in terminal obtains service condition querying condition input by user, and will be on the service condition querying condition Pass to server.
It refers to free flow to exempt from stream.
Step 304, it is filtered out from the first storage system according to the service condition querying condition and meets the service condition and look into The user identifier of inquiry condition.
In the present embodiment, the first storage system is for storing user identifier, service condition and business datum etc..First storage System is that the first storage system of the batch user data under querying condition can be filtered out according to the querying condition of user.First deposits Storage system can be MYSQL database or ORACLE databases or DB2 database etc..
First storage system refers to being used for permanent storage data, the data stored will not because of the removings such as restarting, close, Data can be updated, and the storage system of a plurality of data can be screened simultaneously according to querying condition.
User identifier is the character string etc. for uniquely indicating user identity.The character string may include letter, number and word It is one or more in symbol etc..
Step 306, from obtaining service condition in the service condition querying condition in predefined work flow state machine Adjacent next service condition.
In the present embodiment, the work flow in predefined work flow state machine includes preliminary examination state, payment shape successively State, subscription status and order completion status.
Corresponding state value can be respectively configured to preliminary examination state, pay status, subscription status and order completion status, use State value indicates corresponding state.Such as the state value of preliminary examination state is 1, the state value of pay status is 2, the shape of subscription status State value is 3, and it is 4 to order and order the state value of status of fail in completion status, and the state value for ordering success status is 5 etc., unlimited In this.
Adjacent next service condition refers to according to adjacent next service condition of current traffic state in work flow, such as Service condition is preliminary examination state, then adjacent next service condition is pay status.
Step 308, the business platform according to the user identifier corresponding to adjacent next service condition obtains the user The business datum of mark.
In the present embodiment, business platform refers to the server etc. for providing corresponding service function and collecting business datum, such as Payment platform exempts from levelling platform etc..Payment platform carries out payment data caused by payment transaction for collecting user.Exempt from levelling Platform carries out exempting to flow caused by order business exempting from flow data for collecting user.
Recite the corresponding business datum of each user identifier on business platform.Server-side is according to user identifier from business Platform obtains corresponding business datum.
In one embodiment, before executing certain business, first check whether current traffic state value is right by the business The previous value for the service condition value answered, if so, the business is executed, if it is not, not executing then.If certain business is subscription status industry Business, then the service condition corresponding to current traffic state value is pay status, then the subscription status business is executed, if current business Service condition corresponding to state value is preliminary examination state, then does not execute the subscription status business.
Step 310, judge that the user identifier completes corresponding to adjacent next service condition according to the business datum Business, then by the user identifier, adjacent next service condition and corresponding service data updating to the second storage system, If being successfully updated in second storage system, by the user identifier, adjacent next service condition and corresponding business number According in update to first storage system.
In the present embodiment, the second storage system is a kind of caching system of key-value (key-value).Second storage system Corresponding key assignments can be found according to keyword.First by user identifier, adjacent next service condition and corresponding business datum It updates into the second storage system, then updates into the first storage system and can guarantee in the first storage system and the second storage system The consistency of data.
Above-mentioned network exempts from method of flow control, is filtered out from the first storage system by service condition querying condition and meets industry The user identifier for status inquiry condition of being engaged in, and corresponding business datum is obtained, judge that user completes phase according to business datum Business corresponding to adjacent next service condition, then by user identifier, adjacent next service condition and corresponding service data updating It to the second storage system, then updates into the first storage system, avoids operation flow interruption, and data are first updated to second Storage system, then update into the first storage system, it ensure that the consistency of data in storage system and the first storage system, lead to It crosses service condition inquiry and may filter that user does not complete service condition in the first storage system, can continue to execute service condition, directly It is completed to operation flow.
In one embodiment, this is by the user identifier, adjacent next service condition and corresponding service data updating Include to the step in first storage system:The equipment rope where corresponding first storage system is obtained according to the user identifier Draw;By user identifier, adjacent next service condition and corresponding service data updating to the corresponding first storage system institute Equipment index in the equipment where corresponding first storage system.
In the present embodiment, the first storage system divides table strategy to be stored using a point library.First storage system can be by multiple The cluster of the equipment storage machine composition of first storage system, one first storage is obtained according to user identifier by discrete logarithm The equipment index of equipment where system, by corresponding to user identifier service condition and the storage of corresponding business datum arrive the equipment In equipment where the first corresponding storage system of index.It is stored, can be reduced respectively by multiple first storage systems One the first storage system synchronizes excessive data and causes synchronization delay.
In one embodiment, above-mentioned network exempts from method of flow control and further includes:Judge the user according to the business datum Mark does not complete the business corresponding to adjacent next service condition, then sends and do not complete corresponding to adjacent next service condition Business prompt message to the user identifier where client.
In the present embodiment, the prompt message for sending the business corresponding to adjacent next service condition that do not complete is marked to user Client where knowing, the client receive user identifier and are operated accordingly according to prompt message, and operation is generated Data be sent to the corresponding business platform of the business, by business platform according to operation generate data verification user whether complete The business.
As shown in figure 4, in one embodiment, above-mentioned network exempts from method of flow control and further includes:
Step 402, it receives the nodal information of exempting to flow that client is initiated and obtains request.
In the present embodiment, server-side receives the nodal information of exempting to flow that client is initiated and obtains request, this exempts to flow nodal information It obtains in request and carries user identifier.
Step 404, exempt from the user identifier in stream nodal information acquisition request according to this to obtain corresponding to the user identifier Service condition value.
In one embodiment, exempt to flow the business obtained in nodal information acquisition request corresponding to the user identifier according to this The step of state value includes:Exempt from stream nodal information acquisition request according to this and obtains the user identifier institute from second storage system Corresponding service condition value.
In the present embodiment, the service condition value corresponding to user identifier is obtained from the second storage system, because of the second storage The service condition value stored in system belongs to newest service condition value, therefore can accurately reflect the user corresponding to user identifier The service condition being presently in.
Step 406, judge the service condition corresponding to the service condition value whether be in the work flow state machine most The latter service condition.
In the present embodiment, the correspondence of service condition value and service condition has been pre-established, it can according to service condition value Obtain corresponding service condition.Also the last one business shape in work flow state machine can be determined whether according to service condition value State.
Step 408, if the service condition corresponding to the service condition value is the last one in the work flow state machine Service condition, and the last one service condition is to order success status, then will exempt from stream nodal information and be handed down to the client.
In the present embodiment, client receive exempt from flow nodal information after, can according to exempt from flow nodal information use exempt from circulation road.
Above-mentioned network exempts from method of flow control, and the nodal information of exempting to flow for receiving client initiation obtains request, passes through judgement When going out the service condition corresponding to user identifier and being in the last one service condition, it will exempt to flow nodal information and be sent to the client End, facilitates client use to exempt from circulation road.
The realization process that network exempts from method of flow control is described with reference to a specific application scenarios.As shown in figure 5, the One storage system is the first storage systems of MYSQL, and business platform includes payment platform and exempts from levelling platform.User passes through in terminal Client application inputs user identifier login service end Server;Server-side verify the user identifier have order exempt from stream clothes After permission of being engaged in, client jumps to payment platform, obtains delivery operation of the user on payment platform;After the completion of payment, payment Payment result is sent to server-side by platform, and server-side is judged to have paid according to payment result, then to exempt from levelling platform order exempt from Service request is flowed, exempts from the complete stream subscription request of exempting from of stream platform processes and generates order as a result, being sent to server-side by result is ordered.Together When, server-side filters out the user identifier of preliminary examination state from the first storage systems of MYSQL, and user mark is pulled from payment platform Know corresponding business datum, judge whether to have paid, service condition is switched into pay status from preliminary examination state if having paid, it will Pay status and service data updating after update is to the second storage system, then update MYSQL first to the second storage system Storage system.Server-side filters out the user identifier of pay status from the first storage systems of MYSQL, and client obtains the user Identify to exempt from levelling platform initiate exempt from flow subscription request, receive exempt from flow platform response exempt from flow subscription request information, then will branch The state of paying switchs to subscription status, by subscription status and corresponding service data updating to the second storage system, when update is deposited to second After storage system, then update the first storage systems of MYSQL;Server-side filters out subscription status from the first storage systems of MYSQL User identifier, if from exempt from levelling platform pull the user identifier it is corresponding order as a result, order result be order successfully, will order Purchase state switchs to order success status, if it is to order to fail to order result, subscription status is switched to order status of fail, will be ordered Purchase success status or order status of fail and service data updating are to the second storage system, after update is to the second storage system, The first storage systems of MYSQL are updated again.
Client is exempted to flow nodal information to server-side request, and server-side inquires the industry of user identifier from the second storage system Business state value, determines whether the last one service condition according to the service condition value, if so, will exempt to flow nodal information transmission To client, client exempts from circulation road according to stream nodal information use is exempted from.
Fig. 6 is the structure diagram that network exempts from flow control device in one embodiment.As shown in fig. 6, a kind of network exempts from flow control Device processed, including querying condition acquisition module 602, filtering module 604, state acquisition module 606, business datum acquisition module 608 and update module 610.Wherein:
Querying condition acquisition module 602 is for obtaining service condition querying condition.
In the present embodiment, service condition refers to that user carries out state in which during service order.Service condition can wrap Include preliminary examination state, pay status, subscription status, order completion status etc..
Filtering module 604 meets the business for being filtered out from the first storage system according to the service condition querying condition The user identifier of status inquiry condition.
In the present embodiment, the first storage system is for storing user identifier, service condition and business datum etc..First storage System is that the first storage system of the batch user data under querying condition can be filtered out according to the querying condition of user.First deposits Storage system can be MYSQL database or ORACLE databases or DB2 database etc..
User identifier is the character string etc. for uniquely indicating user identity.The character string may include letter, number and word It is one or more in symbol etc..
State acquisition module 606 from predefined work flow state machine for obtaining in the service condition querying condition Adjacent next service condition of service condition.
In the present embodiment, the work flow in predefined work flow state machine includes preliminary examination state, payment shape successively State, subscription status and order completion status.
Corresponding state value can be respectively configured to preliminary examination state, pay status, subscription status and order completion status, use State value indicates corresponding state.Such as the state value of preliminary examination state is 1, the state value of pay status is 2, the shape of subscription status State value is 3, and it is 4 to order and order the state value of status of fail in completion status, and the state value for ordering success status is 5 etc., unlimited In this.
Adjacent next service condition refers to according to adjacent next service condition of current traffic state in work flow, such as Service condition is preliminary examination state, then adjacent next service condition is pay status.
Business datum acquisition module 608 is used for the business corresponding to adjacent next service condition according to the user identifier Platform obtains the business datum of the user identifier.
In the present embodiment, business platform refers to the server etc. for providing corresponding service function and collecting business datum, such as Payment platform exempts from levelling platform etc..Payment platform carries out payment data caused by payment transaction for collecting user.Exempt from levelling Platform carries out exempting to flow caused by order business exempting from flow data for collecting user.
Recite the corresponding business datum of each user identifier on business platform.Server-side is according to user identifier from business Platform obtains corresponding business datum.
Update module 610 is used to judge that the user identifier completes adjacent next service condition according to the business datum Corresponding business, then by the user identifier, adjacent next service condition and corresponding service data updating to the second storage In system, if being successfully updated in second storage system, by the user identifier, adjacent next service condition and corresponding In service data updating to first storage system.
In the present embodiment, the second storage system is a kind of caching system of key-value (key-value).First by user identifier, In adjacent next service condition and corresponding service data updating to the second storage system, then updating can into the first storage system Ensure the consistency of data in the first storage system and the second storage system.
Above-mentioned network exempts from flow control device, is filtered out from the first storage system by service condition querying condition and meets industry The user identifier for status inquiry condition of being engaged in, and corresponding business datum is obtained, judge that user completes phase according to business datum Business corresponding to adjacent next service condition, then by user identifier, adjacent next service condition and corresponding service data updating It to the second storage system, then updates into the first storage system, avoids operation flow interruption, and data are first updated to second Storage system, then update into the first storage system, ensure that the second storage system in the first storage system data it is consistent Property, it may filter that user does not complete service condition in the first storage system by service condition inquiry, service condition can be continued to hold Row, until operation flow is completed.
In one embodiment, update module 610 is additionally operable to obtain corresponding first storage system according to the user identifier The equipment at place indexes, and by user identifier, adjacent next service condition and corresponding service data updating to the correspondence The first storage system where equipment index in the equipment where corresponding first storage system.
In the present embodiment, the first storage system divides table strategy to be stored using a point library.First storage system can be by multiple The cluster of the equipment storage machine composition of first storage system, one first storage is obtained according to user identifier by discrete logarithm The equipment index of equipment where system, by corresponding to user identifier service condition and the storage of corresponding business datum arrive the equipment In equipment where the first corresponding storage system of index.It is stored, can be reduced respectively by multiple first storage systems One the first storage system synchronizes excessive data and causes synchronization delay.
Fig. 7 is the structure diagram that network exempts from flow control device in another embodiment.As shown in fig. 7, a kind of network exempts to flow Control device, in addition to including querying condition acquisition module 602, filtering module 604, state acquisition module 606, business datum acquisition Module 608 and update module 610 further include request receiving module 612, service condition value acquisition module 614, judgment module 616 With issue module 618.Wherein:
The nodal information of exempting to flow that request receiving module 612 is used to receive client initiation obtains request.
In the present embodiment, server-side receives the nodal information of exempting to flow that client is initiated and obtains request, this exempts to flow nodal information It obtains in request and carries user identifier.
Service condition value acquisition module 614 is used for should according to the user identifier acquisition for exempting to flow in nodal information acquisition request Service condition value corresponding to user identifier.
The service condition value acquisition module 614 be additionally operable to according to this exempt from flow nodal information obtain request in user identifier from The service condition value corresponding to the user identifier is obtained in second storage system.
Judgment module 616 is for judging whether the service condition corresponding to the service condition value is the work flow state machine In the last one service condition.
In the present embodiment, the correspondence of service condition value and service condition has been pre-established, it can according to service condition value Obtain corresponding service condition.Also the last one business shape in work flow state machine can be determined whether according to service condition value State.
If issue module 618 for the service condition corresponding to the service condition value be in the work flow state machine most The latter service condition, and the last one service condition is to order success status, then will exempt from stream nodal information and be handed down to the visitor Family end.
In the present embodiment, client receive exempt from flow nodal information after, can according to exempt from flow nodal information use exempt from circulation road.
Above-mentioned network exempts from method of flow control, and the nodal information of exempting to flow for receiving client initiation obtains request, passes through judgement When going out the service condition corresponding to user identifier and being in the last one service condition, it will exempt to flow nodal information and be sent to the client End, facilitates client use to exempt from circulation road.
Fig. 8 is the structure diagram that network exempts from flow control device in another embodiment.As shown in figure 8, a kind of network exempts to flow Control device, in addition to including querying condition acquisition module 602, filtering module 604, state acquisition module 606, business datum acquisition Module 608 and update module 610 further include sending module 620.Wherein:
Sending module 620 is used to judge that the user identifier does not complete adjacent next service condition according to the business datum Corresponding business then sends the prompt message for not completing the business corresponding to adjacent next service condition to the user identifier Corresponding client.
In other embodiments, a kind of network exempts from flow control device, it may include querying condition acquisition module 602, filter module Block 604, state acquisition module 606, business datum acquisition module 608, update module 610, request receiving module 612, business shape State value acquisition module 614, judgment module 616 issue arbitrary possible combination in module 618 and sending module 620.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a non-volatile computer and can be read In storage medium, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage is situated between Matter can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM) etc..
Several embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously Cannot the limitation to the scope of the claims of the present invention therefore be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention Protect range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (12)

1. a kind of network exempts from method of flow control, including:
Obtain service condition querying condition;
It is filtered out from the first storage system according to the service condition querying condition and meets the service condition querying condition User identifier;
From the adjacent next industry for obtaining service condition in the service condition querying condition in predefined work flow state machine Business state;
The user identifier is obtained according to business platform of the user identifier corresponding to adjacent next service condition Business datum;
Judge that the user identifier completes the business corresponding to adjacent next service condition according to the business datum, Then by the user identifier, adjacent next service condition and corresponding service data updating to the second storage system, if It is successfully updated in second storage system, then by the user identifier, adjacent next service condition and corresponding industry In data update to first storage system of being engaged in.
2. according to the method described in claim 1, it is characterized in that, it is described by the user identifier, adjacent next business State and corresponding service data updating include to the step in first storage system:
The equipment index where corresponding first storage system is obtained according to the user identifier;
By user identifier, adjacent next service condition and corresponding service data updating to equipment index corresponding the In equipment where one storage system.
3. according to the method described in claim 1, it is characterized in that, the method further includes:
It receives the nodal information of exempting to flow that client is initiated and obtains request;
The service condition corresponding to the user identifier is obtained according to the user identifier exempted from stream nodal information acquisition request Value;
Judge whether the service condition corresponding to the service condition value is the last one industry in the work flow state machine Business state;
If the service condition corresponding to the service condition value is the last one service condition in the work flow state machine, And the last one described service condition is to order success status, then will exempt from stream nodal information and be handed down to the client.
4. according to the method described in claim 3, it is characterized in that, exempting to flow the user in nodal information acquisition request according to described Identifying the step of obtaining the service condition value corresponding to the user identifier includes:
According to the user identifier exempted from during stream nodal information acquisition is asked the user is obtained from second storage system The corresponding service condition value of mark.
5. according to the method described in claim 1, it is characterized in that, the method further includes:
Judge that the user identifier does not complete the business corresponding to adjacent next service condition according to the business datum, It then sends and does not complete corresponding to the prompt message to the user identifier of the business corresponding to adjacent next service condition Client.
6. according to the method described in claim 1, it is characterized in that, the work flow of the work flow state machine includes successively Preliminary examination state, pay status, subscription status and order completion status.
7. a kind of network exempts from flow control device, which is characterized in that including:
Querying condition acquisition module, for obtaining service condition querying condition;
Filtering module meets the business shape for being filtered out from the first storage system according to the service condition querying condition The user identifier of state querying condition;
State acquisition module, for from obtaining business in the service condition querying condition in predefined work flow state machine Adjacent next service condition of state;
Business datum acquisition module, for flat according to business of the user identifier corresponding to adjacent next service condition Platform obtains the business datum of the user identifier;
Update module, for judging that the user identifier completes adjacent next service condition according to the business datum Corresponding business, then by the user identifier, adjacent next service condition and corresponding service data updating to second In storage system, if being successfully updated in second storage system, by the user identifier, adjacent next business shape In state and corresponding service data updating to first storage system.
8. device according to claim 7, which is characterized in that the update module is additionally operable to be obtained according to the user identifier Take the equipment index where corresponding first storage system, and by user identifier, adjacent next service condition and correspondence Service data updating index corresponding first storage system to the equipment where equipment on.
9. device according to claim 7, which is characterized in that described device further includes:
Request receiving module, the nodal information of exempting to flow for receiving client initiation obtain request;
Service condition value acquisition module, for exempting to flow the user identifier acquisition use in nodal information acquisition request according to The corresponding service condition value of family mark;
Judgment module, for judging whether the service condition corresponding to the service condition value is in the work flow state machine The last one service condition;
Module is issued, if being last in the work flow state machine for the service condition corresponding to the service condition value One service condition, and the last one described service condition is to order success status, then will exempt to flow nodal information be handed down to it is described Client.
10. device according to claim 9, which is characterized in that the service condition value acquisition module is additionally operable to according to institute The user identifier for exempting to flow in nodal information acquisition request is stated to obtain corresponding to the user identifier from second storage system Service condition value.
11. device according to claim 7, which is characterized in that described device further includes:
Sending module, for judging that the user identifier does not complete adjacent next service condition according to the business datum Corresponding business then sends the prompt message for not completing the business corresponding to adjacent next service condition to the user The corresponding client of mark.
12. device according to claim 7, which is characterized in that the work flow of the work flow state machine is wrapped successively It includes preliminary examination state, pay status, subscription status and orders completion status.
CN201610414736.2A 2016-06-14 2016-06-14 Network exempts from method of flow control and device Active CN105897931B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610414736.2A CN105897931B (en) 2016-06-14 2016-06-14 Network exempts from method of flow control and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610414736.2A CN105897931B (en) 2016-06-14 2016-06-14 Network exempts from method of flow control and device

Publications (2)

Publication Number Publication Date
CN105897931A CN105897931A (en) 2016-08-24
CN105897931B true CN105897931B (en) 2018-09-11

Family

ID=56729403

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610414736.2A Active CN105897931B (en) 2016-06-14 2016-06-14 Network exempts from method of flow control and device

Country Status (1)

Country Link
CN (1) CN105897931B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110149352B (en) * 2018-02-11 2021-07-27 腾讯科技(深圳)有限公司 Service request processing method and device, computer equipment and storage medium
CN114666841A (en) * 2020-12-22 2022-06-24 中国联合网络通信集团有限公司 Flow-free method and flow-free system for directional flow
CN113297516A (en) * 2021-04-27 2021-08-24 上海淇玥信息技术有限公司 Customer interaction interface generation method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101789009A (en) * 2010-01-26 2010-07-28 恒生电子股份有限公司 Method for processing business data, device and system
CN102098271A (en) * 2009-12-10 2011-06-15 华为技术有限公司 User information acquisition method, device and system
CN103516690A (en) * 2012-06-26 2014-01-15 阿里巴巴集团控股有限公司 Service processing state information query method and apparatus thereof
CN104715309A (en) * 2013-12-11 2015-06-17 阿里巴巴集团控股有限公司 Service control method and device
CN104767716A (en) * 2014-01-03 2015-07-08 腾讯科技(深圳)有限公司 Service request processing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8810821B2 (en) * 2012-12-21 2014-08-19 Xerox Corporation Method and system for managing service activity in a network printing context using a cloud administration system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098271A (en) * 2009-12-10 2011-06-15 华为技术有限公司 User information acquisition method, device and system
CN101789009A (en) * 2010-01-26 2010-07-28 恒生电子股份有限公司 Method for processing business data, device and system
CN103516690A (en) * 2012-06-26 2014-01-15 阿里巴巴集团控股有限公司 Service processing state information query method and apparatus thereof
CN104715309A (en) * 2013-12-11 2015-06-17 阿里巴巴集团控股有限公司 Service control method and device
CN104767716A (en) * 2014-01-03 2015-07-08 腾讯科技(深圳)有限公司 Service request processing method and device

Also Published As

Publication number Publication date
CN105897931A (en) 2016-08-24

Similar Documents

Publication Publication Date Title
US11544154B2 (en) Systems and methods for monitoring distributed database deployments
CN106250782B (en) A kind of data permission control method and device based on SQL statement parsing
US20180196875A1 (en) Determining repeat website users via browser uniqueness tracking
CN106656839A (en) Resource transfer method and apparatus
WO2021031472A1 (en) Intelligent contract processing method and device, computer device and storage medium
WO2018075839A1 (en) Controlled execution of queries for protecting sensitive data in query responses in an on-demand services environment
CN110830234B (en) User traffic distribution method and device
CN105897931B (en) Network exempts from method of flow control and device
CN110245145A (en) Structure synchronization method and apparatus of the relevant database to Hadoop database
CN104753909B (en) Method for authenticating after information updating, Apparatus and system
CN113591068B (en) Online login device management method and device and electronic device
CN113361838A (en) Business wind control method and device, electronic equipment and storage medium
US20120317039A1 (en) On-demand purchase of virtual image licenses in a cloud computing environment
CN109359109A (en) A kind of data processing method and system calculated based on distributed stream
US20150248673A1 (en) Methods and apparatus for a token management system for transactions
TWI736608B (en) Method and device for facilitating expansion of payment subject
US8868485B2 (en) Data flow cost modeling
CN110266825A (en) A kind of virtual-number generation method and device
CN107894942A (en) The monitoring method and device of tables of data visit capacity
CN109582450B (en) Application program management method, device, medium and electronic equipment
CN109933604A (en) The method and device that the patented technology of a kind of couple of rival is monitored
CN111881148A (en) Object combination attribute determination method and device and electronic equipment
CN111966286A (en) Multi-data pool hierarchical migration method and system
CN105205385A (en) Business operation authorization method and system
US10698794B1 (en) Application container and application service system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant