Service providing method, device, agent and medium under enterprise service bus architecture
By setting up a gateway proxy for the data center under the enterprise service bus architecture and selecting plaintext or encrypted forwarding strategies according to the service type, the problems of high system complexity, high cost, high latency, and low stability in existing technologies are solved, and efficient and secure service calls are achieved.
Patent Information
- Application Number
- CN202510653869.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-20
- Publication Date
- 2026-11-20
AI Technical Summary
The existing end-to-end encryption method under the enterprise service bus architecture increases system complexity and cost, increases latency, and is overly dependent on the stability of the verification server, posing a single point of failure risk.
In an enterprise service bus architecture, a gateway proxy is set up for the data center. The plaintext or encrypted forwarding strategy is selected according to the service type. Encryption and decryption operations are performed only on the gateway proxy, reducing the deployment of cryptographic devices on nodes and distributing the verification logic to reduce dependence on a single server.
It simplifies the system architecture, reduces deployment and maintenance costs, reduces communication latency, improves system performance and stability, enhances security and reliability, and adapts to the service call requirements between different data centers.
Smart Images

Figure CN123145301A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a service provision method, apparatus, agent and medium under an enterprise service bus architecture. Background Technology
[0002] An Enterprise Service Bus (ESB) is an architecture used to enable accurate, efficient, and secure message passing between enterprise applications. It is considered the infrastructure for enterprise integration, connecting different services and applications. As a centralized enterprise service bus, ESB typically employs end-to-end encryption, requiring each intermediate node to deploy cryptographic devices for node-by-node encryption and decryption. The verification mechanism relies on a centralized server.
[0003] In the process of realizing this invention, the inventors discovered that the current end-to-end encryption method under the ESB architecture requires all nodes to be equipped with cryptographic devices to achieve encryption and decryption, which increases the system complexity and cost; each node has to encrypt and decrypt, which will increase the latency significantly; the verification method relies on a separate server, and once the server fails, the entire system may face the risk of interruption, making the reliance on the stability and effectiveness of the server too high. Summary of the Invention
[0004] This invention provides a service provision method, apparatus, agent, and medium under an enterprise service bus architecture, which can reduce system complexity and cost, reduce communication latency, and improve system stability and reliability.
[0005] In a first aspect, the service provision method under the enterprise service bus architecture provided in the embodiments of the present invention is applied to a gateway proxy set up for a local data center, including:
[0006] Responding to service request information received on the preset listening port, identifying the deployment room of the target service requested by the service request information, and obtaining the target room;
[0007] The service type is identified based on the relationship between the local data center and the target data center. The service type includes services within the same data center or services across data centers.
[0008] The information forwarding strategy is determined based on the service type. The information forwarding strategy includes plaintext forwarding or encrypted forwarding. The information forwarding strategy for services within the same data center is plaintext forwarding, while the information forwarding strategy for services across data centers is encrypted forwarding.
[0009] According to the determined information forwarding strategy, the service request information is forwarded to the service instance deployed in the target data center to provide the target service.
[0010] Secondly, the service providing device under the enterprise service bus architecture provided in the embodiments of the present invention is applied to a gateway proxy set up for a local data center, including:
[0011] The data center identification module is used to respond to service request information received through a preset listening port, identify the data center where the target service is deployed, and obtain the target data center.
[0012] The type identification module is used to identify the service type based on the relationship between the local data center and the target data center. The service type includes services within the same data center or services across data centers.
[0013] The strategy determination module is used to determine the information forwarding strategy based on the service type. The information forwarding strategy includes plaintext forwarding or encrypted forwarding. The information forwarding strategy for services within the same data center is plaintext forwarding, and the information forwarding strategy for services across data centers is encrypted forwarding.
[0014] The forwarding module is used to forward service request information to the service instance deployed in the target data center to provide the target service, according to a defined information forwarding strategy.
[0015] Thirdly, the gateway proxy provided in the embodiments of the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements a service provision method under the enterprise service bus architecture as described in any embodiment of the present invention.
[0016] Fourthly, the computer-readable storage medium provided in the embodiments of the present invention stores a computer program thereon, which, when executed by a processor, implements a service provision method under an enterprise service bus architecture as described in any embodiment of the present invention.
[0017] In this embodiment of the invention, a gateway proxy is set up for the data center. Data is encrypted when providing cross-data center services, but not when providing intra-data center services. This eliminates the need to deploy cryptographic devices on all nodes; necessary encryption and decryption operations are performed only at the gateway proxy, greatly simplifying the system architecture and reducing deployment and maintenance costs. Encrypted forwarding is used only for cross-data center services, while plaintext forwarding is maintained for intra-data center services, avoiding encryption and decryption operations at each node, reducing communication latency, and improving system performance. Distributing the verification logic to the gateway proxy reduces dependence on a single verification server, lowers the risk of single points of failure, and enhances system stability and reliability. For cross-data center service requests, encrypted forwarding ensures data security during transmission; plaintext forwarding for intra-data center services is suitable for relatively secure internal network environments, optimizing performance while ensuring security. This invention better adapts to the service call requirements between different data centers under an enterprise service bus architecture, providing a more flexible and efficient solution for service calls under this architecture. Attached Figure Description
[0018] To more clearly illustrate the technical solution of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This is a flowchart illustrating a service provision method under an enterprise service bus architecture provided in an embodiment of the present invention.
[0020] Figure 2 This is another flowchart illustrating the service provision method under the enterprise service bus architecture provided in this embodiment of the invention;
[0021] Figure 3 This is an example diagram of the data configuration process provided in an embodiment of the present invention;
[0022] Figure 4 This is an example diagram of a service provision method provided in an embodiment of the present invention;
[0023] Figure 5 This is a schematic diagram of a service provisioning device under the enterprise service bus architecture provided in an embodiment of the present invention;
[0024] Figure 6 This is a schematic diagram of a gateway proxy provided in an embodiment of the present invention. Detailed Implementation
[0025] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0026] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0027] Figure 1 This is a flowchart illustrating a service provision method under an enterprise service bus architecture provided in this embodiment of the invention. The service provision method under the enterprise service bus architecture provided in this embodiment of the invention is applicable to scenarios where services deployed in various enterprise data centers are invoked. The service provision method can be executed by a service provision device provided in this embodiment of the invention, which can be implemented in software and / or hardware. In a specific embodiment, this device can be integrated into a gateway proxy. The following embodiment illustrates this by integrating the service provision device into a gateway proxy. A data center can have one or more gateway proxies; see [reference]. Figure 1 This embodiment describes the service provision method from the perspective of setting up any gateway proxy in the local data center. The service provision method in this embodiment may include the following steps:
[0028] Step 101: Respond to the service request information received on the preset listening port, identify the deployment room of the target service requested by the service request information, and obtain the target room.
[0029] A pre-configured listening port is a network port pre-set for the gateway proxy to receive service request information. It can be understood as the gateway proxy's entry point, listening for incoming requests. Through this port, the gateway proxy can capture service request information sent to it. Service request information can be Hypertext Transfer Protocol (HTTP) request information, indicating the service the requester wants to invoke and related parameters. The requester can be a client or a service initiator. Service request information can include request headers and a request body. The request header provides metadata and control information, while the request body contains specific business data. Taking an e-commerce scenario as an example, the request header may include the request method (e.g., GET, POST), a Uniform Resource Locator (URL), etc. The request method indicates the type of operation on the resource, and the URL points to a specific resource or service endpoint; for example, `order-service` in the URL indicates an order service. E-commerce scenarios may involve user services, order services, and payment services. For user services, the request body may contain the user's personal information; for order services, the request body may contain order details; and for payment services, the request body may contain payment information.
[0030] The target service is the service that the requesting party wants to invoke, which provides specific functions or resources. Examples include order services, payment services, and inventory services in an e-commerce system. A data center is the physical or logical location where the service resides. A company may have multiple data centers, deployed in different geographical locations, to host different services or implement disaster recovery and backup functions. The target data center is the finally determined data center where the target service is located.
[0031] After receiving service request information through a pre-defined listening port, the gateway proxy parses the content to determine the data center where the target service corresponding to the request is located, i.e., the target data center. The target data center has a data center identifier, which can be a data center name, label, or number.
[0032] Taking an e-commerce scenario as an example, assuming an e-commerce system built using an Enterprise Service Bus (ESB) architecture, it can utilize data centers deployed in various locations to provide user services, order services, inventory services, and payment services. User services handle user-related business logic, including user registration, login, personal information management, and permission management. Order services handle order-related business logic, including order creation, order status updates, and order detail queries. Inventory services manage product inventory, including querying inventory quantities and deducting inventory. Payment services handle payment-related business logic, including payment verification, deductions, and refunds. These services collaborate within the e-commerce system to complete the entire e-commerce transaction process. For example, when a user places an order, the order service creates a new order, calls the inventory service to deduct the corresponding product inventory, and simultaneously calls the payment service to complete the payment. Throughout this process, the user service provides user authentication and authorization information.
[0033] Suppose an e-commerce system deploys data centers A, B, and C, providing different services. Data center A is the local data center, providing order and payment services; data center B provides inventory services; and data center C provides user services. A user's order placement request is sent to the listening port of the gateway proxy in the local data center. The gateway proxy in data center A parses the target service address in the request and determines that the target service is the order service. Based on the pre-configured service-data center mapping, it determines that the order service is deployed in data center A, thus identifying data center A as the target data center. After the user completes the order, a payment request is initiated. This payment request is sent to the listening port of the gateway proxy in the local data center. The gateway proxy in data center A parses the target service address in the request and determines that the target service is the payment service. Based on the pre-configured service-data center mapping, it determines that the payment service is deployed in data center B, thus identifying data center B as the target data center.
[0034] Step 102: Identify the service type based on the relationship between the local data center and the target data center. The service type includes services within the same data center or services across data centers.
[0035] The relationship between the local data center and the target data center includes whether the target data center is the local data center or not. Service type refers to the type of service request determined based on the relationship between the target and local data centers, used to decide subsequent processing strategies. The gateway proxy can determine whether the data center identifier of the target data center is the same as the data center identifier of the local data center. If they are the same, the target data center is determined to be the local data center; if they are different, the target data center is determined to be not the local data center.
[0036] Continuing the previous example, if the local data center is data center A, when the gateway proxy of data center A receives a service request, and the target service is an order service deployed in data center A, the gateway proxy identifies the service type as a same-data center service based on the shared relationship between the local data center (data center A) and the target data center (data center A). However, if the target service is an inventory service deployed in data center B, the gateway proxy identifies the service type as a cross-data center service based on the different relationship between the local data center (data center A) and the target data center (data center B).
[0037] Step 103: Determine the information forwarding strategy based on the service type. The information forwarding strategy includes plaintext forwarding or encrypted forwarding. The information forwarding strategy for services within the same data center is plaintext forwarding, and the information forwarding strategy for services across data centers is encrypted forwarding.
[0038] Information forwarding strategy refers to the method selected by the gateway proxy to handle requests based on the service type, including plaintext forwarding and encrypted forwarding. Plaintext forwarding means that when providing services within the same data center, the request information is transmitted in unencrypted form within the local data center. This strategy leverages the relative security of the data center's internal network and avoids the performance overhead of encryption and decryption. Encrypted forwarding means that when providing services across different data centers, the request information is encrypted before transmission to ensure the security and confidentiality of data during network transmission between different data centers.
[0039] The gateway proxy determines the information forwarding strategy based on the service type (same data center or different data centers). For services within the same data center, since the internal network is relatively secure, a plaintext forwarding strategy is used, and request information is transmitted unencrypted within the local data center to reduce the performance overhead of encryption and decryption. For services across different data centers, to ensure the security of data transmission over external networks, a ciphertext forwarding strategy is used, and request information is encrypted before transmission.
[0040] Continuing with the previous example, if the local data center is data center A, and the target service is the order service deployed in data center A, then the information forwarding strategy is determined to be plaintext forwarding. If the target service is the inventory service deployed in data center B, then the information forwarding strategy is determined to be encrypted forwarding.
[0041] Step 104: Forward the service request information to the service instance deployed in the target data center to provide the target service according to the determined information forwarding strategy.
[0042] A service instance is a specific unit of service execution; it can be understood as an actual server or container that deploys and runs a specific service program to handle related business logic. In a data center, a service may have multiple instances to achieve high availability and load balancing. For example, the order service in data center A may have multiple service instances, each capable of independently handling order-related requests.
[0043] Suppose that in data center A, the order service needs to call the payment service. Once the gateway proxy in data center A determines to use a plaintext forwarding strategy, it will send the request directly to the payment service instance within data center A. Since it's a call within the same data center, using plaintext reduces the overhead of encryption and decryption, improving efficiency. Conversely, suppose the order service in data center A needs to call the inventory service in data center B. The gateway proxy in data center A uses a encrypted forwarding strategy, first encrypting the request before sending it to the inventory service instance within data center B. This ensures secure data transmission between different data centers.
[0044] In this embodiment, a gateway proxy is set up for the data center. Data is encrypted when providing cross-data center services, but not when providing intra-data center services. This eliminates the need to deploy cryptographic devices on all nodes; necessary encryption and decryption operations are performed only at the gateway proxy, significantly simplifying the system architecture and reducing deployment and maintenance costs. Encrypted forwarding is used only for cross-data center services, while plaintext forwarding is maintained for intra-data center services, avoiding encryption and decryption operations at each node, significantly reducing communication latency and improving system performance. Distributing the verification logic to the gateway proxy reduces reliance on a single verification server, lowers the risk of single points of failure, and enhances system stability and reliability. For cross-data center service requests, encrypted forwarding ensures data security during transmission; plaintext forwarding for intra-data center services is suitable for relatively secure internal network environments, optimizing performance while ensuring security. This invention better adapts to the service call requirements between different data centers under an enterprise service bus architecture, providing a more flexible and efficient solution for service calls under this architecture.
[0045] Figure 2 This is another flowchart illustrating the service provision method under the enterprise service bus architecture provided in this embodiment of the invention. (In the introduction...) Figure 2 Before describing the method, let's first introduce the configuration required to implement the service provision method of this embodiment of the invention. Figure 3 This is an example diagram of the data configuration process provided in an embodiment of the present invention, such as... Figure 3 As shown:
[0046] The entire configuration process involves components such as a management platform, configuration database, service control center, and gateway proxy. Each data center can have a corresponding management platform, service control center, and gateway proxy. These components collaborate to configure selective data encryption for certain parts of the service call chain. Specifically, the management platform interacts with the configuration database to publish configuration events based on manual operations and trigger the service control center to retrieve configuration information. The configuration database stores all configuration information, such as certificates, clusters, data centers, and application service routes. The service control center subscribes to configuration events and, upon triggering an event, retrieves configuration information from the configuration database or management platform, assembles it, and provides it to the gateway proxy. The gateway proxy retrieves configuration information from the service control center and processes requests based on this information. Data centers are interconnected; when a configuration event is published, all data centers can subscribe. The entire configuration involves the following layers:
[0047] (1) Data Modeling. The aim is to construct a complete service information model to provide basic data support for subsequent request processing and forwarding, including:
[0048] Certificate management involves creating various certificates for encrypted communication, including client certificates, client private keys, server certificates, server private keys, and root certificates. These certificates are crucial for secure communication, used to verify the identities of both parties during encrypted communication.
[0049] Data center modeling involves creating data center information and recording the attributes of each data center (such as geographical location and network environment) to enable correct routing decisions based on data center information during request forwarding.
[0050] Cluster modeling, adding cluster node information, and marking the data center to which the nodes belong helps to quickly locate the data center and cluster where the service is located when making service calls, providing accurate address information for subsequent request forwarding.
[0051] Application and service modeling creates applications and services associated with the cluster, clarifies the relationships between applications and services, and their deployment in different clusters, providing application-level logical support for request routing and forwarding.
[0052] (2) Control plane configuration. The control plane is responsible for managing and distributing configuration information to ensure that the gateway proxy can correctly process requests according to preset rules, including:
[0053] When deploying the control plane service, specify a data center label for each service instance. This label is used to subsequently issue personalized configurations to the gateway proxy, enabling the gateway proxy to adopt different configuration strategies based on the data center it resides in.
[0054] Data from the data modeling layer is distributed to the gateway proxy, including information such as certificates, clusters, data centers, and application service routes created during the data modeling process. This data serves as the basis for the gateway proxy to process and forward requests.
[0055] Configure the relationship between the gateway cluster and the gateway proxy ports, and define the correspondence between the ports that the gateway cluster and the gateway proxy need to be opened by default. This ensures that the gateway proxy knows which ports are used to receive and forward requests, and provides explicit configuration for the entry and exit points of requests.
[0056] Configure application service routing. Based on the distributed data, configure the transport socket configuration of the upstream cluster of the application service route, and set the metadata hit conditions (e.g., enable MTLS) and matching conditions (e.g., accept MTLS as true). This step determines the conditions under which encrypted communication is enabled, providing configuration assurance for the security of cross-datacenter requests.
[0057] (3) Gateway front-end configuration. The gateway front-end (i.e., gateway proxy) dynamically adjusts its behavior based on the configuration issued by the control plane to correctly handle and serve requests, including:
[0058] When deploying a gateway front-end, a data center label is attached to it. This label corresponds to the data center label of the control plane service. It is used by the gateway front-end to identify the data center it is in and obtain the corresponding configuration from the control plane accordingly.
[0059] By listening to control plane data, the gateway proxy retrieves control plane data by listening to a designated port on the control plane based on a preset protocol. This allows the gateway proxy to obtain the latest configuration information in real time, ensuring that its behavior is consistent with the control plane configuration.
[0060] Personalized and dynamic configuration: Gateway agents utilize tagged data center labels to enable dynamic and personalized configurations for gateway front-ends in different data centers. Each data center's gateway front-end can dynamically adjust its configuration based on its own data center label to adapt to the specific needs of different data centers.
[0061] Cross-datacenter personalized configuration allows for the configuration of upstream services for ports opened across different datacenters through gateway-front-end configuration. This enables the gateway-front-end to correctly forward requests based on the target datacenter's configuration during cross-datacenter calls, ensuring smooth cross-datacenter communication.
[0062] By employing a publish-subscribe model for configuration, publishers and subscribers do not need to be directly associated, reducing the coupling between system components and facilitating independent development, deployment, and expansion. Configuration changes can be quickly pushed to subscribers without requiring service restarts or manual intervention, ensuring the system responds promptly to changes. Through this configuration process, the system can dynamically adjust request forwarding strategies based on service type (same data center or different data centers), enabling flexible switching between plaintext and encrypted forwarding. This ensures data security while optimizing system performance and efficiency.
[0063] The following description, in conjunction with the above configuration, further illustrates the service provision method under the enterprise service bus architecture provided in this embodiment of the invention, such as... Figure 2 As shown, the method in this embodiment includes:
[0064] Step 201: Obtain the information forwarding strategy from the service management center of the local data center.
[0065] Specifically, when the gateway proxy starts, it can proactively connect to the service management center of the local data center to obtain the pre-configured information forwarding policy. The information forwarding policy of the service management center is obtained from the local data center's management platform when the service management center subscribes to the forwarding policy configuration event published to the configuration database by the local data center's management platform.
[0066] Step 202: Respond to the service request information received on the preset listening port, identify the deployment room of the target service requested by the service request information, and obtain the target room.
[0067] The gateway proxy can parse the service identifier of the target service from the received service request information. The service identifier can be a domain name or part of a path in a Uniform Resource Locator (URL). For example, if the URL includes "order-service", then the service identifier is "order-service" (i.e., the order service). The gateway proxy uses the parsed service identifier to query a pre-defined service-to-datacenter mapping table to determine the datacenter identifier of the target datacenter. This mapping table can be pre-configured by the management platform and stored in a configuration database. Assuming that the configuration database already specifies datacenter A as the location of "order-service", the gateway proxy determines that the target service "order-service" is deployed in datacenter A by querying this mapping relationship.
[0068] Step 203: Determine if the target data center is the local data center. If it is, proceed to step 204; otherwise, proceed to step 208.
[0069] The gateway proxy can determine whether the current data center's identifier is the same as the local data center's identifier. If they are the same, it determines that the target data center is the local data center; if they are different, it determines that the target data center is not the local data center.
[0070] Step 204: Determine the service type as same data center service.
[0071] If the target data center is a local data center, then the service type is determined to be same data center service.
[0072] Step 205: Determine the information forwarding strategy as plaintext forwarding.
[0073] Services in the same data center are in the same security environment, so using plaintext forwarding can improve efficiency.
[0074] Step 206: Select the target service instance from the candidate service instances deployed in the local data center to provide the target service.
[0075] The gateway proxy can select a service instance, i.e. the target service instance, from multiple candidate service instances in the local data center based on strategies such as load balancing, round-robin, and random selection.
[0076] Step 207: Forward the plaintext service request information to the target service instance deployed in the local data center.
[0077] Gateway proxies send unencrypted requests directly to the local target service instance, which can efficiently handle requests within the same data center and improve communication efficiency.
[0078] Step 208: Determine the service type as cross-data center service.
[0079] That is, when the target data center is not the local data center, the service type is determined to be a cross-data center service.
[0080] Step 209: Determine the information forwarding strategy as encrypted forwarding.
[0081] Cross-datacenter services involve datacenters in different locations, so using encrypted forwarding can protect data security.
[0082] Step 210: Perform two-way authentication with the gateway proxy of the target data center.
[0083] Two-way authentication refers to the mutual verification of each other's identities by both communicating parties to ensure that both are trustworthy and prevent unauthorized devices or services from impersonating legitimate entities. Specifically, in cross-datacenter service calls, to ensure communication security, the gateway proxy in the local datacenter and the gateway proxy in the target datacenter perform two-way authentication. Only after both parties have successfully authenticated each other will a secure communication channel be established for subsequent encrypted communication.
[0084] The specific process for performing two-way authentication can be as follows:
[0085] During configuration, both the local data center gateway proxy and the target data center gateway proxy generate their own key pairs (including public and private keys) and create a digital certificate containing the public key. This digital certificate is typically signed by a trusted certificate authority. The local and target data center gateway proxies can exchange their digital certificates. Upon receiving the digital certificates, both the local and target data center gateway proxies verify that their certificates are signed by a trusted certificate authority and check the validity period, domain name, and other information. After both parties pass the verification, they negotiate a session key, which will be used to encrypt and decrypt subsequent communication data.
[0086] Step 211: If both-way authentications are successful, encrypt the plaintext service request information using the session key negotiated with the gateway proxy of the target data center.
[0087] The gateway proxy in the local data center can use session keys to encrypt plaintext service request information into ciphertext using a symmetric encryption algorithm.
[0088] Step 212: Forward the encrypted service request information to the gateway proxy set up for the target data center, so that the gateway proxy of the target data center can decrypt the encrypted service request information and forward it to the service instance in the target data center that provides the target service.
[0089] Upon receiving the ciphertext, the gateway proxy in the target data center decrypts it using the negotiated session key and encryption algorithm, restoring it to plaintext service request information. The decrypted plaintext service request information is then forwarded to the service instance in the target data center that provides the target service for subsequent business processing.
[0090] The following examples illustrate the service provision method of this invention, such as... Figure 4 As shown, the service deployment involves data centers A, B, and C. Each data center can deploy multiple gateway proxies and multiple service instances. Assuming an e-commerce scenario, the local data center is data center A, which provides order and payment services; data center B provides inventory services; and data center C provides user services. The following explanation uses gateway proxy 1 in data center A as an example to illustrate request processing.
[0091] An order request from an external user arrives at gateway proxy 1 in data center A. Gateway proxy 1 parses the request and finds that the target service is the order service, located in data center A. Gateway proxy 1 then forwards the request in plaintext directly to either order service instance 1 or instance 2 within data center A.
[0092] The order service needs to query product inventory. The order service triggers an inventory service request. Gateway agent 1 identifies that the inventory service is located in data center B. Gateway agent 1 encrypts the request and sends it to gateway agent 1 in data center B. After decrypting the request, gateway agent 1 in data center B forwards it to inventory service instance 1, instance 2, instance 3 or instance 4 inside data center B.
[0093] After the inventory check meets the requirements, the user initiates a payment service. The payment service needs to obtain user information, which means it needs to request the user service. Gateway agent 1 identifies that the user service is located in data center C. Gateway agent 1 encrypts the request and sends it to gateway agent 1 in data center C. After decrypting the request, gateway agent 1 in data center C forwards it to user service instance 1 or instance 2 inside data center C.
[0094] The response process includes intra-datacenter responses and cross-datacenter responses. For example, an intra-datacenter response might involve a service instance in datacenter A processing the request and returning the response to gateway proxy 1, which then returns the response to the requester. A cross-datacenter response might involve service instances in datacenters B and C processing the request and returning the response to their local gateway proxies (either gateway proxy 1 in datacenter B or gateway proxy 1 in datacenter C). These gateway proxies would encrypt the response and send it back to gateway proxy 1 in datacenter A. Gateway proxy 1 in datacenter A would then decrypt the response and return it to the requester.
[0095] This design ensures that communication between services can be both efficient (plaintext communication within the same data center) and secure (ciphertext communication across data centers) in a multi-data center environment.
[0096] In this embodiment, a gateway proxy is set up for the data center. Data is encrypted when providing cross-data center services, but not when providing intra-data center services. This eliminates the need to deploy cryptographic devices on all nodes; necessary encryption and decryption operations are performed only at the gateway proxy, significantly simplifying the system architecture and reducing deployment and maintenance costs. Encrypted forwarding is used only for cross-data center services, while plaintext forwarding is maintained for intra-data center services, avoiding encryption and decryption operations at each node, significantly reducing communication latency and improving system performance. Distributing the verification logic to the gateway proxy reduces reliance on a single verification server, lowers the risk of single points of failure, and enhances system stability and reliability. For cross-data center service requests, encrypted forwarding ensures data security during transmission; plaintext forwarding for intra-data center services is suitable for relatively secure internal network environments, optimizing performance while ensuring security. This invention better adapts to the service call requirements between different data centers under an enterprise service bus architecture, providing a more flexible and efficient solution for service calls under this architecture.
[0097] Figure 5This is a schematic diagram of a service provisioning apparatus under an enterprise service bus architecture provided in an embodiment of the present invention. This apparatus is suitable for executing the service provisioning method under an enterprise service bus architecture provided in an embodiment of the present invention, such as... Figure 5 As shown, the device may specifically include:
[0098] The data center identification module 501 is used to respond to the service request information received by the preset listening port, identify the deployment data center of the target service requested by the service request information, and obtain the target data center.
[0099] The type identification module 502 is used to identify the service type based on the relationship between the local data center and the target data center. The service type includes services within the same data center or services across data centers.
[0100] The strategy determination module 503 is used to determine the information forwarding strategy according to the service type. The information forwarding strategy includes plaintext forwarding or ciphertext forwarding. The information forwarding strategy for services in the same data center is plaintext forwarding, and the information forwarding strategy for services across data centers is ciphertext forwarding.
[0101] Forwarding module 504 is used to forward service request information to the service instance deployed in the target data center to provide the target service in accordance with the determined information forwarding strategy.
[0102] In one embodiment, the data center identification module 501 identifies the deployment data center of the target service requested by the service request information, and obtains the target data center, including:
[0103] Parse the service request information to obtain the service identifier of the target service;
[0104] The target data center is obtained by querying the mapping relationship between the service identifier and the data center.
[0105] In one embodiment, the type identification module 502 identifies the service type based on the relationship between the local data center and the target data center, including:
[0106] If the target data center is a local data center, the identified service type is "service within the same data center".
[0107] If the target data center is not the local data center, the service type is identified as a cross-data center service.
[0108] In one embodiment, the information forwarding strategy is plaintext forwarding. The forwarding module 504 forwards the service request information to the service instance deployed in the target data center to provide the target service according to the determined information forwarding strategy, including:
[0109] Select the target service instance from the candidate service instances deployed in the local data center to provide the target service;
[0110] The plaintext service request information is forwarded to the target service instance deployed in the local data center.
[0111] In one embodiment, the information forwarding strategy is encrypted forwarding. The forwarding module 504 forwards the service request information to the service instance deployed in the target data center to provide the target service according to the determined information forwarding strategy, including:
[0112] Encrypt the plaintext service request information to obtain the ciphertext service request information;
[0113] The encrypted service request information is forwarded to the gateway proxy set up for the target data center, so that the gateway proxy of the target data center can decrypt the encrypted service request information and forward it to the service instance in the target data center that provides the target service.
[0114] In one embodiment, the forwarding module 504 encrypts the plaintext service request information, including:
[0115] Perform two-way authentication with the gateway proxy of the target data center;
[0116] If both authentication methods are successful, the plaintext service request information is encrypted using the session key negotiated with the gateway proxy of the target data center.
[0117] In one embodiment, the device further includes:
[0118] The acquisition module is used to obtain information forwarding policies from the service management center of the local data center. The information forwarding policies of the service management center are obtained from the local data center's management platform when the service management center subscribes to the forwarding policy configuration event published by the local data center's management platform to the configuration database.
[0119] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional modules is merely an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the functional modules described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0120] In this embodiment, a gateway proxy is set up for the data center. Data is encrypted when providing cross-data center services, but not when providing intra-data center services. This eliminates the need to deploy cryptographic devices on all nodes; necessary encryption and decryption operations are performed only at the gateway proxy, significantly simplifying the system architecture and reducing deployment and maintenance costs. Encrypted forwarding is used only for cross-data center services, while plaintext forwarding is maintained for intra-data center services, avoiding encryption and decryption operations at each node, significantly reducing communication latency and improving system performance. Distributing the verification logic to the gateway proxy reduces reliance on a single verification server, lowers the risk of single points of failure, and enhances system stability and reliability. For cross-data center service requests, encrypted forwarding ensures data security during transmission; plaintext forwarding for intra-data center services is suitable for relatively secure internal network environments, optimizing performance while ensuring security. This invention better adapts to the service call requirements between different data centers under an enterprise service bus architecture, providing a more flexible and efficient solution for service calls under this architecture.
[0121] This invention also provides a gateway proxy, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the service provision method under the enterprise service bus architecture provided in any of the above embodiments.
[0122] This invention also provides a computer-readable medium storing a computer program thereon, which, when executed by a processor, implements the service provision method under the enterprise service bus architecture provided in any of the above embodiments.
[0123] The following is for reference. Figure 6 It shows a schematic diagram of the structure of a computer system 600 suitable for implementing a gateway proxy of the present invention. Figure 6 The gateway proxy shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.
[0124] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 602 or programs loaded from storage section 608 into random access memory (RAM) 603. The RAM 603 also stores various programs and data required for the operation of the computer system 600. The CPU 601, ROM 602, and RAM 603 are interconnected via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0125] The following components are connected to I / O interface 605: an input section 606 including a keyboard, mouse, etc.; an output section 607 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to I / O interface 605 as needed. A removable medium 611, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 610 as needed so that computer programs read from it can be installed into storage section 608 as needed.
[0126] In particular, according to the embodiments disclosed in this invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 609, and / or installed from removable medium 611. When the computer program is executed by central processing unit (CPU) 601, it performs the functions defined above in the system of this invention.
[0127] It should be noted that the computer-readable medium shown in this invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0128] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0129] The modules and / or units described in the embodiments of this invention can be implemented in software or hardware. The described modules and / or units can also be housed in a processor; for example, a processor can be described as including a data center identification module, a type identification module, a policy determination module, and a forwarding module. The names of these modules do not necessarily limit the functionality of the module itself.
[0130] In another aspect, the present invention also provides a computer-readable medium, which may be included in the gateway agent described in the above embodiments; or it may exist independently and not assembled into the gateway agent. The computer-readable medium carries one or more programs, which, when executed by one or more of the gateway agents, cause the gateway agent to include:
[0131] The system responds to service request information received on a preset listening port, identifies the deployment data center of the target service requested by the service request information, and obtains the target data center; it identifies the service type based on the relationship between the local data center and the target data center, and the service type includes services within the same data center or services across data centers; it determines the information forwarding strategy based on the service type, and the information forwarding strategy includes plaintext forwarding or encrypted forwarding. The information forwarding strategy for services within the same data center is plaintext forwarding, and the information forwarding strategy for services across data centers is encrypted forwarding; it forwards the service request information to the service instance deployed in the target data center to provide the target service according to the determined information forwarding strategy.
[0132] The technical solution of this invention sets up a gateway proxy in the data center. Data is encrypted when providing cross-data center services, but not when providing intra-data center services. This eliminates the need to deploy cryptographic devices on all nodes; necessary encryption and decryption operations are performed only at the gateway proxy, greatly simplifying the system architecture and reducing deployment and maintenance costs. Encrypted forwarding is used only for cross-data center services, while plaintext forwarding is maintained for intra-data center services, avoiding encryption and decryption operations at each node, significantly reducing communication latency and improving system performance. Distributing the verification logic to the gateway proxy reduces dependence on a single verification server, lowers the risk of single points of failure, and enhances system stability and reliability. For cross-data center service requests, encrypted forwarding ensures data security during transmission; plaintext forwarding for intra-data center services is suitable for relatively secure internal network environments, optimizing performance while ensuring security. This invention better adapts to the service call requirements between different data centers under an enterprise service bus architecture, providing a more flexible and efficient solution for service calls under this architecture.
[0133] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0134] It should be noted that the collection, gathering, updating, analysis, processing, use, transmission, and storage of user personal information involved in this disclosed technical solution all comply with relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken to prevent unauthorized access to user personal information data and to safeguard user personal information security, network security, and national security.
[0135] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A service provision method under an enterprise service bus architecture, characterized in that, Gateway proxies used for configuring local data centers include: Responding to service request information received on the preset listening port, identifying the deployment room of the target service requested by the service request information, and obtaining the target room; The service type is identified based on the relationship between the local data center and the target data center. The service type includes services within the same data center or services across data centers. The information forwarding strategy is determined based on the service type. The information forwarding strategy includes plaintext forwarding or encrypted forwarding. The information forwarding strategy for services within the same data center is plaintext forwarding, while the information forwarding strategy for services across data centers is encrypted forwarding. According to the determined information forwarding strategy, the service request information is forwarded to the service instance deployed in the target data center to provide the target service.
2. The method according to claim 1, characterized in that, Identify the deployment room of the target service requested in the service request information to obtain the target data center, including: Parse the service request information to obtain the service identifier of the target service; The target data center is obtained by querying the mapping relationship between the service identifier and the data center.
3. The method according to claim 1, characterized in that, The service type is identified based on the relationship between the local data center and the target data center, including: If the target data center is a local data center, the identified service type is "service within the same data center". If the target data center is not the local data center, the service type is identified as a cross-data center service.
4. The method according to claim 3, characterized in that, The information forwarding strategy is plaintext forwarding. According to the defined information forwarding strategy, service request information is forwarded to the service instance deployed in the target data center to provide the target service, including: Select the target service instance from the candidate service instances deployed in the local data center to provide the target service; The plaintext service request information is forwarded to the target service instance deployed in the local data center.
5. The method according to claim 3, characterized in that, The information forwarding strategy is encrypted forwarding. According to the defined information forwarding strategy, service request information is forwarded to the service instance deployed in the target data center to provide the target service, including: Encrypt the plaintext service request information to obtain the ciphertext service request information; The encrypted service request information is forwarded to the gateway proxy set up for the target data center, so that the gateway proxy of the target data center can decrypt the encrypted service request information and forward it to the service instance in the target data center that provides the target service.
6. The method according to claim 5, characterized in that, Encrypt plaintext service request information, including: Perform two-way authentication with the gateway proxy of the target data center; If both authentication methods are successful, the plaintext service request information is encrypted using the session key negotiated with the gateway proxy of the target data center.
7. The method according to claim 1, characterized in that, Before responding to service request information received on the preset listening port, it also includes: The information forwarding policy is obtained from the service management center of the local data center. The information forwarding policy of the service management center is obtained from the local data center's management platform when the service management center subscribes to the forwarding policy configuration event published to the configuration database by the local data center's management platform.
8. A service provisioning device under an enterprise service bus architecture, characterized in that, Gateway proxies used for configuring local data centers include: The data center identification module is used to respond to service request information received through a preset listening port, identify the data center where the target service is deployed, and obtain the target data center. The type identification module is used to identify the service type based on the relationship between the local data center and the target data center. The service type includes services within the same data center or services across data centers. The strategy determination module is used to determine the information forwarding strategy based on the service type. The information forwarding strategy includes plaintext forwarding or encrypted forwarding. The information forwarding strategy for services within the same data center is plaintext forwarding, and the information forwarding strategy for services across data centers is encrypted forwarding. The forwarding module is used to forward service request information to the service instance deployed in the target data center to provide the target service, according to a defined information forwarding strategy.
9. A gateway agent, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the service provision method under the enterprise service bus architecture as described in any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by the processor, the program implements the service provision method under the enterprise service bus architecture as claimed in any one of claims 1 to 7.
