CN111221653B - Service processing method and device and computer readable storage medium - Google Patents

Service processing method and device and computer readable storage medium Download PDF

Info

Publication number
CN111221653B
CN111221653B CN202010010473.5A CN202010010473A CN111221653B CN 111221653 B CN111221653 B CN 111221653B CN 202010010473 A CN202010010473 A CN 202010010473A CN 111221653 B CN111221653 B CN 111221653B
Authority
CN
China
Prior art keywords
service
data center
target
unitized
user terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010010473.5A
Other languages
Chinese (zh)
Other versions
CN111221653A (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.)
China Unionpay Co Ltd
Original Assignee
China Unionpay 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 China Unionpay Co Ltd filed Critical China Unionpay Co Ltd
Priority to CN202010010473.5A priority Critical patent/CN111221653B/en
Publication of CN111221653A publication Critical patent/CN111221653A/en
Application granted granted Critical
Publication of CN111221653B publication Critical patent/CN111221653B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a service processing method, a device, a system and a computer readable storage medium, which are applied to a unitized service system consisting of a plurality of data centers, wherein each data center is provided with a preset application, and the method comprises the following steps: carrying out service splitting on preset applications deployed in each data center to obtain a plurality of service components; unitizing service components, each service component comprising a plurality of groupings for providing the same service; and determining a target packet from the unitized service system according to the service request sent by the user terminal, and sending the service request to the target packet for processing. By utilizing the method, the high concurrency and high availability requirements for the single data center are met, and the operation and maintenance difficulty and complexity of the service system are reduced.

Description

