CN114445063A - Service processing method, device, terminal and storage medium - Google Patents

Service processing method, device, terminal and storage medium Download PDF

Info

Publication number
CN114445063A
CN114445063A CN202210088791.2A CN202210088791A CN114445063A CN 114445063 A CN114445063 A CN 114445063A CN 202210088791 A CN202210088791 A CN 202210088791A CN 114445063 A CN114445063 A CN 114445063A
Authority
CN
China
Prior art keywords
channel
target
rule
service
request information
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
CN202210088791.2A
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.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online 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 Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN202210088791.2A priority Critical patent/CN114445063A/en
Publication of CN114445063A publication Critical patent/CN114445063A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/22Payment schemes or models

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application relates to a service processing method, a service processing device, a service processing terminal and a storage medium, and relates to the technical field of routing algorithms. The method comprises the following steps: acquiring request information corresponding to a target service, wherein the request information meets a target first rule; determining a first channel set corresponding to a target first rule; selecting a channel with the current operating parameter meeting a second rule from the first channel set to obtain a second channel set; determining a target channel from the second set of channels; and processing the target service based on the target channel. The complex target service request can be disassembled quickly, the channel selection efficiency is improved, and the service processing efficiency is further improved.

Description

Service processing method, device, terminal and storage medium
Technical Field
The present application relates to the technical field of routing algorithms, and in particular, to a method, an apparatus, a terminal and a storage medium for processing a service.
Background
At present, when a payment service request reaches a channel routing service, all payment channels under a current payment subject are selected first, then complex service adaptation is performed to adapt a channel set supporting the current service, and finally an optimal payment channel is selected from the channel set supporting the current service based on special requirements of different merchants.
Through the scheme, the payment service party pays the request to the channel routing service, the locking channel set range is wide, and the logic mixed processing of service processing is carried out, so that the technical operation and maintenance cost is high, the risk is high, and the channel selection efficiency is low.
Disclosure of Invention
The embodiment of the application provides a service processing method, a service processing device, a terminal and a storage medium, which can improve the efficiency of service processing, and the technical scheme is as follows:
in one aspect, a method for processing a service is provided, where the method includes:
acquiring request information corresponding to a target service, wherein the request information meets a target first rule;
determining a first channel set corresponding to the target first rule;
selecting a channel with current operating parameters meeting a second rule from the first channel set to obtain a second channel set;
determining a target channel from the second set of channels;
and processing the target service based on the target channel.
In one possible implementation, the determining the first channel set corresponding to the target first rule includes:
responding to at least two first rules which are pre-configured and comprise the target first rule, and sequentially matching the request information with the first rules according to the priority order of the at least two first rules;
in response to the request information being successfully matched with the target first rule, stopping matching the request information with the first rule;
determining the first set of channels corresponding to the target first rule.
In a possible implementation manner, the sequentially matching the request information with the first rule includes:
and responding to the request information including the relevant parameters of the target service, and sequentially matching the relevant parameters in the request information with at least two first rules.
In a possible implementation manner, in response to the request information including the relevant parameters of the target service, sequentially matching the relevant parameters in the request information with at least two of the first rules, includes:
and responding to the request information including at least two related parameters of the target service, combining the at least two related parameters, and then sequentially matching the at least two related parameters with the at least two first rules.
In one possible implementation, the determining a target channel from the second set of channels includes:
acquiring the expected conditions of the channels in the second channel set for completing the target service respectively;
and determining the target channel based on the expected situation that the channels in the second channel set respectively complete the target service.
In a possible implementation manner, the selecting, from the first channel set, a channel whose current operating parameter satisfies a second rule, and obtaining a second channel set includes:
matching the request information and the current operating parameters of the channels in the first channel set with the second rule;
and selecting the successfully matched channels in the first channel set to form the second channel set.
In a possible implementation manner, each channel in the first channel set corresponds to the respective second rule.
In one possible implementation, the method further includes:
responding to the second channel set being an empty set, and returning channel selection failure information; the channel selection failure information is used for indicating that no channel supporting the execution of the target service exists.
In a possible implementation manner, the relevant parameters of the target service include relevant parameters corresponding to service party identification information, relevant parameters corresponding to user identification information, and relevant parameters corresponding to service attribute information.
In a possible implementation manner, the current operation parameters of the channel include a current channel success rate, a current channel aging, and a current number of TPS transactions per second of the channel.
In one possible implementation, the target service is a payment service; the channel is a payment channel.
In another aspect, a traffic processing apparatus is provided, and the apparatus includes:
the request acquisition module is used for acquiring request information corresponding to the target service, and the request information meets a target first rule;
a first set acquisition module, configured to determine a first channel set corresponding to the target first rule;
a second set determining module, configured to select, from the first channel set, a channel whose current operating parameter meets a second rule, and obtain a second channel set;
a target determination module for determining a target channel from the second set of channels;
and the service processing module is used for processing the target service based on the target channel.
In a possible implementation manner, the first set obtaining module includes:
the first matching submodule is used for responding at least two first rules which are configured in advance and contain the target first rule, and sequentially matching the request information with the first rules according to the priority order of the at least two first rules;
the matching stopping sub-module is used for stopping matching the request information with the first rule in response to the request information and the target first rule being successfully matched;
a first set determining submodule, configured to determine the first channel set corresponding to the target first rule.
In one possible implementation manner, the first matching sub-module includes:
a first matching unit, configured to, in response to the request information including the relevant parameters of the target service, sequentially match the relevant parameters in the request information with at least two of the first rules.
In a possible implementation manner, in response to the request information including the relevant parameter of the target service, the first matching unit is configured to,
and responding to the request information including at least two related parameters of the target service, combining the at least two related parameters, and then sequentially matching the at least two related parameters with the at least two first rules.
In one possible implementation, the goal determining module includes:
a situation obtaining submodule, configured to obtain expected situations that channels in the second channel set respectively complete the target service;
and the target determining submodule is used for determining the target channel based on the expected situation that the channels in the second channel set respectively complete the target service.
In one possible implementation manner, the second set determining module includes:
the matching submodule is used for matching the request information and the current operating parameters of the channels in the first channel set with the second rule;
and the second set determining submodule is used for selecting the successfully matched channels in the first channel set to form the second channel set.
In a possible implementation manner, each channel in the first channel set corresponds to the respective second rule.
In one possible implementation, the apparatus further includes:
the information return module is used for responding that the second channel set is an empty set and returning channel selection failure information; the channel selection failure information is used for indicating that no channel supporting the execution of the target service exists.
In a possible implementation manner, the relevant parameters of the target service include relevant parameters corresponding to service party identification information, relevant parameters corresponding to user identification information, and relevant parameters corresponding to service attribute information.
In a possible implementation manner, the current operation parameters of the channel include a current channel success rate, a current channel aging, and a current number of TPS transactions per second of the channel.
In one possible implementation, the target service is a payment service; the channel is a payment channel.
In another aspect, a computer device is provided, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by the processor to implement the above-mentioned business processing method.
In another aspect, a computer readable storage medium is provided, in which at least one instruction, at least one program, a set of codes, or a set of instructions is stored, which is loaded and executed by a processor to implement the above-mentioned business processing method.
In another aspect, a computer program product or computer program is provided, the computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the service processing method provided in the above-mentioned various optional implementation modes.
The technical scheme provided by the application can comprise the following beneficial effects:
the method comprises the steps of matching request information corresponding to a target service with a target first rule, determining a first channel set supported by the request information for the target service, then determining a second channel set according to current operation parameters of channels, and finally determining a target channel from the second channel set and processing the target service. According to the scheme, the channels are screened according to the current operation parameters of the channels in the first channel set determined by the first rule according to the first rule matched with the request information of the target service to obtain the second channel set, the complex target service request can be rapidly disassembled, the channel selection efficiency is improved, and the service processing efficiency is further improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a flowchart illustrating a business processing method according to an exemplary embodiment of the present application;
FIG. 2 illustrates a conceptual model entity-contact diagram of a routing algorithm shown in an exemplary embodiment of the present application;
FIG. 3 is a flow chart illustrating a method of business processing according to an exemplary embodiment of the present application;
FIG. 4 illustrates a block diagram of a traffic processing apparatus according to an exemplary embodiment of the present application;
fig. 5 shows a block diagram of a computer device according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Currently, in the field of service processing, if a routing system accepts a plurality of channels supporting service processing, one of the plurality of channels supporting service processing needs to be selected for current service processing. Firstly, selecting all channels under the current service subject, then performing complex service adaptation to adapt a channel set supporting the current service, and finally selecting an optimal service processing channel (for example, the service is a payment service, and the channel is a payment channel) in the channel set supporting the current service based on different special requirements of service parties. The process of selecting the channel in this way is to directly perform the rule matching of a plurality of pieces of service-related information oriented rules by sending the service-related information to the routing service when the service party initiates the service request, the matching process has no fixed logic, and different service parties can provide differentiated channel appeal. The rule of the strip oriented to business information is the developer. On one hand, through the scheme, service processing logics are mixed together, the technical operation and maintenance cost is high, the risk is high, in order to narrow the range of the locked channel set, more routing rules facing the service need to be set, and the operation cost of operators is high.
In order to solve the above technical problem, the present application provides a service processing method, which is applied to a routing system in a system for performing service processing, where the routing system includes at least one routing device, and taking a payment service processing scenario as an example, a service architecture for performing payment service processing may include a service layer, a routing layer, an order layer, and a channel layer, where the service system requests routing for payment or authentication, and the routing selects an optimal channel from channels of the channel layer through the service processing method provided by the present application to complete payment service. The method provided by the embodiment of the application can firstly perform matching of the first rule aiming at the request information sent by the service party to determine the first channel set, namely, preliminarily determine the channel range aiming at the information provided by the service party, then determine whether each channel in the first channel set meets the second rule of each channel, perform secondary screening to determine the second channel set, then select a target channel from the second channel set, and process the target service through the target channel. That is to say, the routing sequentially reduces the range of the channel set step by step from two aspects of request information provided by the service party and the channel attribute according to the logic, and unifies the codes and the cooperation of the routing algorithm, thereby reducing the maintenance cost of the channel at the later stage.
Fig. 1 shows a flowchart of a service processing method according to an exemplary embodiment of the present application. The service processing method can be executed by the routing device, and comprises the following steps:
step 101, request information corresponding to a target service is obtained, and the request information meets a target first rule.
In the embodiment of the application, the routing device acquires request information corresponding to the target service from the service layer, wherein the request information comprises related parameters in the target service.
Step 102, a first channel set corresponding to a target first rule is determined.
In this embodiment of the present application, at least one first rule is configured in a routing device, and when acquired request information satisfies a target first rule in the first rule, a channel set corresponding to the target first rule is determined, and the channel set is determined as a first channel set.
The first rule configured in the routing device may be a requirement for one relevant parameter in the request information or a requirement for multiple relevant parameters. The plurality of channels in the first channel set correspond to respective second rules, and the second rules comprise rules for selecting the second channel set based on current operating parameters of the channels.
For example, the request information includes related parameters of the a attribute, the B attribute, and the C attribute, and the first rule configured in the routing device may be a requirement for the related parameters of the a attribute, the B attribute, and the C attribute, or a requirement for the related parameters of any combination of the a attribute, the B attribute, the C attribute, and the D attribute.
In a possible implementation manner, a plurality of first rules are configured in the routing device, where the first rules indicate that when the first rules match with relevant parameters in the received request information, it is determined that the request information satisfies the first rules, and each first rule corresponds to a respective one of the channel sets.
For example, a first rule a is configured in the routing device, if a relevant parameter specifying an attribute a in the first rule a is greater than x, the first rule a is satisfied, and a channel set that is selected to satisfy the first rule a includes a channel m and a channel n, at this time, when the acquired request information includes the relevant parameter of the attribute a and the relevant parameter of the attribute a is y, and y is greater than x after comparison, the request information satisfies the first rule a, and it is determined that the first channel set includes the channel m and the channel n.
And 103, selecting a channel with the current operating parameter meeting a second rule from the first channel set to obtain a second channel set.
In the embodiment of the application, after the rule matching for the request information is performed for the first time, the first channel set is determined, each channel in the first channel set is obtained, each obtained channel has a second rule, and whether each channel meets the corresponding second rule is judged based on the second rule, so that the second channel set is determined.
In a possible implementation manner, the parameter requirements of different channels on the same kind of operating parameters are different, and when a channel satisfies all the second rules corresponding to the channel, the channel is determined as one of the second channel sets.
For example, if the first channel set includes a channel a, a channel b, and a channel c, traversing each channel, and determining whether each channel satisfies all respective corresponding second rules, where the second rule of the channel a may include multiple rules, and the multiple rules respectively include that when an operating parameter corresponding to the type L of the channel at the current time satisfies a rule that is greater than the parameter L, the rule is satisfied; when the operation parameter corresponding to the type K at the current moment is larger than the parameter K, a rule is satisfied, and when the channel a queries the operation parameter corresponding to the type L and the operation parameter corresponding to the type K, the channel a is determined to satisfy the two rules, and then the channel a is added into a second channel set; the second rule of the channel b may still specify a parameter value condition that the operating parameter corresponding to the category K and the operating parameter corresponding to the category L need to satisfy, the specified parameter may be different from the parameter, and it is still determined according to the above steps whether the channel b and the channel c satisfy the respective second rules, so as to determine whether to add the channel b and the channel c into the second channel set, if the channel b satisfies the corresponding second rule, and the channel c does not satisfy the corresponding second rule, the channel b is also added into the second channel set, and the channel c is screened out, so that the obtained second channel set includes the channel a and the channel b.
And 104, determining a target channel from the second channel set.
In this embodiment of the present application, the routing device determines one of the acquired second channel sets as a target channel.
In a possible implementation manner, each channel in the second channel set is obtained, the implementation is realized based on a hard coding manner, the processing condition of each channel for executing the service is calculated through a channel preference algorithm, the processing conditions corresponding to each channel obtained through calculation are compared, a channel with the optimal performance in each channel is obtained, and the channel is confirmed as a target channel.
And 105, processing the target service based on the target channel.
In the embodiment of the application, the routing device processes the target service based on the determined target channel and the request information.
To sum up, in the solution shown in the embodiment of the present application, a first channel set supported by request information for a target service is determined by matching the request information corresponding to the target service with a target first rule, then a second channel set is determined for a current operation parameter of a channel, and finally a target channel is determined from the second channel set and the target service is processed. According to the scheme, the channels are screened according to the current operation parameters of the channels in the first channel set determined by the first rule according to the first rule matched with the request information of the target service to obtain the second channel set, the complex target service request can be rapidly disassembled, the channel selection efficiency is improved, and the service processing efficiency is further improved.
Illustratively, the service processing method provided by the embodiment of the present application can be applied to, and is not limited to, a routing service layer in a payment platform, and the payment platform can be used in a scenario of payment channel decision in a payment service; the business processing method can also be applied to all business scenes of capacity integration with external resources of financial institutions, and can be applied to decision-making capacity of the external resources for business parties based on different business requirements.
Taking the above payment scenario as an example, fig. 2 is a conceptual model Entity-contact Diagram of a routing algorithm provided in an exemplary embodiment of the present application, where an Entity-contact Diagram (E-R) refers to a conceptual model for describing a real world by representing Entity types, attributes, and contacts. As shown in fig. 2, the gateway product 21 may be a payment product provided by the gateway to the company body, and may be an abstraction of the service provided by the service provider, for example, the gateway product may be a payment product that the a application has. The channel product 22 may be a product provided by a channel provider or a service provider, and may truly reflect the channel capability provided by an external entity outside the platform, for example, the channel product 22 may be a payment channel product of the internet application a. Wherein one gateway product 21 may own multiple channel products 22. The physical channel 23 may be an abstract interface of a set of interface capabilities provided by an external mechanism that directly interfaces, for example, the physical channel 23 may be an internet banking card payment interface. Wherein a plurality of channel products 22 may have a set of physical channels 23. Multiple gateway products 22 may be associated with multiple corporate agents 24, and corporate agents 24 may be subject agents of a payment channel service, such as XXX payment technologies, or XXX technologies, inc. A company principal 24 may have multiple channel principal accounts 25, and a channel principal account 25 may be a carrier for a channel provider 26, a service provider 27, and a gateway to sign up for an agreement to provide services. The channel provider 26 may be an external entity to which the gateway directly interfaces, for example, the channel provider 26 may be an internet connection, a banking connection, a financial-related application. The service provider 27 may be an external entity providing a specific payment service, for example, the service provider 27 may be a bank or a financial-related application. Wherein a plurality of physical channels 23 may belong to one channel provider 26.
Fig. 3 is a flowchart illustrating a service processing method according to an exemplary embodiment of the present application. The service processing method can be executed by the routing device, and comprises the following steps:
step 301, obtaining request information corresponding to the target service.
In the embodiment of the application, the routing device acquires the request information corresponding to the target service.
In a possible implementation manner, the routing device receives a routing request body corresponding to a target service, where the routing request body includes request information, and the request information includes service scenario related information, gateway product related information, and main body object related information.
When the target service is a payment service, the service scenario related information may be payment scenario related information, and the subject object may be a company subject. The payment scene related information can be an identifier for marking the appeal of a service party, and can be used for meeting different channel appeal of different services. For example, the payment scenario may be a credit card payment.
In a possible implementation manner, the relevant parameters oriented to the first rule are obtained based on the relevant information of the service scenario, the relevant information of the gateway product, and the relevant information of the main body object.
The relevant parameters facing the first rule include relevant parameters corresponding to the service party identification information, relevant parameters corresponding to the user identification information, and relevant parameters corresponding to the service attribute information.
For example, when the target service is a payment service, the relevant parameter corresponding to the service party identification information may include a merchant number of the service party, the relevant parameter corresponding to the user identification information may include a user identity, and the relevant parameter corresponding to the service attribute information may include a payment amount, a payment bank card number, and a payment merchant number.
Step 302, in response to at least two first rules configured in advance and including the target first rule, matching the request information with the first rules in sequence according to the priority order of the at least two first rules.
In this embodiment of the present application, at least two first rules including a target first rule are pre-configured in a routing device, where the at least two first rules have a priority order, and part of the relevant parameters in the request information are sequentially matched with the first rules according to the priority order.
In a possible implementation manner, in response to the request information including the relevant parameters of the target service, the relevant parameters in the request information are sequentially matched with the at least two first rules.
And the request information comprises at least two related parameters of the target service, and the at least two related parameters are combined and then are sequentially matched with the at least two first rules.
Illustratively, the routing device is configured with a first rule a, a first rule B and a first rule C. Wherein the priority order corresponding to the first rule A, the first rule B and the first rule C is that the first rule A has priority over the first rule B, therefore, the request information needing matching in the first rule A is firstly determined, if the first rule A provides that when the payment amount is more than 5000 yuan, the channel a, the channel b, the channel c and the channel d can be used, and the acquired relevant parameter about the payment amount in the request information is 3000 yuan which needs to be paid, the first rule A is judged not to be met, then, determining the request information needing matching in the first rule B, if the first rule B specifies that when the business number of the business party is first 0, and the payment amount is more than 2000 yuan, the channel a, the channel c and the channel d can be used, and the acquired request information is matched with the relevant parameters of the business number of the business party and the payment amount.
Step 303, in response to the request information and the target first rule being successfully matched, stopping matching the request information and the first rule, and determining that the channel set corresponding to the target first rule is the first channel set.
In this embodiment of the application, after the request information is successfully matched with the first rule, the first rule is determined as a target first rule, and the operation of continuously matching the request information with the first rule is ended, so that the channel set corresponding to the target first rule is determined as a first channel set.
Illustratively, if matching with the first rule B is required according to the priority order, and the first rule B specifies that when the business party merchant number is first 0 and the payment amount is greater than 2000 yuan, the channel a, the channel c, and the channel d may be used, and the obtained request information has the relevant parameters about the business party merchant number and the payment amount just meeting the specification, it is determined that the request information is successfully matched with the first rule B, the matching operation of other first rules is stopped, and a set of channels corresponding to the target first rule, including the channel a, the channel c, and the channel d, is determined as the first channel set.
In a possible implementation manner, if the request information fails to match all the first rules configured in the routing device, it is determined that the first channel set is an empty set, and channel selection failure information is generated. The channel selection failure information is used to indicate that there is no channel supporting execution of the target service.
Step 304, a second channel set is determined based on a second rule that the channels in the first channel set respectively have.
In this embodiment of the present application, each channel in the first channel set is obtained, and a second rule corresponding to each channel is obtained, where the second rule may include a rule for selecting a second channel set based on a current operating parameter of the channel, and the second channel set is obtained by determining the channel from the first channel set based on a matching result of each channel and the corresponding second rule.
In a possible implementation manner, second rules that each channel in the first channel set has are obtained, when the current operating parameters of the channels meet the second rules, the channels are added into the second channel set, all the channels in the first channel set are traversed, whether each channel is added into the second channel set is determined, and therefore the final second channel set is determined.
The types of the operation parameters of the channel may include a channel success rate, a channel time limit, a channel TPS (Transactions Per Second), a channel real-time support bank card type, a channel daily limit amount, a channel limit amount, and the like. The current operation parameters of the channel may include a current channel success rate, a current channel aging, a current channel TPS, a current channel real-time supported bank card type, a current channel daily limit amount, and a current channel limit amount.
Wherein, the channel aging may be a time range of the channel allowed to process the service, and the channel TPS may be the number of transactions processed per second.
For example, the rule for selecting the second channel set based on the current operating parameters of the channels may be to require the current channel success rate to be greater than a specified value, or to require the current channel aging to be greater than a specified duration, or to require the current channel TPS to be greater than a specified value.
For example, when the first channel set includes a channel a and a channel b, the second rule corresponding to the channel a only includes that the channel success rate is greater than 90% and the channel aging is greater than 5min, the channel success rate of the channel a at the current time is obtained, where the obtained channel success rate can be calculated by obtaining historical data of the channel a, if the calculated channel success rate of the current channel a is 99%, the channel aging of the channel a is continuously obtained, if the obtained channel aging of the channel a is greater than 5min, the channel a satisfies all the second rules, the channel a is added to the second channel set, and similarly, it can be determined whether to add the channel b to the second channel set through the above steps.
In a possible implementation manner, in response to the second rule further including a rule for selecting a second channel set based on a relevant parameter of the target service, the request information and the current operating parameter of the channel in the first channel set are matched with the second rule, and the channel which is successfully matched in the first channel set is selected to form the second channel set.
When the target service is a payment service and each channel is a payment channel, the second rule may further include a bank list supported by each channel, an unsupported bank list, a routing black list and a routing white list, a service adaptation algorithm implemented in a hard coding manner, and an attribute rule of a special channel specified in a hard coding manner, where the attribute rule cannot be implemented by a simple configuration or a rule engine and needs to be implemented in a hard coding manner. For example, the a channel does not support a scenario where payment is made using a bank card. The service adaptation algorithm is to adapt each payment request by using the attribute and payment capability of the channel or a specific complex service algorithm, to exclude the channel which does not support the current payment request, and to reserve the channel which supports the current payment request, for example, the channel A only supports the payment of the first bank card, the current routing request is the payment by the second bank card, and the channel A does not support the current routing request, and the channel A is excluded. If the current routing request is the payment of the bank card of the first bank, the channel A supports the current payment request, and the channel A is reserved.
Illustratively, when the first channel set includes a channel a and a channel b, the second rule corresponding to the channel a only includes a channel success rate greater than 90%, a channel aging greater than 5min, a supported bank list includes a bank a and a bank b, and a route blacklist includes a user id 123, then the channel success rate at the current time of the channel a is obtained, if the calculated channel success rate of the current channel a is 99%, then the channel aging of the channel a is continuously obtained, if the obtained channel aging of the channel a is greater than 5min, then the payment bank card number in the request information is continuously obtained, if it is determined that the payment bank card belongs to the bank a, the user id in the request information is continuously obtained, if the user id is not 123, the channel a satisfies all the second rules, the channel a is added into the second channel set, and similarly, through the steps, whether the channel b meets all the second rules of the channel b can be judged, and whether the channel b is added into the second channel set is judged accordingly.
In one possible implementation, channel selection failure information is returned in response to the second channel set being an empty set. The channel selection failure information is used to indicate that there is no channel supporting execution of the target service.
Step 305, obtaining the expected situation that the channels in the second channel set respectively complete the target service.
In this embodiment of the application, the second channel set obtained through the above steps may include a smaller number of channels, and in order to determine a target channel from the second channel set, each channel in the second channel set needs to be calculated based on a channel preference algorithm to determine an expected situation of each channel.
In a possible implementation manner, the channel preference algorithm implemented based on a hard-coded manner is an optimal selection algorithm for the channel set available for the current payment request.
The channel preference algorithm can calculate at least one of a cost prediction situation of the channel, an aging prediction situation of the channel and a flow ratio prediction situation of the channel.
Illustratively, if the current second channel set is channel a and channel b, the calculated estimated billable time of channel a is 2 minutes, and the estimated billable time of channel b is 10 minutes.
Step 306, determining the target channel based on the expected situation that the channels in the second channel set respectively complete the target service, and processing the target service based on the target channel.
In this embodiment of the present application, the routing device selects one of the channels in the second channel set as a target channel based on an expected situation calculated by a channel preference algorithm for each channel, and processes a target service based on the target channel.
Illustratively, if the estimated time of the channel is calculated by the channel preference algorithm, the current second channel set is the channel a and the channel b, the estimated time to be billed of the channel a is 2 minutes, and the estimated time to be billed of the channel b is 10 minutes, and the channel a with shorter time is determined as the target channel.
In a possible implementation manner, after the target channel is determined from the second channel set, target acknowledgement information is returned, where the target acknowledgement information is used to indicate identification information of the target channel, and the route processes the target service through the target channel.
To sum up, in the solution shown in the embodiment of the present application, a first channel set supported by request information for a target service is determined by matching the request information corresponding to the target service with a target first rule, then a second channel set is determined for a current operation parameter of a channel, and finally a target channel is determined from the second channel set and the target service is processed. According to the scheme, the channels are screened according to the current operation parameters of the channels in the first channel set determined by the first rule to obtain the second channel set according to the first rule matched with the request information of the target service, so that the complex target service request can be quickly disassembled, the channel selection efficiency is improved, and the service processing efficiency is further improved.
Fig. 4 shows a block diagram of a service processing device according to an exemplary embodiment of the present application. The service processing device is used in a routing device, and comprises:
a request obtaining module 410, configured to obtain request information corresponding to a target service, where the request information satisfies a target first rule;
a first set obtaining module 420, configured to determine a first channel set corresponding to the target first rule;
a second set determining module 430, configured to select, from the first channel set, a channel whose current operating parameter meets a second rule, to obtain a second channel set;
a target determination module 440 configured to determine a target channel from the second set of channels;
a service processing module 450, configured to process the target service based on the target channel.
In a possible implementation manner, the first set obtaining module 420 includes:
the first matching submodule is used for responding at least two first rules which are configured in advance and contain the target first rule, and sequentially matching the request information with the first rules according to the priority order of the at least two first rules;
the matching stopping sub-module is used for stopping matching the request information with the first rule in response to the request information and the target first rule being successfully matched;
a first set determining submodule, configured to determine the first channel set corresponding to the target first rule.
In one possible implementation manner, the first matching sub-module includes:
a first matching unit, configured to, in response to the request information including the relevant parameters of the target service, sequentially match the relevant parameters in the request information with at least two of the first rules.
In a possible implementation manner, in response to the request information including the relevant parameter of the target service, the first matching unit is configured to,
and responding to the request information including at least two related parameters of the target service, combining the at least two related parameters, and then sequentially matching the at least two related parameters with the at least two first rules.
In one possible implementation, the goal determining module 440 includes:
a situation obtaining submodule, configured to obtain expected situations that channels in the second channel set respectively complete the target service;
and the target determining submodule is used for determining the target channel based on the expected situation that the channels in the second channel set respectively complete the target service.
In one possible implementation manner, the second set determining module 430 includes:
the matching submodule is used for matching the request information and the current operating parameters of the channels in the first channel set with the second rule;
and the second set determining submodule is used for selecting the successfully matched channels in the first channel set to form the second channel set.
In a possible implementation manner, each channel in the first channel set corresponds to the respective second rule.
In one possible implementation, the apparatus further includes:
the information return module is used for responding that the second channel set is an empty set and returning channel selection failure information; the channel selection failure information is used for indicating that no channel supporting the execution of the target service exists.
In a possible implementation manner, the relevant parameters of the target service include relevant parameters corresponding to service party identification information, relevant parameters corresponding to user identification information, and relevant parameters corresponding to service attribute information.
In a possible implementation manner, the current operation parameters of the channel include a current channel success rate, a current channel aging, and a current number of TPS transactions per second of the channel.
In one possible implementation, the target service is a payment service; the channel is a payment channel.
To sum up, in the solution shown in the embodiment of the present application, a first channel set supported by request information for a target service is determined by matching the request information corresponding to the target service with a target first rule, then a second channel set is determined for a current operation parameter of a channel, and finally a target channel is determined from the second channel set and the target service is processed. According to the scheme, the channels are screened according to the current operation parameters of the channels in the first channel set determined by the first rule according to the first rule matched with the request information of the target service to obtain the second channel set, the complex target service request can be rapidly disassembled, the channel selection efficiency is improved, and the service processing efficiency is further improved.
Fig. 5 shows a block diagram of a computer device 500 according to an exemplary embodiment of the present application. The computer device may be implemented as a routing device in the above-mentioned solution of the present application. The computer apparatus 500 includes a Central Processing Unit (CPU) 501, a system Memory 504 including a Random Access Memory (RAM) 502 and a Read-Only Memory (ROM) 503, and a system bus 505 connecting the system Memory 504 and the CPU 501. The computer device 500 also includes a mass storage device 506 for storing an operating system 509, application programs 510, and other program modules 511.
The mass storage device 506 is connected to the central processing unit 501 through a mass storage controller (not shown) connected to the system bus 505. The mass storage device 506 and its associated computer-readable media provide non-volatile storage for the computer device 500. That is, the mass storage device 506 may include a computer-readable medium (not shown) such as a hard disk or Compact Disc-Only Memory (CD-ROM) drive.
Without loss of generality, the computer-readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM) flash Memory or other solid state Memory device, CD-ROM, Digital Versatile Disks (DVD), or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. The system memory 504 and mass storage device 506 described above may be collectively referred to as memory.
The computer device 500 may also operate as a remote computer connected to a network through a network, such as the internet, in accordance with various embodiments of the present disclosure. That is, the computer device 500 may be connected to a network 508 through the network interface unit 507 connected to the system bus 505, or may be connected to another type of network or remote computer system (not shown) using the network interface unit 507.
The memory further includes at least one instruction, at least one program, a code set, or a set of instructions, which is stored in the memory, and the central processing unit implements all or part of the steps of the business processing method shown in the foregoing embodiments by executing the at least one instruction, the at least one program, the code set, or the set of instructions.
Those skilled in the art will appreciate that in one or more of the examples described above, the functions described in the embodiments of the present application may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
In an exemplary embodiment, a computer readable storage medium is further provided, which stores at least one instruction, at least one program, a code set, or a set of instructions, which is loaded and executed by a processor to implement all or part of the steps of the above-mentioned scene picture exhibition method. For example, the computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product or a computer program is also provided, which comprises computer instructions, which are stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform all or part of the steps of the method described in any of the embodiments of fig. 1 or 3.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (15)

