CN110138862B - Service processing method, device, gateway equipment and medium based on application service - Google Patents

Service processing method, device, gateway equipment and medium based on application service Download PDF

Info

Publication number
CN110138862B
CN110138862B CN201910407401.1A CN201910407401A CN110138862B CN 110138862 B CN110138862 B CN 110138862B CN 201910407401 A CN201910407401 A CN 201910407401A CN 110138862 B CN110138862 B CN 110138862B
Authority
CN
China
Prior art keywords
tenant
target
cluster
service processing
configuration information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910407401.1A
Other languages
Chinese (zh)
Other versions
CN110138862A (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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910407401.1A priority Critical patent/CN110138862B/en
Publication of CN110138862A publication Critical patent/CN110138862A/en
Application granted granted Critical
Publication of CN110138862B publication Critical patent/CN110138862B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Abstract

The embodiment of the disclosure discloses a business processing method, a business processing device, gateway equipment and a medium based on application services. The method comprises the following steps: responding to a business processing request of a target tenant, and determining identification information of the target tenant; matching the target tenant identification information with the cluster configuration information of each deployed tenant, and determining a target cluster associated with the target tenant; and sending the service processing request to the target cluster to indicate the target cluster to process the service processing request. By adopting the scheme, the demand difference and the individual difference of the tenants do not need to be considered, the corresponding clusters which are distributed and sent for the service processing request are only required to be processed according to the identification information of the tenants and the cluster configuration information which is deployed in advance, a plurality of tenants can be simultaneously supported to access simultaneously, the service processing requests of the tenants are responded, and therefore the service processing requests of the tenants are processed in time through the clusters.

Description

Service processing method, device, gateway equipment and medium based on application service
Technical Field
The embodiment of the disclosure relates to the technical field of software application, and in particular, to a service processing method and device based on an application service, a gateway device and a medium.
Background
With the development of cloud computing technology and due Software, Software as a Service (SaaS) is gradually emerging as a Software application Service. Compared with the traditional software application service, the SaaS application can generally serve a plurality of tenants, server resources can be greatly saved by simultaneously serving one application software to the plurality of tenants, and the operation cost is reduced.
However, in the field of multi-tenant SaaS application services, because there is a certain difference in the requirements of each tenant and a certain difference between individuals of each tenant, when the SaaS application is used for multi-tenant access, the tenant routing of each tenant and the corresponding service processing function cannot be effectively ensured, and thus the service call service of each tenant cannot be responded in time.
Disclosure of Invention
The embodiment of the disclosure provides a business processing method, a business processing device, a gateway device and a medium based on application services, so as to ensure that a business processing request of a tenant is sent to a qualified cluster, and the business processing request of the tenant is responded in time through the cluster.
In a first aspect, an embodiment of the present disclosure provides a service processing method based on an application service, which is executed by a gateway device of the application service, where cluster configuration information of each tenant is deployed in the gateway device; a tenant in the cluster configuration information is associated with a unique cluster; the method comprises the following steps:
responding to a business processing request of a target tenant, and determining identification information of the target tenant;
matching the target tenant identification information with the cluster configuration information of each deployed tenant, and determining a target cluster associated with the target tenant;
and sending the service processing request to the target cluster to indicate the target cluster to process the service processing request.
In a second aspect, an embodiment of the present disclosure further provides an application service-based service processing apparatus, configured to a gateway device of an application service, where cluster configuration information of each tenant is deployed in the gateway device; a tenant in the cluster configuration information is associated with a unique cluster; the device comprises:
the identification determining module is used for responding to the service processing request of the target tenant and determining the identification information of the target tenant;
the cluster determining module is used for matching the identification information of the target tenant with the cluster configuration information of each deployed tenant and determining a target cluster associated with the target tenant;
and the service processing module is used for sending the service processing request to the target cluster so as to indicate the target cluster to process the service processing request.
In a third aspect, an embodiment of the present disclosure further provides a gateway device, including:
one or more processing devices;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processing devices, the one or more processing devices are caused to implement the business processing method based on the application service provided in the embodiment of the present disclosure.
In a fourth aspect, a computer-readable storage medium is further provided in the embodiments of the present disclosure, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processing device, the computer-readable storage medium implements the business processing method based on the application service provided in the embodiments of the present disclosure.
The embodiment of the disclosure provides a service processing scheme based on application services, which can deploy cluster configuration information of each tenant in advance in a gateway layer, ensure that each tenant in the cluster configuration information is associated with a unique cluster, when service processing requests of a plurality of tenants arrive, allocate a proper cluster for each tenant in time, and send the service processing requests to an allocation cluster for processing, the whole service processing process does not need to consider the demand difference and the individual difference of the tenants, only needs to allocate and send the service processing requests according to the identification information of the tenant and the cluster configuration information deployed in advance, and can simultaneously support a plurality of tenants to access simultaneously, namely support a plurality of tenants to send the service processing requests simultaneously and respond to the service processing requests of the plurality of tenants, therefore, the service processing request of the tenant can be responded in time through the cluster.
The foregoing disclosure is only an overview of the technical solutions of the present disclosure, and the embodiments of the present disclosure are described below in order to make the technical means of the present disclosure more clearly understood and to make the above and other objects, features, and advantages of the present disclosure more clearly understandable.
Drawings
Other features, objects, and advantages of the disclosure will become apparent from a reading of the following detailed description of non-limiting embodiments which proceeds with reference to the accompanying drawings. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the disclosure. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating a business processing method based on application services provided in an embodiment of the present disclosure;
fig. 2 shows a schematic routing diagram of a service processing request provided in an embodiment of the present disclosure;
fig. 3 is a flowchart illustrating another business processing method based on application services provided in the embodiment of the present disclosure;
fig. 4 is a schematic structural diagram illustrating an application service-based business processing apparatus provided in an embodiment of the present disclosure;
fig. 5 shows a schematic structural diagram of a gateway device provided in an embodiment of the present disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the disclosure and are not limiting of the disclosure. It should be further noted that, for the convenience of description, only some of the structures relevant to the present disclosure are shown in the drawings, not all of them.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations (or steps) can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 shows a flowchart of a business processing method based on an application service provided in an embodiment of the present disclosure, which is applicable to a case of processing a business processing request of a tenant in an application service field of multiple tenants, especially a case of processing a business processing request of a tenant in an SaaS application service field of multiple tenants. The method can be executed by an application service-based business processing device, which can be implemented in software and/or hardware, and can be configured in an application service-based gateway device with a network communication function. As shown in fig. 1, the service processing method based on application service provided in the embodiment of the present disclosure may include the following steps:
s110, responding to the business processing request of the target tenant, and determining the identification information of the target tenant.
In the embodiment of the disclosure, in the field of application services simultaneously supporting simultaneous access of multiple tenants, taking SaaS an example, a software as a service (SaaS) application service, a software service provider uniformly deploys application software on a server of the software service provider, and the tenants rent the application software service as needed according to actual needs of the tenants. The tenant refers to an enterprise or a group which uses the application service according to the self requirement.
In the embodiment of the present disclosure, the target tenant refers to one or more tenants that need to perform business processing among numerous tenants. When the target tenant is a tenant, the target tenant can send a business processing request of the tenant to the gateway device based on the application service through the tenant client, and the gateway device based on the application service only provides corresponding software application service for the tenant at the moment; when the target tenant includes a plurality of tenants, each tenant included in the target tenant may send a respective service processing request to the application service-based gateway device through a respective tenant client, and at this time, the application service-based gateway device provides a corresponding software application service for the plurality of tenants at the same time.
Fig. 2 shows a schematic routing diagram of a service processing request provided in an embodiment of the present disclosure. Referring to fig. 2, the gateway device may simultaneously receive service processing requests sent by tenants included in the target tenant, and respond to the service processing requests of the target tenant to determine target tenant identification information of each tenant in the target tenant. The target tenant identification information is an identification used for representing the unique identity of the target tenant when application services like SaaS are used.
For example, referring to fig. 2, taking an example that a target tenant includes multiple tenants, each tenant sends a respective Web service processing request to a gateway device based on an application service through a respective tenant client, such as a Web1 end, a Web2 end, a Web3 end, a Web4 end, and a Web5 end, and the gateway device may receive multiple Web service processing requests sent by each tenant through a Web1 end, a Web2 end, a Web3 end, a Web4 end, and a Web5 end at the same time. Meanwhile, the gateway device may respond to each Web service processing request, and determine tenant identification information of a target tenant that sends each Web service processing request.
In an optional manner of the embodiment of the present disclosure, determining target tenant identification information in response to a service processing request of a target tenant includes steps S110a to S110 b:
s110a, receiving a service processing request sent by a target tenant through a target uniform resource locator, wherein the target uniform resource locator carries first identification information of the target tenant; the service processing request comprises second identification information of the target tenant.
In this embodiment, at the target tenant client, the target tenant may send a service processing request of the target tenant to the gateway device through the target uniform resource locator. The gateway device can receive a service processing request sent by a target tenant and extract a corresponding target uniform resource locator from the received service request. The target uniform resource locator carries first identification information of the target tenant, and the service request sent by the target tenant carries second identification information of the target tenant.
In this embodiment, the gateway device based on the application service uses a service processing service in the application service field, for example, uses a general SaaS service processing service. Optionally, a service processing service for tenant identification is integrated in the gateway device based on the application service, so that the gateway device based on the application service has a tenant identification function. The gateway device based on the application service can adopt an integrated tenant identification function to extract first identification information of a target tenant from a target uniform resource locator and extract second identification information of the target tenant from a business processing request.
For example, referring to fig. 2, taking a Web1 end in a target tenant as an example, after receiving a Web service processing request sent by a Web1 end, a gateway device may identify a target uniform resource locator used when the Web1 end sends the Web service processing request at an entrance where the Web service processing request is received, obtain that the target uniform resource locator is "https:// www.so.com/Web 1", and further match out that first identification information of a Web1 end is "Web 1" from the target uniform resource locator. In addition, the gateway device may further parse the Http protocol used by the service processing request, and match the second identification information at the Web1 end by parsing parameters included in a header of the Http protocol.
And S110b, if the first identification information of the target tenant is the same as the second identification information of the target tenant, determining the identification information of the target tenant.
In this embodiment, after the first identification information of the target tenant and the second identification information of the target tenant are obtained through recognition, analysis needs to be performed in combination with the first identification information and the second identification information. If the first identification information of the target tenant is the same as the second identification information of the target tenant, the successful identification of the tenant is indicated, and the identification information of the target tenant can be directly determined; if the first identification information of the target tenant is different from the second identification information of the target tenant, the tenant identification is not successful, and the identification information of the target tenant cannot be determined. By adopting the above mode, the tenant can be identified according to the identification information carried by the uniform resource locator and the identification information contained in the service processing request, and the correct tenant identification information can be obtained by comprehensively considering the two aspects, so that the identification error caused by only adopting a single identification information is avoided.
S120, matching the identification information of the target tenant with the cluster configuration information of each deployed tenant, and determining a target cluster associated with the target tenant; the cluster configuration information of each tenant is pre-deployed in the gateway device, and a tenant in the cluster configuration information is associated with a unique cluster.
In the embodiment of the present disclosure, the cluster configuration information may include tenant identification information of each tenant and routing rule configuration information between each cluster, and a routing mapping relationship between the tenant and the cluster may be obtained through the cluster configuration information. On the gateway device based on the application service, cluster configuration information between each tenant and each cluster can be deployed in advance, so that the gateway device based on the application service also has a routing configuration function from the tenant to the cluster. After the target tenant identification information of the target tenant is determined, the route configuration function between the tenant and the cluster, which is possessed by the gateway device, is called, according to the tenant identification information and the route rule configuration information between the cluster and the tenant identification information contained in the cluster configuration information of each deployed tenant, the target cluster related to the target tenant is obtained, and the route mapping relation between the target tenant and the target cluster is obtained.
In the embodiment of the present disclosure, in order to implement cluster isolation and avoid invoking multiple different clusters when performing service processing for a certain tenant, when a gateway device deploys routing rules between each tenant and each cluster in advance, it is necessary to ensure that each tenant can only establish a routing mapping relationship with one cluster, but cannot establish a routing mapping relationship with multiple clusters. By adopting the above manner, when the target tenant is matched with the cluster, only the cluster is allowed to be searched within the range indicated by the target identifier, but the cluster is not allowed to be searched outside the range indicated by the target identifier, so that the isolation between the clusters can be realized, and the risks of interference of data between the clusters and cluster data leakage caused by sending a plurality of clusters when a service processing request is sent to the clusters in the following process are avoided.
S130, the service processing request is sent to the target cluster so as to indicate the target cluster to process the service processing request.
In the embodiment of the present disclosure, a gateway of a micro service is further integrated in a gateway device based on an application service, so that the gateway device based on the application service has a lightweight general gateway service function in a micro service architecture. By adopting the micro service gateway integrated by the gateway based on the application service, the IP address and the port information of each cluster can be recorded in advance, and whether the clusters operate healthily or not can be sensed through the heartbeat service. When the service processing request needs to be sent to the target cluster, the gateway device based on the application service can directly send the service processing request to the target cluster through the integrated micro service gateway so as to instruct the target cluster to process the service processing request. By adopting the mode, calling among the clusters can be realized without concerning the specific IP addresses of the clusters and the specific port information of the clusters; meanwhile, due to the existence of the gateway equipment based on the application service, all the clusters can be placed in the internal network, only the gateway equipment is exposed in the external network, the IP addresses and port information of the clusters do not need to be exposed to the outside in the whole sending process, and the safety risk is reduced.
For example, referring to fig. 2, target tenant identification information at a Web1 end, a Web2 end, a Web3 end, a Web4 end, and a Web5 end is matched with cluster configuration information of each tenant of a device deployed in advance on a network management, and it is determined that a target cluster at a Web1 end, a target cluster at a Web3 end, and a target cluster at a Web5 are "cluster 2", a target cluster at a Web2 end is "cluster 1", and a target cluster at a Web4 end is "cluster 4". Furthermore, the service processing requests of the Web1 side, the Web3 side and the Web5 side can be all sent to the "cluster 2" for processing, while the service processing requests of the Web2 side can be all sent to the "cluster 1" for processing and the service processing requests of the Web4 side can be all sent to the "cluster 4" for processing.
The embodiment of the disclosure provides a service processing scheme, and through target tenant identification information and cluster configuration information, when responding to a service processing request of a target tenant, the requirement difference and individual difference of the tenant do not need to be considered, and only the service processing request needs to be distributed and sent according to the tenant identification information and the cluster configuration information deployed in advance; moreover, because the target tenant identification information and the cluster configuration information are adopted, only the cluster is allowed to be searched in the range indicated by the target identification, but the cluster is not allowed to be searched outside the range indicated by the target identification, when a plurality of tenants send service processing requests at the same time, the cluster associated with each tenant only needs to be determined according to the tenant identification information of each tenant, and each service processing request is sent to the corresponding cluster for processing, so that the purposes of supporting the plurality of tenants to send the service processing requests at the same time and responding the service processing requests of the plurality of tenants are achieved.
On the basis of various optional solutions of the foregoing embodiments, optionally, the service processing method provided in the embodiment of the present disclosure further includes: and determining cluster configuration information of each tenant according to the load information of each available cluster of the application service.
In the embodiment of the present disclosure, the cluster configuration information of each tenant pre-deployed on the gateway device is not constant, and in view of the service processing capability of the cluster, the service processing capability of some clusters is relatively strong, that is, the load of the cluster is relatively small, and if only the cluster is allowed to serve a certain tenant alone, but not other tenants, the service processing resource of the cluster is inevitably wasted.
In view of the above, the cluster configuration information pre-deployed on the gateway device may be dynamically adjusted according to the load information of each available cluster, so as to ensure load balancing of each cluster. Specifically, for example, the gateway device may modify and set the cluster configuration information to establish a routing mapping relationship between the same cluster and multiple tenants at the same time, so as to ensure that the cluster can serve multiple tenants at the same time, support the simultaneous processing of service processing requests of multiple tenants, and fully utilize service processing resources of the cluster as much as possible.
On the basis of various optional solutions of the foregoing embodiments, optionally, the service processing method provided in the embodiment of the present disclosure further includes: and determining cluster configuration information of each tenant according to the load information of each available cluster of the application service and the cluster demand information of each tenant.
In the embodiment of the present disclosure, considering that cluster requirements of each tenant are different, some tenants may not care about service quality, even if a shared cluster is used for performing service, some special tenants may need relatively good cluster service, for example, the amount of some tenants is very large and much higher than the scale of other general tenants, if the shared cluster is used, the shared cluster may not be used for performing service for the tenants with high performance, the tenant does not want to use the shared cluster for performing service, and therefore, an independent cluster needs to be separately set for the tenant, so as to ensure that the independent cluster can only serve the special tenant alone, but cannot serve other tenants.
In view of the above, the cluster configuration information pre-deployed on the gateway device may be dynamically adjusted according to the load information of each available cluster of the application service and the cluster demand information of each tenant, so as to ensure load balance of each cluster and meet the demand of each tenant, thereby implementing differentiated services between tenants, and not only does not waste the service processing resources of the cluster, but also meets the service demand of each tenant. Specifically, for example, the gateway device changes and sets the cluster configuration information, and establishes an independent route mapping relationship between the same cluster and a particular tenant, so as to ensure that the cluster serves the particular tenant independently, and only allows processing of the service processing request of the particular tenant.
Fig. 3 is a flow chart illustrating another business processing method based on application services provided in the embodiment of the present disclosure, which is further optimized based on the above embodiment, and the embodiment of the present disclosure may be combined with various alternatives in one or more of the above embodiments. As shown in fig. 3, the service processing method based on application service provided in the embodiment of the present disclosure may include the following steps:
s310, responding to the business processing request of the target tenant, and determining the identification information of the target tenant.
S320, matching the identification information of the target tenant with the cluster configuration information of each deployed tenant, and determining a target cluster associated with the target tenant; the cluster configuration information of each tenant is pre-deployed in the gateway device, and a tenant in the cluster configuration information is associated with a unique cluster.
S330, matching the identification information of the target tenant with the service processing logic configuration information and/or the page configuration information of each deployed tenant, and determining the target service processing logic and/or the target page configuration information associated with the target tenant.
In the embodiment of the present disclosure, there may be a certain difference in the requirements of each tenant, and in particular, the required business processing logic and page display requirements of each tenant may be different. Therefore, the service processing logic configuration information of each tenant, the page configuration information of each tenant, or the service processing logic configuration information and the page configuration information of each tenant can be deployed in advance on the gateway device based on the application service, so that the gateway device based on the application service can realize the function of personalized configuration service according to the pre-deployed configuration information of the tenant. Optionally, each tenant may dynamically adjust and update the service processing logic configuration information and the page configuration information of each tenant deployed on the gateway device in real time according to its own configuration requirement, so as to ensure that the configuration information deployed on the gateway device meets the tenant requirement.
In the embodiment of the present disclosure, after the identification information of the target tenant is determined, the target service processing logic configuration information associated with the target tenant is obtained according to the identification information of the target tenant and the service processing logic configuration information of each deployed tenant by calling the personalized configuration service function possessed by the gateway device. Or, by calling the personalized configuration service function of the gateway device, the target page configuration information associated with the target tenant is obtained according to the target tenant identification information and the deployed page configuration information of each tenant. Or, by calling the personalized configuration service function of the gateway device, the target business processing logic configuration information and the target page configuration information associated with the target tenant are obtained according to the target tenant identification information and the deployed business processing logic configuration information and the target page configuration information of each tenant.
S340, based on the target service processing logic and/or the target page configuration information, the service processing request is sent to the target cluster so as to indicate the target cluster to process the service processing request based on the target service processing logic and/or the target page configuration information.
In the embodiment of the present disclosure, after determining the target service processing logic and/or the target page configuration information associated with the target tenant, the service processing request of the target tenant may be sent to the target cluster based on the target service processing logic and/or the target page configuration information associated with the target tenant. Furthermore, under the target cluster, while processing the service processing request of the target tenant, target service processing logic and/or target page configuration information associated with the target tenant can be dynamically loaded. The target page configuration information may include information configured for a background color of the page, a brightness of the page, and the like.
The embodiment of the present disclosure provides a service processing scheme, which not only can implement the functions and effects of the foregoing embodiments, but also can read personalized configuration information associated with a target tenant that is deployed in advance and attach the configuration information to a service processing request when the service processing request is sent to a target cluster, so as to ensure that different tenants can have different service processing logics and personalized page display effects when the service processing request is subsequently processed by the target cluster, thereby satisfying the personalized requirements of different tenants.
On the basis of the various alternatives of the foregoing embodiment, optionally, after determining target tenant identification information in response to a service processing request of a target tenant, the method further includes: and based on the tenant checking rule, checking the validity of the target tenant according to the target tenant identification information.
In the embodiment of the disclosure, the permissions of the tenants are different, some tenants may have permissions for some clusters, and some tenants may not have permissions for some clusters. For this reason, the tenant check rule may be pre-deployed on the application service based gateway device, so that the application service based gateway device can implement the security check service function according to the pre-deployed tenant check rule. After determining the target tenant identification information of the target tenant, validity verification can be performed on the target tenant based on the tenant verification rule. Optionally, when validity of the target tenant is checked, the validity of the target tenant call cluster is checked, the validity of the login information of the target tenant is checked, and whether the target tenant is in a blacklist is checked and filtered when the target tenant is in the blacklist. By adopting the mode, the authority of the target tenant can be uniformly checked on the gateway equipment, the effectiveness of calling the cluster by the target tenant, the effectiveness of the login information of the tenant and whether the target tenant is in the blacklist are verified, the problems that the same authority check is performed on each cluster, time and labor are wasted, the performance is not good, the safety is worried about without the check are solved, and the complexity caused by the fact that the authority is checked in each cluster can be avoided while the safety is ensured.
Fig. 4 shows a schematic structural diagram of a service processing apparatus based on an application service provided in an embodiment of the present disclosure, which is applicable to a case of processing a service processing request of a tenant in an application service field of multiple tenants, especially a case of processing a service processing request of a tenant in an SaaS application service field of multiple tenants. The apparatus can be implemented in software and/or hardware, and the apparatus can be configured in an application service-based gateway device with a network communication function.
As shown in fig. 4, the service processing apparatus based on application service provided in the embodiment of the present disclosure is configured in a gateway device of application service, where cluster configuration information of each tenant is deployed in the gateway device; a tenant in the cluster configuration information is associated with a unique cluster. The business processing device based on the application service can comprise: an identity determination module 401, a cluster determination module 402 and a traffic processing module 403. Wherein:
an identifier determining module 401, configured to determine, in response to a service processing request of a target tenant, target tenant identifier information;
a cluster determining module 402, configured to match the target tenant identification information with cluster configuration information of each deployed tenant, and determine a target cluster associated with the target tenant;
a service processing module 403, configured to send the service processing request to the target cluster, so as to instruct the target cluster to process the service processing request.
On the basis of the foregoing embodiment, optionally, the identifier determining module 401 includes:
the system comprises a service processing request receiving unit, a service processing request sending unit and a service processing request sending unit, wherein the service processing request receiving unit is used for receiving a service processing request sent by a target tenant through a target uniform resource locator, and the target uniform resource locator carries first identification information of the target tenant; the service processing request comprises second identification information of a target tenant;
and the tenant identification information determining unit is used for determining the target tenant identification information if the first identification information of the target tenant is the same as the second identification information of the target tenant.
On the basis of the foregoing embodiment, optionally, the apparatus further includes:
a cluster configuration information determining module 404, configured to determine, according to load information of each available cluster of the application service, cluster configuration information of each tenant; alternatively, the first and second electrodes may be,
the cluster configuration information determining module 404 is configured to determine cluster configuration information of each tenant according to load information of each available cluster of the application service and cluster demand information of each tenant.
On the basis of the above embodiment, optionally, service processing logic configuration information and/or page configuration information of each tenant is also deployed in the gateway device of the application service;
the service processing module 403 includes:
the configuration information processing unit is used for matching the target tenant identification information with the service processing logic configuration information and/or the page configuration information of each deployed tenant and determining target service processing logic and/or target page configuration information associated with the target tenant;
and the service processing unit is used for sending the service processing request to the target cluster based on the target service processing logic and/or the target page configuration information so as to indicate the target cluster to process the service processing request based on the target service processing logic and/or the target page configuration information.
On the basis of the above embodiment, optionally, a tenant check rule is also deployed in the gateway device of the application service; the device further comprises:
and a tenant check module 405, configured to perform validity check on the target tenant according to the target tenant identification information based on the tenant check rule.
The application service-based service processing apparatus provided in the embodiment of the present disclosure may execute the application service-based service processing method provided in any embodiment of the present disclosure, and has a function and a beneficial effect corresponding to the execution of the application service-based service processing method.
Fig. 5 shows a schematic structural diagram of a gateway device provided in an embodiment of the present disclosure. Referring specifically to fig. 5, a schematic structural diagram of a gateway device 500 suitable for implementing embodiments of the present disclosure is shown. The gateway device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 5, the gateway device 500 may include a processing means (e.g., central processing unit, graphics processor, etc.) 501 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the gateway apparatus 500 are also stored. The processing device 501, the ROM502, and the RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Generally, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 507 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage devices 508 including, for example, magnetic tape, hard disk, etc.; and a communication device 509. The communication means 509 may allow the gateway apparatus 500 to perform wireless or wired communication with other apparatuses to exchange data. While fig. 5 illustrates a gateway apparatus 500 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an application service based business processing method provided in the foregoing embodiment of the present disclosure, the process of the application service based business processing described above with reference to the flowchart may be implemented as a computer software program. For example, embodiments of the present disclosure may include a computer program product comprising a computer program embodied on a computer readable medium, the computer program containing program code for performing the application service based business process method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. When executed by the processing device 501, the computer program performs the above-described functions defined in the technical solutions of the application service based business processing methods provided in the foregoing embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the gateway device; or may exist separately without being assembled into the gateway device.
Optionally, the computer readable medium carries one or more programs which, when executed by the gateway device, cause the gateway device to: responding to a business processing request of a target tenant, and determining identification information of the target tenant; matching the target tenant identification information with the cluster configuration information of each deployed tenant, and determining a target cluster associated with the target tenant; and sending the service processing request to the target cluster to indicate the target cluster to process the service processing request.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (10)

1. A business processing method based on application service is characterized in that the business processing method is executed by gateway equipment of the application service, and cluster configuration information of each tenant is deployed in the gateway equipment; a tenant in the cluster configuration information is associated with a unique cluster; the method comprises the following steps:
responding to a business processing request of a target tenant, and determining identification information of the target tenant;
matching the target tenant identification information with the cluster configuration information of each deployed tenant, and determining a target cluster associated with the target tenant;
sending the service processing request to the target cluster to indicate the target cluster to process the service processing request;
the method further comprises the following steps: dynamically adjusting cluster configuration information pre-deployed on gateway equipment according to load information of each available cluster of the application service, and determining cluster configuration information of each tenant; or dynamically adjusting cluster configuration information pre-deployed on the gateway device according to the load information of each available cluster of the application service and the cluster demand information of each tenant, and determining the cluster configuration information of each tenant.
2. The method of claim 1, wherein determining target tenant identification information in response to a target tenant's business process request comprises:
receiving a service processing request sent by a target tenant through a target uniform resource locator, wherein the target uniform resource locator carries first identification information of the target tenant; the service processing request comprises second identification information of a target tenant;
and if the first identification information of the target tenant is the same as the second identification information of the target tenant, determining the identification information of the target tenant.
3. The method according to claim 1, wherein business processing logic configuration information and/or page configuration information of each tenant is also deployed in the gateway device of the application service;
sending the service processing request to the target cluster to instruct the target cluster to process the service processing request, including:
matching the target tenant identification information with service processing logic configuration information and/or page configuration information of each deployed tenant, and determining target service processing logic and/or target page configuration information associated with the target tenant;
and sending the service processing request to the target cluster based on the target service processing logic and/or the target page configuration information so as to instruct the target cluster to process the service processing request based on the target service processing logic and/or the target page configuration information.
4. The method according to claim 1, wherein a tenant check rule is also deployed in the gateway device of the application service; after determining the target tenant identification information, the method further comprises the following steps:
and based on the tenant checking rule, checking the validity of the target tenant according to the target tenant identification information.
5. The business processing device based on the application service is characterized by being configured in gateway equipment of the application service, wherein cluster configuration information of each tenant is deployed in the gateway equipment; a tenant in the cluster configuration information is associated with a unique cluster; the device comprises:
the identification determining module is used for responding to the service processing request of the target tenant and determining the identification information of the target tenant;
the cluster determining module is used for matching the identification information of the target tenant with the cluster configuration information of each deployed tenant and determining a target cluster associated with the target tenant;
the service processing module is used for sending the service processing request to the target cluster so as to indicate the target cluster to process the service processing request;
the device further comprises: the cluster configuration information determining module is used for determining the cluster configuration information of each tenant according to the load information of each available cluster of the application service; alternatively, the first and second electrodes may be,
and the cluster configuration information determining module is used for determining the cluster configuration information of each tenant according to the load information of each available cluster of the application service and the cluster demand information of each tenant.
6. The apparatus of claim 5, wherein the identity determination module comprises:
the system comprises a service processing request receiving unit, a service processing request sending unit and a service processing request sending unit, wherein the service processing request receiving unit is used for receiving a service processing request sent by a target tenant through a target uniform resource locator, and the target uniform resource locator carries first identification information of the target tenant; the service processing request comprises second identification information of a target tenant;
and the tenant identification information determining unit is used for determining the target tenant identification information if the first identification information of the target tenant is the same as the second identification information of the target tenant.
7. The apparatus according to claim 5, wherein business processing logic configuration information and/or page configuration information of each tenant is further deployed in the gateway device of the application service;
the service processing module comprises:
the configuration information processing unit is used for matching the target tenant identification information with the service processing logic configuration information and/or the page configuration information of each deployed tenant and determining target service processing logic and/or target page configuration information associated with the target tenant;
and the service processing unit is used for sending the service processing request to the target cluster based on the target service processing logic and/or the target page configuration information so as to indicate the target cluster to process the service processing request based on the target service processing logic and/or the target page configuration information.
8. The apparatus according to claim 5, wherein a tenant check rule is further deployed in the gateway device of the application service; the device further comprises:
and the tenant checking module is used for checking the validity of the target tenant according to the target tenant identification information based on the tenant checking rule.
9. A gateway device, comprising:
one or more processing devices;
storage means for storing one or more programs;
when executed by the one or more processing devices, cause the one or more processing devices to implement the application service based business processing method of any one of claims 1-4.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when executed by a processing device, implements the application service based traffic processing method of any of claims 1-4.
CN201910407401.1A 2019-05-16 2019-05-16 Service processing method, device, gateway equipment and medium based on application service Active CN110138862B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910407401.1A CN110138862B (en) 2019-05-16 2019-05-16 Service processing method, device, gateway equipment and medium based on application service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910407401.1A CN110138862B (en) 2019-05-16 2019-05-16 Service processing method, device, gateway equipment and medium based on application service

Publications (2)

Publication Number Publication Date
CN110138862A CN110138862A (en) 2019-08-16
CN110138862B true CN110138862B (en) 2022-03-04

Family

ID=67574608

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910407401.1A Active CN110138862B (en) 2019-05-16 2019-05-16 Service processing method, device, gateway equipment and medium based on application service

Country Status (1)

Country Link
CN (1) CN110138862B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110784551A (en) * 2019-11-05 2020-02-11 中国建设银行股份有限公司 Data processing method, device, equipment and medium based on multiple tenants
CN111092816B (en) * 2019-11-26 2022-02-15 金蝶软件(中国)有限公司 Gateway dynamic routing method, gateway dynamic routing device, computer equipment and storage medium
CN111064786B (en) * 2019-12-17 2022-09-20 联通物联网有限责任公司 Account identifier management method and device
CN111405058B (en) * 2020-03-24 2023-05-02 浪潮通用软件有限公司 Multi-mobile terminal multi-tenant application notification method, device, equipment and medium
CN113495921B (en) * 2020-04-02 2023-09-26 北京京东振世信息技术有限公司 Routing method and device for database cluster
CN111865980B (en) * 2020-07-20 2022-08-12 北京百度网讯科技有限公司 Information processing method and device of information storage center
CN114095571A (en) * 2020-07-30 2022-02-25 中移(苏州)软件技术有限公司 Data processing method, data service bus, terminal and storage medium
CN112182375A (en) * 2020-09-27 2021-01-05 中国建设银行股份有限公司 Demand response method, device, medium and platform of integrated service platform
CN112929271B (en) * 2021-02-04 2022-05-20 华控清交信息科技(北京)有限公司 Route configuration method and device for configuring route
CN113839999A (en) * 2021-09-18 2021-12-24 上海明略人工智能(集团)有限公司 Multi-cluster-based device callback distribution method, system, device and storage medium
CN113905083A (en) * 2021-10-15 2022-01-07 上海商汤临港智能科技有限公司 User code operation method and device, electronic equipment and storage medium
CN114095419B (en) * 2021-11-12 2023-11-28 软通动力信息技术(集团)股份有限公司 Cluster routing method, device, system and storage medium
CN114615340B (en) * 2022-03-08 2023-10-20 抖音视界有限公司 Request processing method and device, computer equipment and storage device
CN114745757B (en) * 2022-04-22 2023-07-25 苏州浪潮智能科技有限公司 Cluster switching method, device, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103957246A (en) * 2014-04-22 2014-07-30 广州杰赛科技股份有限公司 Dynamic load balancing method and system based on tenant sensing
CN104601622A (en) * 2013-10-31 2015-05-06 国际商业机器公司 Method and system for deploying cluster
CN106559488A (en) * 2016-11-24 2017-04-05 天津市普迅电力信息技术有限公司 A kind of method of the electrical network geographical information space service for setting up tenant's driving
CN108108986A (en) * 2017-12-29 2018-06-01 广州市玄武无线科技股份有限公司 A kind of design method of CRM system, device and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9838376B1 (en) * 2016-05-11 2017-12-05 Oracle International Corporation Microservices based multi-tenant identity and data security management cloud service

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601622A (en) * 2013-10-31 2015-05-06 国际商业机器公司 Method and system for deploying cluster
CN103957246A (en) * 2014-04-22 2014-07-30 广州杰赛科技股份有限公司 Dynamic load balancing method and system based on tenant sensing
CN106559488A (en) * 2016-11-24 2017-04-05 天津市普迅电力信息技术有限公司 A kind of method of the electrical network geographical information space service for setting up tenant's driving
CN108108986A (en) * 2017-12-29 2018-06-01 广州市玄武无线科技股份有限公司 A kind of design method of CRM system, device and electronic equipment

Also Published As

Publication number Publication date
CN110138862A (en) 2019-08-16

Similar Documents

Publication Publication Date Title
CN110138862B (en) Service processing method, device, gateway equipment and medium based on application service
JP7203444B2 (en) Selectively provide mutual transport layer security using alternate server names
CN109889621B (en) Configuration method and device of virtual private cloud service
CN112910692B (en) Method, system and medium for controlling service grid flow based on micro service gateway
US9753786B2 (en) Client server communication system
CN113572689A (en) Microservice gateway management method, system, device, readable storage medium and product
US20140201379A1 (en) Method and apparatus for automated network connectivity for managed application components within a cloud
CN111818034A (en) Network access control method, device, electronic equipment and medium
CN110996372B (en) Message routing method, device and system and electronic equipment
CN112202744A (en) Multi-system data communication method and device
CN105763545B (en) A kind of BYOD method and device
CN112905338B (en) Automatic computing resource allocation method and device
CN112953992B (en) Network system, communication and networking method, device and storage medium
CN113342457A (en) Kubernetes scheduling method based on registration and discovery of Eureka service
US20220329529A1 (en) 5g filters for virtual network functions
CN113114503B (en) Deployment method and device based on application delivery network requirements
CN114513552A (en) Data processing method, device, equipment and storage medium
US10536389B1 (en) Biased selection of dedicated physical connections to provider network
CN111049949B (en) Domain name identification method and device, electronic equipment and medium
CN114760360A (en) Request response method and device, electronic equipment and computer readable storage medium
CN113127550A (en) Information processing method, information processing device, electronic equipment and storage medium
CN116319322B (en) Power equipment node communication connection method, device, equipment and computer medium
CN111182062A (en) Service multi-live calling method and system and electronic equipment
CN116599846A (en) Inter-tenant network connection method, inter-tenant network connection device, electronic equipment and computer readable medium
CN115604333B (en) Distributed big data analysis service scheduling method and system based on dubbo

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