Service processing method and device and computer readable storage medium
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a service processing method and device and a computer readable storage medium.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
With the development of computer software and hardware, the processing performance requirements of the service system are also continuously improved. Currently, many service systems for large applications tend to employ a unitized deployment in which each data center is able to independently complete all of the functional points of the application.
However, it is often difficult to meet the requirements of high concurrency, which refers to the ability to handle large-scale accesses simultaneously, and high availability, which refers to reducing the time that the system is unable to provide services, for a single data center in a unitized service system. Furthermore, because of the high dependencies among all the functional points of a large application and the very complex deployment logic, it can be very difficult to upgrade or alter each functional point in a single data center and to scale up and down specifically according to the functional point.
In view of the foregoing, there is a need for a service processing method that satisfies the requirements of high concurrency and high availability of a single data center.
Disclosure of Invention
In order to solve the problems in the prior art, a service processing method, a device and a computer readable storage medium are provided, and the problems can be solved by using the method, the device and the computer readable storage medium.
The present invention provides the following.
In a first aspect, a service processing method is provided, where the method is applied to a unitized service system that is formed by a plurality of data centers, and each data center is deployed with a preset application, and includes: carrying out service splitting on preset applications deployed in each data center to obtain a plurality of service components; unitizing service components, each service component comprising a plurality of groupings for providing the same service; and determining a target packet from the unitized service system according to the service request sent by the user terminal, and sending the service request to the target packet for processing.
In one possible embodiment, the method further comprises: determining a data center to be expanded in a unitized service system; determining a to-be-expanded service component corresponding to a specified service function in the to-be-expanded data center; and the grouping in the service components to be expanded is increased, so that the service components to be expanded with the specified service functions are transversely expanded in the data center to be expanded.
In one possible implementation, determining the target packet from the unitized service system according to the service request sent by the user terminal includes: receiving a service request sent by a user terminal, wherein the service request comprises a unit identifier and a group identifier; according to the unit identifier, a corresponding target data center is determined in the unitized service system; determining a target service component corresponding to the service function in a target data center according to the service function of the service request; and determining a corresponding target packet in the target service component according to the packet identification.
In one possible implementation manner, the server splitting of the preset application deployed in each data center further includes: and carrying out multi-stage splitting on the preset application deployed in each data center to form a plurality of service components with a hierarchical structure.
In one possible implementation, the unitizing the service components further includes: unitizing and grouping the service components according to a preset grouping granularity; wherein, the preset packet granularity comprises: one or more of an interface, a micro-service, a cluster of micro-services.
In one possible implementation, the unitizing the service components further includes: unitizing the packet for one or more of the following: storage device, database, cache, message middleware, encryptor, network device.
In one possible implementation manner, before receiving the service request sent by the user terminal, the method further includes: receiving a login request sent by a user terminal, wherein the login request at least comprises user characteristics; dynamically distributing according to the user characteristics to generate a unit identifier for indicating a target data center; dynamically distributing according to the user characteristics and the unit identifiers to generate grouping identifiers; and transmitting the unit identifier and the grouping identifier to the user terminal so that the user terminal transmits a service request according to the unit identifier and the grouping identifier.
In one possible implementation, the user characteristics include a user terminal: user information, terminal information, geographic location information, history request information.
In one possible implementation manner, before receiving the service request sent by the user terminal, the method further includes: the unit identity and the group identity are determined based on registration information of the user terminal.
In one possible embodiment, the method further comprises: generating a callback address by using the target data center, the target service component and the target packet; and sending the callback address and the service request to the external processing system so that the external processing system sends callback notification to the target packet according to the callback address.
In a second aspect, there is provided a service processing apparatus applied to a unitized service system composed of a plurality of data centers, each data center being deployed with a preset application, comprising: the splitting unit is used for carrying out service splitting on the preset application deployed in each data center to obtain a plurality of service components; a grouping unit for unitizing service components, each service component containing a plurality of groupings for providing the same service; and the routing unit is used for determining a target packet from the unitized service system according to the service request sent by the user terminal and sending the service request to the target packet for processing.
In a possible embodiment, the device further comprises a capacity expansion unit for: determining a data center to be expanded in a unitized service system; determining a to-be-expanded service component corresponding to a specified service function in the to-be-expanded data center; and the grouping in the service components to be expanded is increased, so that the service components to be expanded with the specified service functions are transversely expanded in the data center to be expanded.
In a possible implementation, the routing unit is further configured to: receiving a service request sent by a user terminal, wherein the service request comprises a unit identifier and a group identifier; according to the unit identifier, a corresponding target data center is determined in the unitized service system; determining a target service component corresponding to the service function in a target data center according to the service function of the service request; and determining a corresponding target packet in the target service component according to the packet identification.
In a possible embodiment, the splitting unit is further configured to: and carrying out multi-stage splitting on the preset application deployed in each data center to form a plurality of service components with a hierarchical structure.
In a possible implementation, the grouping unit is further configured to: unitizing and grouping the service components according to a preset grouping granularity; wherein, the preset packet granularity comprises: one or more of an interface, a micro-service, a cluster of micro-services.
In a possible implementation, the grouping unit is further configured to: unitizing the packet for one or more of the following: storage device, database, cache, message middleware, encryptor, network device.
In a possible implementation, the routing unit is further configured to: receiving a login request sent by a user terminal, wherein the login request at least comprises user characteristics; dynamically distributing according to the user characteristics to generate a unit identifier for indicating a target data center; dynamically distributing according to the user characteristics and the unit identifiers to generate grouping identifiers; and transmitting the unit identifier and the grouping identifier to the user terminal so that the user terminal transmits a service request according to the unit identifier and the grouping identifier.
In one possible implementation, the user characteristics include a user terminal: user information, terminal information, geographic location information, history request information.
In a possible implementation, the routing unit is further configured to: the unit identity and the group identity are determined based on registration information of the user terminal.
In one possible embodiment, the apparatus is further for: generating a callback address by using the target data center, the target service component and the target packet; and sending the callback address and the service request to the external processing system so that the external processing system sends callback notification to the target packet according to the callback address.
In a third aspect, there is provided a service processing apparatus comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform: carrying out service splitting on preset applications deployed in each data center to obtain a plurality of service components; unitizing service components, each service component comprising a plurality of groupings for providing the same service; and determining a target packet from the unitized service system according to the service request sent by the user terminal, and sending the service request to the target packet for processing.
In a fourth aspect, there is provided a computer readable storage medium storing a program which, when executed by a multi-core processor, causes the multi-core processor to perform a method as in the first aspect.
The above-mentioned at least one technical scheme that this application embodiment adopted can reach following beneficial effect: in the embodiment, the service and unitization grouping is realized in the data center, so that the high concurrency and high availability requirements for a single data center are met through the realized unitization grouping, and the operation and maintenance difficulty and complexity of a service system are reduced.
It should be understood that the foregoing description is only an overview of the technical solutions of the present invention, so that the technical means of the present invention may be more clearly understood and implemented in accordance with the content of the specification. The following specific embodiments of the present invention are described in order to make the above and other objects, features and advantages of the present invention more comprehensible.
Drawings
The advantages and benefits described herein, as well as other advantages and benefits, will become apparent to those of ordinary skill in the art upon reading the following detailed description of the exemplary embodiments. The drawings are only for purposes of illustrating exemplary embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 is a schematic diagram of a unitized service system according to one embodiment of the present invention;
FIG. 2 is a flow chart of a service processing method according to an embodiment of the invention;
FIG. 3 is a schematic diagram of a data center according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a service processing device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a service processing apparatus according to still another embodiment of the present invention.
In the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In the present invention, it should be understood that terms such as "comprises" or "comprising," etc., are intended to indicate the presence of features, numbers, steps, acts, components, portions, or combinations thereof disclosed in the specification, and are not intended to exclude the possibility of the presence of one or more other features, numbers, steps, acts, components, portions, or combinations thereof.
In addition, it should be noted that, without conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other. The invention will be described in detail below with reference to the drawings in connection with embodiments.
The inventor provides a processing method of a service request, which is applied to a unitized service system formed by a plurality of data centers, wherein each data center is provided with a preset application, and when a plurality of service functions of the preset application are required to be provided for massive user terminals, the preset application deployed in each data center can be subjected to service splitting to obtain a plurality of service components, so that different service components are responsible for processing different service functions; unitizing the service components such that each service component contains a plurality of groupings for providing the same service; after receiving the service request sent by the user terminal, it may be shunted to the target packet of the target data center for processing. According to the invention, by carrying out service splitting on each data center in the unitized service system, complex large-scale preset application can be decomposed into a series of loosely coupled service components, and each service component is unitized and grouped, so that the operation and maintenance difficulty and complexity of the service system are reduced, and the transverse expansion and rapid flow switching can be effectively carried out through the unitized grouping, and the high concurrency and high availability requirements for a single data center are met.
Having described the basic principles of the present invention, various non-limiting embodiments of the invention are described in detail below.
Fig. 1 is a unitized service system 100 according to one embodiment of the present application, which includes a unitized deployment data center 101, data centers 102, … data center 10N. Wherein, each data center is used as a basic unit of the unitized service system 100, and all service functions of the preset application, corresponding data and other resources are deployed independently.
Fig. 2 is a flow chart of a method 200 for processing a service request according to an embodiment of the present application, where the flow is applied to the unitized service system 100 shown in fig. 1.
As shown in fig. 2, the method 200 may include:
step 201: carrying out service splitting on preset applications deployed in each data center to obtain a plurality of service components;
in particular, the preset application may be an application program providing a set of functions. For example, the preset application may be a Unionpay APP, which may provide various service functions including a pay-by-pass service, a marketing service, a life service, a user information service. Servicesplitting refers to the operation of splitting a complex application providing a set of functions into a series of small service components (e.g., microservices), where a service component can be understood as a separate functional unit, which makes the functional responsibilities of each service component very clear. The service components can be compiled and deployed independently, and can communicate with other service components through the respective exposed service interfaces, and the service components can cooperate with each other to provide the original function set for the user as a whole. For example, as shown in fig. 3, the silver-joint flash APP deployed on the data center 101 performs service splitting, and obtaining a plurality of service components includes: the system comprises a code scanning payment service component, a marketing service component, a life service component and a user information service component.
In some possible embodiments, step 201 may further comprise: and carrying out multistage splitting on the preset application deployed in each data center to form a plurality of service components with a hierarchical structure. Specifically, in order to improve performance and degree of specialization of various service components, multi-stage splitting may be performed on a preset application. For example, as shown in fig. 3, the code scanning payment service component can be further split to obtain a main code scanning service component, a scanned service component, a code applying service component, a code state query service component and the like which are nested in the code scanning payment service component. Of course, if a certain service component meets the availability requirement, no further service splitting is needed.
As shown in fig. 2, the method 200 may include:
step 202: unitizing the service components, each service component comprising a plurality of groupings for providing the same service;
for example, as shown in fig. 3, the scan payment service component may be unitized and divided into a first group and a second group and deployed on different devices of the data center, where the two groups are each used to provide identical scan payment services for different user clusters. In addition, since the scan payment service component includes a main scan service component, a scanned service component, a code application service component, and a code status query service component, the first packet and the second packet also include these service components, respectively. By the design of unitized packets, a single data center can be made available for higher availability. It should be understood that other service components shown in fig. 3 may also be grouped in units, which will not be described in detail in this embodiment. It should be appreciated that, through the above-described unitized packet operation, if a packet in the data center fails at a certain time, other packets for performing the same service may be invoked to handle the operation corresponding to the failed packet.
It should be appreciated that with multiple packets per service component, a compact and efficient lateral expansion can be performed based on packets without sense, and thus highly concurrent service requests can be handled gracefully. In addition, uninterrupted service changes or upgrades can be implemented with multiple packets contained by each service component. For example, when a change or upgrade is required to one or more service components in a data center, service functions can be guaranteed to run uninterruptedly by performing traffic switching among the multiple sub-components. It follows that the high concurrency and high availability requirements for single data centers can be met by unitizing packets.
In some possible embodiments, step 202 may further comprise: unitizing and grouping the service components according to a preset grouping granularity; wherein the preset packet granularity comprises: one or more of an interface, a micro-service, a cluster of micro-services. For example, as shown in FIG. 3, because different service components have different compositions, such as a scanning payment service component may be considered a micro-service cluster and a transcoding service component may be considered a micro-service, the unitized packets may be performed according to a variety of different packet granularities, such as one or more of an interface, a micro-service cluster.
In some possible embodiments, step 202 may further comprise: simultaneously said unitizing the one or more of the following: storage device, database, cache, message middleware, encryptor, network device.
In some possible embodiments, the method further comprises: determining a data center to be expanded in a unitized service system; determining a to-be-expanded service component corresponding to a specified service function in the to-be-expanded data center; and the grouping in the service components to be expanded is increased, so that the service components to be expanded with the specified service functions are transversely expanded in the data center to be expanded.
For example, for certain regional promotion scenarios, the load of one or more data centers in the region is often excessive, so that one or more data centers in the region in the unitized service system may be expanded as data centers to be expanded. Further, for certain promotional nodes, highly concurrent service requests for certain one or more specified service functions in the application are typically generated. For example, as shown in fig. 3, the code scanning payment service component can be used as a service component to be expanded according to traffic prediction, and targeted transverse expansion can be performed by adding packets under the code scanning payment service component. For example, assuming that the original code-scanning payment service component only includes the first packet, the code-scanning payment service component can be laterally expanded by adding the second packet. The method and the device can realize temporary capacity expansion aiming at the specified service function, quickly recover resources after the flow peak value, and ensure efficient and full utilization of the resources.
As shown in fig. 2, the method 200 may include:
step 203: and determining a target packet from the unitized service system according to the service request sent by the user terminal, and sending the service request to the target packet for processing.
In some possible embodiments, step 203 may further comprise: receiving a service request sent by a user terminal, wherein the service request comprises a unit identifier and a group identifier; according to the unit identifier, a corresponding target data center is determined in the unitized service system; determining a target service component corresponding to the service function in a target data center according to the service function of the service request; and determining a corresponding target packet in the target service component according to the packet identification.
In particular, the element identification is used to indicate a certain data center in the unitized service system, and the group identification contains the belonging group of the user terminal for each service component. For example, the code-applied service request sent by the user terminal carries a unit identifier and a group identifier, where the unit identifier is used to indicate the data center 101, and the group identifier is used to indicate the first group, then the service request of the user terminal is first shunted into the data center 101 according to the unit identifier, then enters the code-scanning payment service component according to the service function of the service request, then is secondarily shunted into the first group according to the group identifier, and the code-applied service component in the first group executes the service operation. By distributing the service request to the target packet multiple times, an efficient and highly available service process flow can be achieved.
In some possible embodiments, before receiving the service request sent by the user terminal, the method further includes: receiving a login request sent by a user terminal, wherein the login request at least comprises user characteristics; dynamically distributing according to the user characteristics, and generating a unit identifier for indicating a target data center; dynamically distributing according to the user characteristics and the unit identifiers, and generating grouping identifiers; and transmitting the unit identifier and the grouping identifier to the user terminal so that the user terminal transmits the service request according to the unit identifier and the grouping identifier. Wherein dynamic allocation may be achieved using a consistent hash (hash) algorithm.
For example, if the unitized service system is a transaction system and the user terminal is a consumer terminal, the route allocation may be performed for the user terminal through the last login request of the user terminal, for example, a data center with a closer distance may be allocated to the user terminal according to the geographic location of the user terminal, so as to determine the unit identifier. And distributing the packets belonging to each service component to the user terminal through a load balancing principle in the distributed data center, and determining the packet identification.
In some possible implementations, the user characteristics include a user terminal: user information, terminal information, geographic location information, history request information.
In some possible embodiments, before receiving the service request sent by the user terminal, the method further includes: the unit identity and the group identity are determined based on registration information of the user terminal. For example, if the unitized service system is a transaction system and the user terminal is a merchant terminal, the data center and the group to which each service component belongs may be directly allocated to the user terminal through registration information of the user terminal, so as to determine the unit identifier and the group identifier.
In some possible embodiments, step 203 further comprises: generating a callback address by using the target data center, the target service component and the target packet; and sending the callback address and the service request to the external processing system so that the external processing system sends callback notification to the target packet according to the callback address.
For example, if the unitized service system is a transaction system, after the service request is sent to the target packet, the service request needs to be forwarded to the bank settlement system for processing, if the bank settlement system processes the service request successfully or fails, the success notification or the failure notification can be returned to the target packet of the target data center as the callback notification according to the callback address, so that all the service flows are completed in the target packet without occupying other resources.
Based on the same technical concept, the embodiment of the present invention further provides a service processing device, configured to execute the service processing method provided in any one of the foregoing embodiments. Fig. 4 is a schematic structural diagram 400 of a service processing device according to an embodiment of the present invention. The device is applied to the unitized service system 100 shown in fig. 1, wherein the unitized service system 100 is composed of a plurality of data centers, and each data center is deployed with a preset application.
As shown in fig. 4, the apparatus 400 includes:
a splitting unit 401, configured to perform service splitting on a preset application deployed in each data center, so as to obtain a plurality of service components;
a grouping unit 402, configured to unitize service components, where each service component includes a plurality of groups for providing the same service;
a routing unit 403, configured to determine a target packet from the unitized service system according to the service request sent by the user terminal, and send the service request to the target packet for processing.
In a possible embodiment, the apparatus 400 further comprises a capacity expansion unit for: determining a data center to be expanded in a unitized service system; determining a to-be-expanded service component corresponding to a specified service function in the to-be-expanded data center; and the grouping in the service components to be expanded is increased, so that the service components to be expanded with the specified service functions are transversely expanded in the data center to be expanded.
In a possible implementation, the routing unit 403 is further configured to: receiving a service request sent by a user terminal, wherein the service request comprises a unit identifier and a group identifier; according to the unit identifier, a corresponding target data center is determined in the unitized service system; determining a target service component corresponding to the service function in a target data center according to the service function of the service request; and determining a corresponding target packet in the target service component according to the packet identification.
In a possible implementation, the splitting unit 401 is further configured to: and carrying out multi-stage splitting on the preset application deployed in each data center to form a plurality of service components with a hierarchical structure.
In a possible implementation, the grouping unit 402 is further configured to: unitizing and grouping the service components according to a preset grouping granularity; wherein, the preset packet granularity comprises: one or more of an interface, a micro-service, a cluster of micro-services.
In a possible implementation, the grouping unit 402 is further configured to: unitizing the packet for one or more of the following: storage device, database, cache, message middleware, encryptor, network device.
In a possible implementation, the routing unit 403 is further configured to: receiving a login request sent by a user terminal, wherein the login request at least comprises user characteristics; dynamically distributing according to the user characteristics to generate a unit identifier for indicating a target data center; dynamically distributing according to the user characteristics and the unit identifiers to generate grouping identifiers; and transmitting the unit identifier and the grouping identifier to the user terminal so that the user terminal transmits a service request according to the unit identifier and the grouping identifier.
In one possible implementation, the user characteristics include a user terminal: user information, terminal information, geographic location information, history request information.
In a possible implementation, the routing unit 403 is further configured to: the unit identity and the group identity are determined based on registration information of the user terminal.
In one possible implementation, the apparatus 400 is further configured to: generating a callback address by using the target data center, the target service component and the target packet; and sending the callback address and the service request to the external processing system so that the external processing system sends callback notification to the target packet according to the callback address.
It should be noted that, the service processing device in the embodiment of the present application may implement each process of the foregoing embodiment of the service processing method, and achieve the same effects and functions, which are not described herein again.
Fig. 5 is a service processing apparatus according to an embodiment of the present application, for performing the service processing method shown in fig. 1, the apparatus including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform:
carrying out service splitting on preset applications deployed in each data center to obtain a plurality of service components; unitizing service components, each service component comprising a plurality of groupings for providing the same service; and determining a target packet from the unitized service system according to the service request sent by the user terminal, and sending the service request to the target packet for processing.
According to some embodiments of the present application, there is provided a non-transitory computer storage medium having stored thereon computer executable instructions configured to, when executed by a processor, perform:
carrying out service splitting on preset applications deployed in each data center to obtain a plurality of service components; unitizing service components, each service component comprising a plurality of groupings for providing the same service; and determining a target packet from the unitized service system according to the service request sent by the user terminal, and sending the service request to the target packet for processing.
All embodiments in the application are described in a progressive manner, and identical and similar parts of all embodiments are mutually referred, so that each embodiment mainly describes differences from other embodiments. In particular, for apparatus, devices and computer readable storage medium embodiments, the description thereof is simplified as it is substantially similar to the method embodiments, as relevant points may be found in part in the description of the method embodiments.
The apparatus, the device, and the computer readable storage medium provided in the embodiments of the present application are in one-to-one correspondence with the methods, so that the apparatus, the device, and the computer readable storage medium also have similar beneficial technical effects as the corresponding methods, and since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the apparatus, the device, and the computer readable storage medium are not repeated herein.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Furthermore, although the operations of the methods of the present invention are depicted in the drawings in a particular order, this is not required to either imply that the operations must be performed in that particular order or that all of the illustrated operations be performed to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform.
While the spirit and principles of the present invention have been described with reference to several particular embodiments, it is to be understood that the invention is not limited to the disclosed embodiments nor does it imply that features of the various aspects are not useful in combination, nor are they useful in any combination, such as for convenience of description. The invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (22)