1. A method for processing a service, the method comprising:
acquiring request information corresponding to a target service, wherein the request information meets a target first rule;
determining a first channel set corresponding to the target first rule;
selecting a channel with current operating parameters meeting a second rule from the first channel set to obtain a second channel set;
determining a target channel from the second set of channels;
and processing the target service based on the target channel.
2. The method of claim 1, wherein determining the first set of channels corresponding to the target first rule comprises:
responding to at least two first rules which are pre-configured and comprise the target first rule, and sequentially matching the request information with the first rules according to the priority order of the at least two first rules;
in response to the request information being successfully matched with the target first rule, stopping matching the request information with the first rule;
determining the first set of channels corresponding to the target first rule.
3. The method of claim 2, wherein said matching the request information with the first rule in turn comprises:
and responding to the request information including the relevant parameters of the target service, and sequentially matching the relevant parameters in the request information with at least two first rules.
4. The method according to claim 3, wherein in response to the request message including the relevant parameters of the target service, sequentially matching the relevant parameters in the request message with at least two of the first rules includes:
and responding to the request information including at least two related parameters of the target service, combining the at least two related parameters, and then sequentially matching the at least two related parameters with the at least two first rules.
5. The method of claim 1, wherein determining the target channel from the second set of channels comprises:
acquiring the expected conditions of the channels in the second channel set for completing the target service respectively;
and determining the target channel based on the expected situation that the channels in the second channel set respectively complete the target service.
6. The method of claim 1, wherein selecting, from the first set of channels, a channel whose current operating parameter satisfies a second rule to obtain a second set of channels comprises:
matching the request information and the current operation parameters of the channels in the first channel set with the second rule;
and selecting the successfully matched channels in the first channel set to form the second channel set.
7. The method according to any one of claims 1 to 6, wherein each channel in the first set of channels corresponds to a respective second rule.
8. The method of claim 1, further comprising:
responding to the second channel set being an empty set, and returning channel selection failure information; the channel selection failure information is used for indicating that no channel supporting the execution of the target service exists.
9. The method according to claim 3, wherein the relevant parameters of the target service include relevant parameters corresponding to service party identification information, relevant parameters corresponding to user identification information, and relevant parameters corresponding to service attribute information.
10. The method of claim 1, wherein the current operating parameters of the channel include a current channel success rate, a current channel age, and a current channel TPS transactions per second.
11. The method according to any of claims 1 to 6, wherein the target service is a payment service; the channel is a payment channel.
12. A traffic processing apparatus, characterized in that the apparatus comprises:
the request acquisition module is used for acquiring request information corresponding to the target service, and the request information meets a target first rule;
a first set acquisition module, configured to determine a first channel set corresponding to the target first rule;
a second set determining module, configured to select, from the first channel set, a channel whose current operating parameter meets a second rule, and obtain a second channel set;
a target determination module for determining a target channel from the second channel set;
and the service processing module is used for processing the target service based on the target channel.
13. A computer device comprising a processor and a memory, said memory storing at least one instruction, at least one program, a set of codes, or a set of instructions, said at least one instruction, said at least one program, said set of codes, or set of instructions being loaded and executed by said processor to implement a business process method according to any one of claims 1 to 11.
14. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement a business process method according to any one of claims 1 to 11.
15. A computer program product, characterized in that it comprises computer instructions which, when executed by a processor of a terminal, cause the terminal to perform the traffic processing method according to any of claims 1 to 11.
CN202210088791.2A 2022-01-25 2022-01-25 Service processing method, device, terminal and storage medium Pending CN114445063A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210088791.2A CN114445063A (en) 2022-01-25 2022-01-25 Service processing method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210088791.2A CN114445063A (en) 2022-01-25 2022-01-25 Service processing method, device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN114445063A true CN114445063A (en) 2022-05-06

