CN109905446A - A kind of method for processing business, server and computer storage medium - Google Patents

A kind of method for processing business, server and computer storage medium Download PDF

Info

Publication number
CN109905446A
CN109905446A CN201711306777.0A CN201711306777A CN109905446A CN 109905446 A CN109905446 A CN 109905446A CN 201711306777 A CN201711306777 A CN 201711306777A CN 109905446 A CN109905446 A CN 109905446A
Authority
CN
China
Prior art keywords
server
type
processing logic
service processing
payment request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711306777.0A
Other languages
Chinese (zh)
Other versions
CN109905446B (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.)
Tenpay Payment Technology Co Ltd
Original Assignee
Tenpay Payment 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 Tenpay Payment Technology Co Ltd filed Critical Tenpay Payment Technology Co Ltd
Priority to CN201711306777.0A priority Critical patent/CN109905446B/en
Publication of CN109905446A publication Critical patent/CN109905446A/en
Application granted granted Critical
Publication of CN109905446B publication Critical patent/CN109905446B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a kind of method for processing business, server and computer storage mediums, which comprises obtains payment request information;The corresponding service processing logic of multiple services that the payment request information includes is called and executes, to execute the process flow of the payment request information;Wherein, the attribute of the payment request information and the attribute of the server match;The attribute of the payment request information is related to the significance level of the payment request information.

Description

Service processing method, server and computer storage medium
Technical Field
The invention relates to the internet technology, in particular to a service processing method, a server and a computer storage medium.
Background
The last payment process on the internet comprises a plurality of processes of payment initiation, payment, posting, merchant notification and the like. The order system is a general term of logic system for completing one-time payment process, and the functions include responding to requests from businesses, connecting various deduction channels, registering transaction certificates, informing merchants of delivery, and the like. The payment process involves multiple services, such as access service of transaction, transaction logic integration service, user information inquiry service, quota service, authority service, order service, merchant synchronization service, etc., each of which requires deployment of several servers based on performance requirements. A plurality of servers may be required to be called for processing in one payment process, so that a large amount of cross-machine calling exists, and more network overhead is increased; the calling link of the order system is long, and the mesh calling relationship increases the complexity of the order system, so that the overall performance of the order system cannot be accurately evaluated.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide a service processing method, a server, and a computer storage medium.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides a business processing method, which is applied to a server; the method comprises the following steps:
obtaining payment request information;
calling and executing service processing logic corresponding to a plurality of services included in the payment request information so as to execute a processing flow of the payment request information;
wherein the attributes of the payment request information match the attributes of the server; the attribute of the payment request information is related to the importance of the payment request information.
In the above scheme, the server includes a plurality of service processing logics matched with attributes thereof; servers with different attributes include different service processing logic.
In the above solution, when the server is a first type server, the first type server includes a first type service processing logic;
the invoking and executing service processing logic corresponding to the plurality of services included in the payment request information includes:
and the first class server calls and executes a plurality of first class service processing logics corresponding to a plurality of first class services included in the payment request information.
In the above scheme, when the server is a second type server, the second type server includes the first type service processing logic and a second type service processing logic; the importance degree of the payment request information correspondingly processed by the first type server is higher than that of the payment request correspondingly processed by the second type server;
the invoking and executing service processing logic corresponding to the plurality of services included in the payment request information includes:
the second type server calls and executes a first type service processing logic corresponding to a first type service and a second type service processing logic corresponding to a second type service which are included in the payment request information; or the second type server calls and executes a second type service processing logic corresponding to the second type service included in the payment request information.
In the above scheme, when the server is a third type server, the third type server includes a third type service processing logic; the third type of service processing logic supports asynchronous processing.
In the foregoing solution, when the server is a first type server, the method further includes: and asynchronously calling a third type service processing logic of the third type server.
In the foregoing solution, when the server is a second type server, the method further includes: and asynchronously calling a third type service processing logic of the third type server.
An embodiment of the present invention further provides a server, where the server includes: the system comprises an acquisition unit, a call processing unit and a service processing logic unit; wherein,
the acquisition unit is used for acquiring payment request information; wherein the attributes of the payment request information match the attributes of the server; the attribute of the payment request information is related to the importance degree of the payment request information;
the call processing unit is configured to call and execute service processing logic corresponding to a plurality of services included in the payment request information, so as to execute a processing flow of the payment request information.
In the above scheme, the server includes a plurality of service processing logic units matched with attributes thereof; servers with different attributes include different service processing logic units.
In the above solution, when the server is a first type server, the service processing logic includes a first type service processing logic unit;
the calling processing unit is used for calling and executing a plurality of first-class service processing logic units corresponding to a plurality of first-class services included in the payment request information.
In the above scheme, when the server is a second type server, the service processing logic unit includes the first type service processing logic unit and a second type service processing logic unit; the importance degree of the payment request information correspondingly processed by the first type server is higher than that of the payment request correspondingly processed by the second type server;
the calling processing unit is used for calling and executing a first service processing logic unit corresponding to a first service and a second service processing logic unit corresponding to a second service, wherein the first service processing logic unit and the second service processing logic unit are included in the payment request information; or the second service processing logic unit is used for calling and executing the second service corresponding to the second service included in the payment request information.
In the foregoing solution, when the server is a third type server, the service processing logic includes a third type service processing logic unit; the third type of service processing logic unit supports asynchronous processing.
In the foregoing solution, when the server is a first-class server, the call processing unit is configured to support calling a third-class service processing logic unit of the third-class server in a process of calling and executing the first-class service processing logic unit.
In the foregoing solution, when the server is a second-class server, the call processing unit is configured to support calling of a third-class service processing logic unit of the third-class server in a process of calling and executing the second-class service processing logic unit.
Embodiments of the present invention also provide a computer storage medium having stored thereon computer instructions that, when executed by a processor, perform the steps of the method according to embodiments of the present invention.
The embodiment of the present invention further provides a server, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, the steps of the method according to the embodiment of the present invention are implemented.
The embodiment of the invention provides a service processing method, a server and a computer storage medium, wherein the method comprises the following steps: obtaining payment request information; calling and executing service processing logic corresponding to a plurality of services included in the payment request information so as to execute a processing flow of the payment request information; wherein the attributes of the payment request information match the attributes of the server; the attribute of the payment request information is related to the importance of the payment request information. By adopting the technical scheme of the embodiment of the invention, the process of the payment request is processed by one server (equipment), so that a large amount of cross-machine calling is avoided, the network overhead is greatly reduced, and the cost and the performance overhead are saved; the business processing mode also greatly simplifies the order system and reduces the complexity of the order system.
Drawings
FIG. 1 is a diagram illustrating the module call logic required for a payment processing process in the prior art;
fig. 2 is a schematic diagram of an implementation architecture of a service processing method in the embodiment of the present invention;
fig. 3 is a schematic flow chart of a service processing method according to an embodiment of the present invention;
fig. 4 is a service classification diagram of a service processing method according to an embodiment of the present invention;
fig. 5 is a schematic diagram of module calling logic required by the service processing method according to the embodiment of the present invention;
FIG. 6 is a schematic diagram of a server according to an embodiment of the present invention;
fig. 7a to fig. 7c are schematic diagrams illustrating the deployment of service processing logical units in a server according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a hardware component structure of a server according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
In the real-time order system, the processing flow of one payment request comprises the flows of payment initiation, payment, delivery, merchant notification, receipt confirmation, posting and the like. Taking the payment process as an example, the order system needs to query the information of the transaction buyer/seller, check the information of the buyer/seller, such as the status, authority, available amount and the like, further complete the ordering, deducting, verifying the deduction result, update the status of the order into the status of successful deduction, inform the merchant of delivering goods and the like. The series of processes relate to access service of transaction, transaction logic integration service, user information inquiry service, quota service, authority service, order service, merchant synchronization service and the like.
A common deployment manner of the order system is to deploy and classify servers according to the function of the logic module, for example, deploy query servers, payment servers and the like, for example, services such as payment integration services, order services and the like belong to payment services, and the services are processed through the payment servers, and query services of user information belong to query services and are processed through the query servers; the calling between services can be realized by a Linux Virtual Server (LVS).
Each service requires the deployment of several servers based on performance requirements. A common deployment method is to use multiple servers as a cluster, and load balancing is generally implemented in the cluster by using technologies such as LVS, and access is provided to the outside by using a virtual IP. Taking two servers deployed per service as an example, a payment request flow call relationship may be as shown in fig. 1. Depending on the LVS, for a plurality of servers deployed for each service, the server serving as a load scheduler needs to distribute request data, so that the network has a single-point problem, that is, after the server serving as the load scheduler fails, the server deployed for the corresponding service is difficult to work.
The method is applied to an order system, because the flow of one payment request depends on more services, more than one server is probably needed, the call link is long, and the complexity of the system is increased by a large number of cross-machine mesh calls, so that the performance and the availability of the system are influenced.
Based on this, the service processing scheme of the embodiment of the invention is provided.
Fig. 2 is a schematic diagram of an implementation architecture of a service processing method in the embodiment of the present invention; as shown in fig. 2, the order system 11 is included, and the order system 11 at least includes a multi-type server, and the multi-type server at least includes: a first class server 111, a second class server 112, and a third class server 113; the first class server 111, the second class server 112, and the third class server 113 are respectively configured to process corresponding services. The implementation architecture further comprises a routing component 12, the routing component 12 routes the payment request of the terminal to a corresponding server, and the server executes all service logic corresponding to the payment request.
In the embodiment of the invention, the payment services are divided into at least a first type of payment service, a second type of payment service and a third type of payment service. The routing component 12 routes the payment request corresponding to the first type payment service to the first type server 111 for processing, routes the payment request corresponding to the second type payment service to the second type server 112 for processing, and routes the payment request corresponding to the third type payment service to the third type server 113 for processing. Therefore, in the service processing scheme of the embodiment of the invention, the service related to one payment request is completed on one server, namely OMP (one machine Pay).
The above example of fig. 2 is only an example of a system architecture for implementing the embodiment of the present invention, and the embodiment of the present invention is not limited to the system architecture described in the above fig. 2, and various embodiments of the present invention are proposed based on the system architecture.
The embodiment of the invention provides a service processing method which is applied to a server. Fig. 3 is a schematic flow chart of a service processing method according to a first embodiment of the present invention; as shown in fig. 3, the method includes:
step 301: payment request information is obtained. Wherein the attributes of the payment request information match the attributes of the server; the attribute of the payment request information is related to the importance of the payment request information.
Step 302: and calling and executing service processing logic corresponding to the plurality of services included in the payment request information so as to execute the processing flow of the payment request information.
In the embodiment of the invention, the payment services are classified in advance. As an implementation manner, the payment services are classified according to the importance degree of the payment services, and the payment services are at least divided into a first payment service and a second payment service; wherein the importance degree of the first type of payment service is higher than that of the second type of payment service; or the processing complexity degree of the first type payment service is lower than that of the second type payment service. In an application scenario, the first payment service may specifically be a payment service or a balance payment service of a bound bank card, and the second payment service may specifically be a payment service registered by a new user or a payment service of an unbound bank card; compared with the payment service of the bound bank card, the new user registration payment service at least needs user registration service, and the payment service of the unbound bank card needs service corresponding to the bank card binding operation compared with the payment service of the bound bank card, so the processing complexity degree of the second type of payment service is higher than that of the first type of payment service. Based on the convenience of payment, the payment service and the balance payment service of the bound bank card become mainstream payment services (so-called mainstream payment services are payment services used by most users), while the payment service of a new user registration payment service or the payment service of an unbound bank card become non-mainstream payment services (so-called non-mainstream payment services are payment services used by a few users), on the other hand, the payment services can also be classified, the payment services used by most users are classified into a first class of payment services, the payment services used by a few users are classified into a second class of payment services, and the like.
Based on this, in the embodiment of the present invention, the servers are also divided based on the classification of the payment service, and specifically, the servers may be divided into at least a first type server and a second type server, and the attribute of the server is matched with the attribute of the payment service. It can be understood that the attributes of the payment request information received by the server are matched with the attributes of the server itself; when the received payment request information corresponds to the first type of payment service, the corresponding receiving server is a first type server; and when the received payment request information corresponds to the second type of payment service, the corresponding receiving server is the second type of server. And the attribute of the payment request information is the same as the attribute of the payment service corresponding to the payment request information. The importance degree of the payment request information correspondingly processed by the first type server is higher than that of the payment request correspondingly processed by the second type server; or the processing complexity degree of the payment request information correspondingly processed by the first type server is lower than that of the payment request correspondingly processed by the second type server.
In other embodiments, the payment services may be further divided according to the processing timeliness, and services that do not need synchronous processing are divided into a first class, that is, payment services that support asynchronous processing are divided into a third class of payment services. It can also be understood that the payment services supporting asynchronous processing, as the payment services with the lowest importance degree, are classified into a third class of payment services. As an example, the third type of payment service may be an credit accumulation service, which does not need to be performed in synchronization with the payment request. Correspondingly, the server may also be a third type server, and the third type server is configured to process a third type payment service.
In the embodiment of the invention, the server comprises a plurality of service processing logics matched with the attributes of the server; servers with different attributes include different service processing logic.
The services on which the first type of payment services depend are called first type services, namely, the execution of a plurality of first type services realizes the first type of payment services; services on which the second type of payment service exclusively depends are called second type of services; it will be appreciated that the second type of payment transaction relies on the first type of service and the second type of service, the execution of which implements the second payment transaction. The third class of services on which payment services depend is referred to as the third class of services. In practical application, the server comprises service processing logic matched with the attribute of the server, namely the first-class server comprises the first-class service processing logic; the second type server comprises a first type service processing logic and a second type service processing logic; the third type server comprises a third type service processing logic.
Fig. 4 is a service classification diagram of a service processing method according to an embodiment of the present invention; as shown in fig. 4, the first type of service is denoted as an OMP level 1 service, the second type of service is denoted as an OMP level 2 service, and the third type of service is denoted as an OMP asynchronous service. The OMP level 1 service corresponds to the most important payment service, such as a fast payment with a bank card bound (i.e. a fast bound payment) or a payment with a user balance. And the resource correspondingly accessed by the OMP 1 level service is OMP 1 level resource. The OMP level 2 service corresponds to other payment services than the non-OMP level 1 service, such as new user payment services, other payment services that are paid by unbound bank cards and not by user balances. And the resource correspondingly accessed by the OMP 2-level service is OMP 2-level resource. The OMP asynchronous service is asynchronous service, and the resource correspondingly accessed by the OMP asynchronous service is OMP asynchronous resource. As can be seen from fig. 4, the OMP 2-level service includes an OMP 1-level service in the OMP 1-level service and other services dedicated to the OMP 2-level service, such as a user registration service, a user binding service, and the like; correspondingly, the OMP 2 level resources accessed by the OMP 2 level service correspondingly comprise OMP 1 level resources and resources which are exclusively accessed by the OMP second level service, such as a user Data Base (DB) and the like.
As an embodiment, the invoking and executing service processing logic corresponding to a plurality of services included in the payment request information includes: and the first class server calls and executes a plurality of first class service processing logics corresponding to a plurality of first class services included in the payment request information.
As another embodiment, the invoking and executing service processing logic corresponding to a plurality of services included in the payment request information includes: the second type server calls and executes a first type service processing logic corresponding to a first type service and a second type service processing logic corresponding to a second type service which are included in the payment request information; or the second type server calls and executes a second type service processing logic corresponding to the second type service included in the payment request information.
In the embodiment of the invention, when the server is the first-class server or the second-class server, the server locally calls the service processing logic of the server. When the server is a first-class server, the first-class server is deployed with a plurality of first-class service processing logics, the first-class server locally calls the plurality of first-class service processing logics to execute the processing flow of the payment request information, and the first-class server does not support cross-machine calling of services in a second-class server. When the server is a second type server, the second type server is deployed with a first type service processing logic and a second type service processing logic, the second type server locally calls the second type service processing logic, or locally calls the first type service processing logic and the second type service processing logic to execute the processing flow of the payment request information, and the second type server does not support cross-machine calling of services in the first type server. Correspondingly, when the server is a third-class server, the third-class server is deployed with a plurality of third-class service processing logics, and the third-class server locally calls the third-class service processing logics.
In an embodiment, when the server is a first type server, the method further includes: and asynchronously calling a third type service processing logic of the third type server.
In another embodiment, when the server is a second type server, the method further comprises: and asynchronously calling a third type service processing logic of the third type server.
In this embodiment, the first type of server supports a third type of service processing logic of the third type of server for asynchronous cross-machine calling, and the second type of server supports the third type of service processing logic of the third type of server for asynchronous cross-machine calling. In one embodiment, the first class server supports the third class service processing logic of the asynchronous cross-machine calling the third class server during the process of executing the first class service processing logic, or the second class server supports the third class service processing logic of the asynchronous cross-machine calling the third class server during the process of executing the first class service processing logic or the second class service processing logic. It can be understood that, in the process of processing the payment request information by the first type server or the second type server, the third type service processing logic of the third type server may be invoked in a cross-machine manner, for example, the payment asynchronous service processing logic of the third type server is invoked, and after the execution is completed, the service processing logic of the first type server or the second type server is returned to perform the execution processing.
In another embodiment, the service processing method according to the embodiment of the present invention may further include: the server obtains the load information of the server, and the number of processes for executing the service processing logic is distributed based on the load information, so that the performance of the server is optimal. In practical application, the server can obtain the self optimal process number ratio through technical means such as pressure measurement and the like, and the process number is distributed based on the optimal process number ratio, so that the single-machine performance limit of the server can be optimized, and the supportable total flow of the server cluster can be quantized.
Fig. 5 is a schematic diagram of module calling logic required by the service processing method according to the embodiment of the present invention; as shown in fig. 5, the payment request is distributed by the routing component according to the load condition of each server, and is distributed to a designated server in the order system. Taking the first type server distributed to the order system as an example as shown in fig. 5, at least two first type servers are included (two servers are taken as an example in fig. 5, the service shown in bold frame on the right side is the service processing logic in one first type server, and the service shown in relatively thin linear mania on the left side is the service processing logic in the other first type server); as shown in the figure, the routing component realizes the routing distribution of the payment request task in an LVS manner; in practical application, a plurality of routing components can be deployed without avoiding the single point problem of the network, so that the single point problem caused by the failure of one routing component is avoided, and thus, the failure of one routing component can cause the routing distribution of the payment request task by another routing component. On the other hand, in the aspect of disaster tolerance, a plurality of servers for processing each level are also deployed to form a server cluster, so that the processing services of other machines in the cluster are not influenced when a single machine fails, and the availability of payment is ensured.
Here, the routing component may identify a payment service level corresponding to the payment request according to the port identifier reached by the payment request, and then route the payment request to a corresponding server for processing based on the payment service level. On the other hand, the routing component also obtains the load condition of each server, selects one server based on the load condition, and routes the payment request to the specified server for payment flow processing, so that the load balance of the server cluster is realized. For example, after identifying that the payment request corresponds to a first type of payment service, the routing component routes the payment request to a first type of server that is less loaded.
In the embodiment of the invention, the server calls the service processing logic in sequence according to the sequence of the services depended on by the payment request. For example, services on which payment requests depend include: a plurality of services such as an authority service, an order service, a quick payment service and the like; the server firstly calls a service processing logic corresponding to the authority service, and checks whether a user corresponding to the payment request has payment authority or not, namely checks whether information such as user state, authority, amount and the like meets payment conditions or not based on the execution of the service processing logic corresponding to the authority service; after determining that the user has the payment authority, further calling order service processing logic corresponding to order service, and determining information such as order information and payment information; further calling service processing logic corresponding to the quick payment service, and calling a deduction interface corresponding to a bank to carry out deduction processing; and after the deduction is finished, calling the order service processing logic corresponding to the order service again, and executing order state updating and the like.
It can be understood that, in the embodiment of the present invention, the server calls and executes the service processing logic corresponding to the plurality of services included in the payment request information, and the service processing logic corresponding to the plurality of services included in the payment request information is called in sequence, and the service processing logic is called in sequence.
By adopting the technical scheme of the embodiment of the invention, the process of the payment request is processed by one server (equipment), so that the minimum dependence of the payment process is realized, the resource minimization of the payment process is realized for a mainstream payment scene, a large amount of cross-machine calling is avoided, the network overhead is greatly reduced, and the cost and the performance overhead are saved; the business processing mode also greatly simplifies the order system and reduces the complexity of the order system. In addition, the problem of network single point caused by the dependence on the LVS is also avoided, and the unavailability of service caused by the failure of network single point equipment is avoided.
The embodiment of the invention also provides a server. FIG. 6 is a schematic diagram of a server according to an embodiment of the present invention; as shown in fig. 6, the server includes: an acquisition unit 51, a call processing unit 52 and a service processing logic unit 53; wherein,
the obtaining unit 51 is configured to obtain payment request information; wherein the attributes of the payment request information match the attributes of the server; the attribute of the payment request information is related to the importance degree of the payment request information;
the call processing unit 52 is configured to call and execute the service processing logic units 53 corresponding to the plurality of services included in the payment request information, so as to execute a processing flow of the payment request information.
In the embodiment of the present invention, the server includes a plurality of service processing logic units 53 matching with the attributes thereof; servers with different attributes comprise different service processing logic units 53.
In an embodiment, as shown in fig. 7a, when the server is a first type server, the service processing logic includes a first type service processing logic unit 531; the invoking processing unit 52 is configured to invoke and execute a plurality of first class service processing logic units 531 corresponding to a plurality of first class services included in the payment request information.
In another embodiment, as shown in fig. 7b, when the server is a second type server, the service processing logic unit 53 includes the first type service processing logic unit 531 and a second type service processing logic unit 532; the importance degree of the payment request information correspondingly processed by the first type server is higher than that of the payment request correspondingly processed by the second type server;
the call processing unit 52 is configured to call and execute a first class service processing logic unit 531 corresponding to a first class service and a second class service processing logic unit 532 corresponding to a second class service, where the first class service and the second class service are included in the payment request information; or the second service processing logic unit 532 is used for calling and executing the second service included in the payment request information.
In yet another embodiment, as shown in fig. 7c, when the server is a third type server, the service processing logic includes a third type service processing logic unit 533; the third class of service processing logic 533 supports asynchronous processing.
In an embodiment, when the server is a first type server, the call processing unit 52 is configured to asynchronously call the third type service processing logic unit 533 of the third type server.
In another embodiment, when the server is the second type server, the call processing unit 52 is configured to asynchronously call the third type service processing logic unit 533 of the third type server.
In the embodiment of the present invention, the obtaining Unit 51, the call processing Unit 52, and the service processing logic Unit 53 (including the first type service processing logic Unit 531, the second type service processing logic Unit 532, and the third type service processing logic Unit 533) in the server may be implemented by a central processing Unit (CPU, central processing Unit), a Digital Signal Processor (DSP, Digital Signal Processor), a micro control Unit (MCU, Microcontroller Unit), or a Programmable Gate Array (FPGA, Field-Programmable Gate Array) in the server in actual application.
It should be noted that: in the above embodiment, when performing service processing, the server is only illustrated by dividing the program modules, and in practical applications, the processing may be distributed to different program modules according to needs, that is, the internal structure of the server is divided into different program modules to complete all or part of the processing described above. In addition, the server provided by the above embodiment and the embodiment of the service processing method belong to the same concept, and the specific implementation process thereof is described in the embodiment of the method for details, which is not described herein again.
The embodiment of the invention also provides a server. Fig. 8 is a schematic diagram of a hardware component structure of a server according to an embodiment of the present invention, as shown in fig. 8, the server includes a memory 72, a processor 71, and a computer program stored in the memory 72 and capable of running on the processor 71, and the processor 71 implements, when executing the program: obtaining payment request information; calling and executing service processing logic corresponding to a plurality of services included in the payment request information so as to execute a processing flow of the payment request information; wherein the attributes of the payment request information match the attributes of the server; the attribute of the payment request information is related to the importance of the payment request information.
In an embodiment, when the server is a first type server, the first type server includes a first type service processing logic; the processor 71, when executing the program, implements: and calling and executing a plurality of first-class service processing logics corresponding to a plurality of first-class services included in the payment request information.
In an embodiment, when the server is a second type server, the second type server includes the first type service processing logic and a second type service processing logic; the importance degree of the payment request information correspondingly processed by the first type server is higher than that of the payment request correspondingly processed by the second type server; the processor 71, when executing the program, implements: calling and executing a first class service processing logic corresponding to a first class service and a second class service processing logic corresponding to a second class service which are included in the payment request information; or calling and executing second service processing logic corresponding to the second service included in the payment request information.
In one embodiment, when the server is a first type server, the processor 71 executes the program to: and in the process of calling and executing the first-class service processing logic, supporting the calling of a third-class service processing logic of the third-class server.
In an embodiment, when the server is a second type server, the processor 71 executes the program to: and in the process of calling and executing the second service processing logic, supporting the calling of the third service processing logic of the third server.
It will be appreciated that the server also includes a communications interface 73; the various components in the server are coupled together by a bus system 74. It will be appreciated that the bus system 74 is used to enable communications among the components of the connection. The bus system 74 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 74 in FIG. 8.
It will be appreciated that the memory 72 may be either volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 72 described in embodiments of the present invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The method disclosed in the above embodiments of the present invention may be applied to the processor 71, or implemented by the processor 71. The processor 71 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 71. The processor 71 described above may be a general purpose processor, a DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. Processor 71 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 72, and the processor 71 reads the information in the memory 72 and performs the steps of the aforementioned methods in conjunction with its hardware.
In an exemplary embodiment, the present invention further provides a computer readable storage medium, such as a memory 72, comprising a computer program, which is executable by a processor 71 of a server to perform the steps of the aforementioned method. The computer readable storage medium can be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.
An embodiment of the present invention provides a computer storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program performs: calling and executing service processing logic corresponding to a plurality of services included in the payment request information so as to execute a processing flow of the payment request information; wherein the attributes of the payment request information match the attributes of the server; the attribute of the payment request information is related to the importance of the payment request information.
In one embodiment, when the computer storage medium is applied to a first type of server, the computer program when executed by the processor performs: and calling and executing a plurality of first-class service processing logics corresponding to a plurality of first-class services included in the payment request information.
In one embodiment, when the computer storage medium is applied to a server of the second type, the computer program when executed by the processor performs: calling and executing a first class service processing logic corresponding to a first class service and a second class service processing logic corresponding to a second class service which are included in the payment request information; or calling and executing second service processing logic corresponding to the second service included in the payment request information.
In one embodiment, when the computer storage medium is applied to a first type of server, the computer program when executed by the processor performs: and asynchronously calling a third type service processing logic of the third type server.
In one embodiment, when the computer storage medium is applied to a server of the second type, the computer program when executed by the processor performs: and asynchronously calling a third type service processing logic of the third type server.
In the several embodiments provided in the present application, it should be understood that the disclosed server and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (16)

1. A business processing method is applied to a server; characterized in that the method comprises:
obtaining payment request information;
calling and executing service processing logic corresponding to a plurality of services included in the payment request information so as to execute a processing flow of the payment request information;
wherein the attributes of the payment request information match the attributes of the server; the attribute of the payment request information is related to the importance of the payment request information.
2. The method of claim 1, wherein the server comprises a plurality of service processing logic matching attributes thereof; servers with different attributes include different service processing logic.
3. The method of claim 2, wherein when the server is a first type server, the first type server comprises a first type service processing logic;
the invoking and executing service processing logic corresponding to the plurality of services included in the payment request information includes:
and the first class server calls and executes a plurality of first class service processing logics corresponding to a plurality of first class services included in the payment request information.
4. The method of claim 3, wherein when the server is a second type server, the second type server comprises the first type service processing logic and a second type service processing logic; the importance degree of the payment request information correspondingly processed by the first type server is higher than that of the payment request correspondingly processed by the second type server;
the invoking and executing service processing logic corresponding to the plurality of services included in the payment request information includes:
the second type server calls and executes a first type service processing logic corresponding to a first type service and a second type service processing logic corresponding to a second type service which are included in the payment request information; or the second type server calls and executes a second type service processing logic corresponding to the second type service included in the payment request information.
5. The method of claim 4, wherein when the server is a third type of server, the third type of server comprises a third type of service processing logic; the third type of service processing logic supports asynchronous processing.
6. The method of claim 5, wherein when the server is a first type of server, the method further comprises: and asynchronously calling a third type service processing logic of the third type server.
7. The method of claim 5, wherein when the server is a second type of server, the method further comprises: and asynchronously calling a third type service processing logic of the third type server.
8. A server, characterized in that the server comprises: the system comprises an acquisition unit, a call processing unit and a service processing logic unit; wherein,
the acquisition unit is used for acquiring payment request information; wherein the attributes of the payment request information match the attributes of the server; the attribute of the payment request information is related to the importance degree of the payment request information;
the call processing unit is configured to call and execute service processing logic corresponding to a plurality of services included in the payment request information, so as to execute a processing flow of the payment request information.
9. The server according to claim 8, wherein the server comprises a plurality of service processing logic units matching attributes thereof; servers with different attributes include different service processing logic units.
10. The server according to claim 9, wherein when the server is a first type server, the service processing logic comprises a first type service processing logic unit;
the calling processing unit is used for calling and executing a plurality of first-class service processing logic units corresponding to a plurality of first-class services included in the payment request information.
11. The server according to claim 10, wherein when the server is a second type server, the service processing logic unit includes the first type service processing logic unit and a second type service processing logic unit; the importance degree of the payment request information correspondingly processed by the first type server is higher than that of the payment request correspondingly processed by the second type server;
the calling processing unit is used for calling and executing a first service processing logic unit corresponding to a first service and a second service processing logic unit corresponding to a second service, wherein the first service processing logic unit and the second service processing logic unit are included in the payment request information; or the second service processing logic unit is used for calling and executing the second service corresponding to the second service included in the payment request information.
12. The server according to claim 11, wherein when the server is a third type server, the service processing logic comprises a third type service processing logic unit; the third type of service processing logic unit supports asynchronous processing.
13. The server according to claim 12, wherein when the server is a first type server, the call processing unit is configured to support calling a third type service processing logic unit of the third type server in the process of calling and executing the first type service processing logic unit.
14. The server according to claim 12, wherein when the server is a second-class server, the call processing unit is configured to support calling a third-class service processing logic unit of the third-class server in a process of calling and executing the second-class service processing logic unit.
15. A computer storage medium having computer instructions stored thereon, wherein the instructions, when executed by a processor, perform the steps of the method of any one of claims 1 to 7.
16. A server comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method of any one of claims 1 to 7 are implemented when the program is executed by the processor.
CN201711306777.0A 2017-12-11 2017-12-11 Service processing method, server and computer storage medium Active CN109905446B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711306777.0A CN109905446B (en) 2017-12-11 2017-12-11 Service processing method, server and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711306777.0A CN109905446B (en) 2017-12-11 2017-12-11 Service processing method, server and computer storage medium

Publications (2)

Publication Number Publication Date
CN109905446A true CN109905446A (en) 2019-06-18
CN109905446B CN109905446B (en) 2022-05-17

Family

ID=66942081

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711306777.0A Active CN109905446B (en) 2017-12-11 2017-12-11 Service processing method, server and computer storage medium

Country Status (1)

Country Link
CN (1) CN109905446B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111340463A (en) * 2020-03-23 2020-06-26 中国邮政储蓄银行股份有限公司 Data processing system and data processing method thereof

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1684080A (en) * 2004-06-25 2005-10-19 中国银行股份有限公司 System and method for providing capital remittance service in network
CN101086782A (en) * 2007-07-13 2007-12-12 南京财经大学 Public platform of collaborative electronic commercial system oriented to business service
CN101351819A (en) * 2005-11-04 2009-01-21 乌蒂巴私人有限公司 Mobile phone as a point of sale (POS) device
CN102571947A (en) * 2011-12-29 2012-07-11 奇智软件(北京)有限公司 Processing method proxy method, device and system
CN102880956A (en) * 2012-09-13 2013-01-16 东莞宇龙通信科技有限公司 Payment server and payment channel integration method
US20130282523A1 (en) * 2012-04-20 2013-10-24 Howard Pfeffer Network service provider assisted payment fraud detection and mitigation methods and apparatus
CN103578030A (en) * 2013-10-31 2014-02-12 北京奇虎科技有限公司 Data processing method and device
CN105138342A (en) * 2015-09-30 2015-12-09 北京奇虎科技有限公司 Service development method and device
CN106910121A (en) * 2015-12-23 2017-06-30 阿里巴巴集团控股有限公司 Generation account recording method and device
CN107103454A (en) * 2017-04-25 2017-08-29 深圳创维-Rgb电子有限公司 A kind of on-line payment method and system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1684080A (en) * 2004-06-25 2005-10-19 中国银行股份有限公司 System and method for providing capital remittance service in network
CN101351819A (en) * 2005-11-04 2009-01-21 乌蒂巴私人有限公司 Mobile phone as a point of sale (POS) device
US20160283929A1 (en) * 2005-11-04 2016-09-29 Amdocs Development Limited Mobile phone as point of sale (pos) device
CN101086782A (en) * 2007-07-13 2007-12-12 南京财经大学 Public platform of collaborative electronic commercial system oriented to business service
CN102571947A (en) * 2011-12-29 2012-07-11 奇智软件(北京)有限公司 Processing method proxy method, device and system
US20130282523A1 (en) * 2012-04-20 2013-10-24 Howard Pfeffer Network service provider assisted payment fraud detection and mitigation methods and apparatus
CN102880956A (en) * 2012-09-13 2013-01-16 东莞宇龙通信科技有限公司 Payment server and payment channel integration method
CN103578030A (en) * 2013-10-31 2014-02-12 北京奇虎科技有限公司 Data processing method and device
CN105138342A (en) * 2015-09-30 2015-12-09 北京奇虎科技有限公司 Service development method and device
CN106910121A (en) * 2015-12-23 2017-06-30 阿里巴巴集团控股有限公司 Generation account recording method and device
CN107103454A (en) * 2017-04-25 2017-08-29 深圳创维-Rgb电子有限公司 A kind of on-line payment method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王忠杰等: ""一种基于组件的电子商务系统设计方法"", 《计算机集成制造系统-CIMS》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111340463A (en) * 2020-03-23 2020-06-26 中国邮政储蓄银行股份有限公司 Data processing system and data processing method thereof

Also Published As

Publication number Publication date
CN109905446B (en) 2022-05-17

Similar Documents

Publication Publication Date Title
CN112463363B (en) Resource arranging method, device, equipment and storage medium
CN111262898B (en) Service degradation processing method and device and electronic equipment
CN109873910A (en) Processing method, device and the storage medium of session request
US10212286B2 (en) System and method for allocation and management of shared virtual numbers
CN112433863A (en) Micro-service calling method and device, terminal equipment and storage medium
CN112866421A (en) Intelligent contract operation method and device based on distributed cache and NSQ
CN110019481A (en) Memory database access method, device, equipment and medium
CN109905446B (en) Service processing method, server and computer storage medium
CN114331382A (en) Batch file processing method, processing device, processor and batch processing system
CN110717756B (en) Payment data processing device and method based on contract
CN110855764A (en) Network traffic scheduling method and device and electronic equipment
CN110782211A (en) Data processing method and device, electronic equipment and storage medium
CN103037063B (en) A kind of method of mobile phone business dynamic load, system and component manager
CN115018499A (en) Block chain-based digital certificate issuing method, device and system
CN112437126B (en) Task flow processing method and device based on atomic interface
CN111866171B (en) Message processing method, device, electronic equipment and medium
CN108920277B (en) Service execution system, method and device and service isolation system
CN115826845A (en) Storage resource allocation method and device, storage medium and electronic device
CN106130740B (en) Digital certificate synchronous method, digital signature server and digital certificate synchronization system
CN112825045A (en) Payment request processing method, system and storage medium
CN111061576A (en) Method and system for creating entity object
CN111639085B (en) Data asynchronous checking method and device
CN116089020B (en) Virtual machine operation method, capacity expansion method and capacity expansion system
WO2024011917A1 (en) Delegate model for blockchain transactions
CN114666399B (en) Service request verification method, device, equipment and storage medium

Legal Events

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