1. A service processing method applied to a unitized service system composed of a plurality of data centers, each data center being deployed with a preset application, the method comprising:
carrying out service splitting on preset applications deployed in each data center to obtain a plurality of service components;
unitizing the service components, each service component comprising a plurality of groupings for providing the same service;
determining a target packet from the unitized service system according to a service request sent by a user terminal, and sending the service request to the target packet for processing;
wherein said determining a target packet from said unitized service system comprises:
determining a target service component corresponding to the service function in the unitized service system according to the service function of the service request; a corresponding target packet is determined within the target service component.
2. The method according to claim 1, wherein the method further comprises:
determining a data center to be expanded in the unitized service system;
determining a to-be-expanded service component corresponding to a specified service function in the to-be-expanded data center;
and the grouping in the service components to be expanded is increased, so that the service components to be expanded with the specified service function are transversely expanded in the data center to be expanded.
3. A method according to claim 1 or 2, characterized in that determining the target packet from the unitized service system in dependence of the service request sent by the user terminal comprises:
receiving a service request sent by a user terminal, wherein the service request comprises a unit identifier and a group identifier;
determining a corresponding target data center in the unitized service system according to the unit identifier;
determining a target service component corresponding to the service function in the target data center according to the service function of the service request;
and determining a corresponding target packet in the target service component according to the packet identification.
4. The method of claim 1 or 2, wherein the server splitting of the preset applications deployed at each data center further comprises:
and carrying out multistage splitting on the preset application deployed in each data center to form a plurality of service components with a hierarchical structure.
5. The method of claim 1 or 2, wherein unitizing the service components further comprises:
unitizing and grouping the service components according to a preset grouping granularity;
wherein the preset packet granularity comprises: one or more of an interface, a micro-service, a cluster of micro-services.
6. The method of claim 1 or 2, wherein unitizing the service components further comprises:
the unitized grouping is performed for one or more of the following: storage device, database, cache, message middleware, encryptor, network device.
7. A method according to claim 3, characterized in that before receiving the service request sent by the user terminal, it further comprises:
receiving a login request sent by the user terminal, wherein the login request at least comprises user characteristics;
dynamically allocating according to the user characteristics, and generating the unit identifier for indicating the target data center;
dynamically distributing according to the user characteristics and the unit identifiers to generate the grouping identifiers;
and transmitting the unit identifier and the grouping identifier to the user terminal so that the user terminal transmits the service request according to the unit identifier and the grouping identifier.
8. The method of claim 7, wherein the user characteristic comprises the user terminal: user information, terminal information, geographic location information, history request information.
9. A method according to claim 3, characterized in that before receiving the service request sent by the user terminal, it further comprises:
and determining the unit identifier and the grouping identifier according to the registration information of the user terminal.
10. The method according to claim 1 or 2, further comprising:
generating a callback address by using the target data center, the target service component and the target packet;
and sending the callback address and the service request to an external processing system so that the external processing system sends callback notification to the target packet according to the callback address.
11. A service processing apparatus for application to a unitized service system comprised of a plurality of data centers, each data center having a preset application deployed, the apparatus comprising:
the splitting unit is used for carrying out service splitting on the preset application deployed in each data center to obtain a plurality of service components;
a grouping unit for unitizing the service components, each service component containing a plurality of groupings for providing the same service;
the routing unit is used for determining a target packet from the unitized service system according to a service request sent by the user terminal, and sending the service request to the target packet for processing;
the routing unit is specifically configured to determine, according to a service function of the service request, a target service component corresponding to the service function in the unitized service system; a corresponding target packet is determined within the target service component.
12. The apparatus of claim 11, further comprising a capacity expansion unit configured to:
determining a data center to be expanded in the unitized service system;
determining a to-be-expanded service component corresponding to a specified service function in the to-be-expanded data center;
and the grouping in the service components to be expanded is increased, so that the service components to be expanded with the specified service function are transversely expanded in the data center to be expanded.
13. The apparatus according to claim 11 or 12, wherein the routing unit is further configured to:
receiving a service request sent by a user terminal, wherein the service request comprises a unit identifier and a group identifier;
determining a corresponding target data center in the unitized service system according to the unit identifier;
determining a target service component corresponding to the service function in the target data center according to the service function of the service request;
and determining a corresponding target packet in the target service component according to the packet identification.
14. The apparatus according to claim 11 or 12, wherein the splitting unit is further configured to:
and carrying out multistage splitting on the preset application deployed in each data center to form a plurality of service components with a hierarchical structure.
15. The apparatus of claim 14, wherein the grouping unit is further configured to:
unitizing and grouping the service components according to a preset grouping granularity;
wherein the preset packet granularity comprises: one or more of an interface, a micro-service, a cluster of micro-services.
16. The apparatus according to claim 11 or 12, wherein the grouping unit is further configured to:
the unitized grouping is performed for one or more of the following: storage device, database, cache, message middleware, encryptor, network device.
17. The apparatus of claim 13, wherein the routing unit is further configured to:
receiving a login request sent by the user terminal, wherein the login request at least comprises user characteristics;
dynamically allocating according to the user characteristics, and generating the unit identifier for indicating the target data center;
dynamically distributing according to the user characteristics and the unit identifiers to generate the grouping identifiers;
and transmitting the unit identifier and the grouping identifier to the user terminal so that the user terminal transmits the service request according to the unit identifier and the grouping identifier.
18. The apparatus of claim 17, wherein the user characteristic comprises the user terminal: user information, terminal information, geographic location information, history request information.
19. The apparatus of claim 13, wherein the routing unit is further configured to:
and determining the unit identifier and the grouping identifier according to the registration information of the user terminal.
20. The apparatus according to claim 11 or 12, characterized in that the apparatus is further adapted to:
generating a callback address by using the target data center, the target service component and the target packet;
and sending the callback address and the service request to an external processing system so that the external processing system sends callback notification to the target packet according to the callback address.
21. A service processing apparatus, comprising:
at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform:
carrying out service splitting on preset applications deployed in each data center to obtain a plurality of service components;
unitizing the service components, each service component comprising a plurality of groupings for providing the same service;
determining a target packet from a unitized service system according to a service request sent by a user terminal, and sending the service request to the target packet for processing;
wherein the determining the target packet from the unitized service system includes:
determining a target service component corresponding to the service function in the unitized service system according to the service function of the service request; a corresponding target packet is determined within the target service component.
22. A computer readable storage medium storing a program which, when executed by a multi-core processor, causes the multi-core processor to perform the method of any of claims 1-10.
CN202010010473.5A 2020-01-06 2020-01-06 Service processing method and device and computer readable storage medium Active CN111221653B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010010473.5A CN111221653B (en) 2020-01-06 2020-01-06 Service processing method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010010473.5A CN111221653B (en) 2020-01-06 2020-01-06 Service processing method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111221653A CN111221653A (en) 2020-06-02
CN111221653B true CN111221653B (en) 2024-03-19

Family

ID=70828073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010010473.5A Active CN111221653B (en) 2020-01-06 2020-01-06 Service processing method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111221653B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111858033A (en) * 2020-06-28 2020-10-30 上海缔安科技股份有限公司 Load balancing method based on cluster and multiple processes
CN113867775A (en) * 2020-06-30 2021-12-31 中兴通讯股份有限公司 Distribution method of access request, server, readable medium and cluster system
CN114363233B (en) * 2020-10-12 2023-12-22 网联清算有限公司 Packet routing method, device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107018174A (en) * 2016-12-27 2017-08-04 阿里巴巴集团控股有限公司 A kind of method, device and the transaction processing system of blocking system service processing
CN108427581A (en) * 2018-02-07 2018-08-21 平安普惠企业管理有限公司 System micro services method and terminal device
CN109327380A (en) * 2018-10-22 2019-02-12 中国平安财产保险股份有限公司 Public platform management method, device, computer equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107018174A (en) * 2016-12-27 2017-08-04 阿里巴巴集团控股有限公司 A kind of method, device and the transaction processing system of blocking system service processing
CN108427581A (en) * 2018-02-07 2018-08-21 平安普惠企业管理有限公司 System micro services method and terminal device
CN109327380A (en) * 2018-10-22 2019-02-12 中国平安财产保险股份有限公司 Public platform management method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111221653A (en) 2020-06-02

Similar Documents

Publication Publication Date Title
CN111221653B (en) Service processing method and device and computer readable storage medium
CN107450979B (en) Block chain consensus method and device
CN107360206B (en) Block chain consensus method, equipment and system
US11496588B2 (en) Clustering layers in multi-node clusters
CN107015853B (en) Method and device for realizing multi-stage task
CN111724170B (en) Service processing system, service processing method, device and equipment
CN109032803B (en) Data processing method and device and client
US20120209943A1 (en) Apparatus and method for controlling distributed memory cluster
CN113079200A (en) Data processing method, device and system
CN112860450B (en) Request processing method and device
US20210073850A1 (en) Redemption code distribution
CN109145053B (en) Data processing method and device, client and server
CN114884962A (en) Load balancing method and device and electronic equipment
CN114036031A (en) Scheduling system and method for resource service application in enterprise digital middleboxes
CN112559565A (en) Abnormity detection method, system and device
CN112527792A (en) Data storage method, device, equipment and storage medium
CN115002027B (en) Data addressing method and device for in-transit flow
CN115495265A (en) Method for improving kafka consumption capacity based on hadoop
JP2021508867A (en) Systems, methods and equipment for querying databases
CN113296923B (en) Memory merging method, device and computer readable medium
CN115134373A (en) Data synchronization method and device, storage medium and electronic equipment
CN111435320B (en) Data processing method and device
CN116954878A (en) Method, apparatus, device, storage medium and program product for managing container clusters
CN113691465B (en) Data transmission method, intelligent network card, computing device and storage medium
CN114328435A (en) Stream processing method and system of unstructured file based on distributed architecture

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