Family

ID=81369914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210088791.2A Pending CN114445063A (en) 2022-01-25 2022-01-25 Service processing method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN114445063A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115204853A (en) * 2022-05-27 2022-10-18 北京结慧科技有限公司 Settlement processing method and device, computer equipment and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115204853A (en) * 2022-05-27 2022-10-18 北京结慧科技有限公司 Settlement processing method and device, computer equipment and medium

Similar Documents

Publication Publication Date Title
KR100403058B1 (en) Communication system
JP4404929B2 (en) Payment for portable device services by multiple means
US8386351B2 (en) Optimized reservation for multi-session and/or multi-unit types
CN108510389A (en) Intelligent contract call method, equipment and readable storage medium storing program for executing based on block chain
US20090037294A1 (en) Mobile communication device transaction control systems
US20220256340A1 (en) Method for providing roaming service by using blockchain and apparatus therefor
US20110280258A1 (en) System and method for dynamic configuration of session layer retry logic based on signal quality
US20190150036A1 (en) Distributed ledger system for management of exchanges of wireless services between wireless service providers
RU2165679C1 (en) Telecommunication-network pay-service system (alternatives)
US20120030478A1 (en) Dynamic Storage Enabler For Service Delivery HUB On A Mobility Network
CN110264169A (en) A kind of payment method for routing, device, equipment and readable storage medium storing program for executing
KR102145578B1 (en) Method and Apparatus for Providing Roaming Service using Block Chain
CN114445063A (en) Service processing method, device, terminal and storage medium
CN109819123B (en) Method and device for realizing value-added service and industry application authentication center
CN111932220A (en) Routing system and method for solving multiple channels in same payment mode
US11606745B2 (en) System, method, and computer program for orchestrating re-provisioning of network subscriber dedicated network slices
CN110852744A (en) Method, device, terminal equipment and medium for switching transaction channels
CN114445204A (en) Cloud-plus-end-based tax control equipment service processing method and system
JP7304021B2 (en) Method for providing neutral network service using blockchain, system and device therefor
CN108765138B (en) Object and fund transfer method and device
Ganchev et al. Third-Party AAA, Charging and Billing for Future Consumer-Oriented Wireless Communications
CN112541768B (en) Centralized sink selection method, device, electronic equipment and computer readable storage medium
CN114867007B (en) Number-carrying network-transferring method, system, electronic equipment and storage medium
CN116319721B (en) Intelligent contract method, device and system based on Web3.0 application
CN108307079B (en) Communication method, communication apparatus, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination