CN115509770B - Micro-service calling method and device, electronic equipment and readable storage medium - Google Patents

Micro-service calling method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN115509770B
CN115509770B CN202211156469.5A CN202211156469A CN115509770B CN 115509770 B CN115509770 B CN 115509770B CN 202211156469 A CN202211156469 A CN 202211156469A CN 115509770 B CN115509770 B CN 115509770B
Authority
CN
China
Prior art keywords
service
micro
target
compensated
calling
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
CN202211156469.5A
Other languages
Chinese (zh)
Other versions
CN115509770A (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 Che Huan Huan Information Technology Co ltd
Original Assignee
Beijing Che Huan Huan Information 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 Che Huan Huan Information Technology Co ltd filed Critical Beijing Che Huan Huan Information Technology Co ltd
Priority to CN202211156469.5A priority Critical patent/CN115509770B/en
Publication of CN115509770A publication Critical patent/CN115509770A/en
Application granted granted Critical
Publication of CN115509770B publication Critical patent/CN115509770B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multi Processors (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention provides a micro-service calling method, a micro-service calling device, electronic equipment and a readable storage medium, wherein the method comprises the following steps: the method is applied to a micro-service system, the micro-service system comprises a plurality of micro-services, the micro-services respectively provide a query interface for querying a call state, and the method comprises the following steps: responding to a processing request aiming at a target service, and determining a target micro-service to be called; when the target micro-service is called, inquiring the calling state of the target micro-service through an inquiry interface corresponding to the target micro-service; when the calling state of the target micro-service is a calling failure state or a calling overtime state, determining the target micro-service as the micro-service to be compensated which needs to be called again; and carrying out compensation processing on the micro-service to be compensated so as to enable the micro-service to maintain data consistency in the micro-service system. The embodiment of the invention can ensure the data consistency of the micro service in the micro service system.

Description

Micro-service calling method and device, electronic equipment and readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of Internet, in particular to a micro-service calling method, a micro-service calling device, electronic equipment and a computer readable storage medium.
Background
The micro-Service distributed architecture is a variant of Service-oriented architecture (SOA) architecture style, and in a micro-Service system constructed based on the micro-Service distributed architecture, a single application program is divided into a plurality of micro-services, and the micro-services are coordinated and matched with each other, so that the final value is provided for users.
At present, a micro service system formed by a plurality of micro services is adopted by some enterprises, and when a user submits a service such as an order in the micro service system, communication among the plurality of micro services is involved, wherein communication among the micro services can be performed through an RPC (Remote Procedure Call ) protocol and the like. Specifically, the micro-service system may divide the processing task for a service into a plurality of subtasks, and complete the processing of the service by calling a plurality of micro-services in the micro-service system to complete the subtasks, however, although the processing efficiency of the service can be improved based on the micro-service system, the problem that the data of databases among the micro-services in the micro-service system cannot be kept consistent (for example, the deduction 10 elements are recorded in the database a corresponding to the micro-service, the collection 10 elements are recorded in the database B corresponding to the micro-service, so that the data consistency of the databases of the micro-services in the micro-service system can be ensured) is caused, because the database corresponding to each micro-service in the micro-service distributed architecture is independent, if the call to any micro-service is abnormal, the data consistency of the micro-services in the micro-service system cannot be ensured.
Disclosure of Invention
The embodiment of the invention provides a micro-service calling method, a micro-service calling device, electronic equipment and a computer readable storage medium, which are used for solving the problem that the consistency of data of micro-services in a micro-service system cannot be ensured.
The embodiment of the invention discloses a micro-service calling method which is applied to a micro-service system, wherein the micro-service system comprises a plurality of micro-services, the micro-services respectively provide query interfaces for querying calling states, and the method comprises the following steps:
responding to a processing request aiming at a target service, and determining a target micro-service to be called;
when the target micro-service is called, inquiring the calling state of the target micro-service through an inquiry interface corresponding to the target micro-service;
when the calling state of the target micro-service is a calling failure state or a calling overtime state, determining the target micro-service as the micro-service to be compensated which needs to be called again;
and carrying out compensation processing on the micro-service to be compensated so as to enable the micro-service to maintain data consistency in the micro-service system.
Optionally, the target micro-service is invoked by:
generating a micro-service call request with a unique identifier;
When the target micro service receives a micro service call request carrying the unique identifier, the unique identifier is stored, and a corresponding service task is executed according to the micro service call request;
and when the unique identifier is stored in the target micro service, prohibiting processing of the micro service call request carrying the same unique identifier.
Optionally, the querying, through a query interface corresponding to the target micro service, the call state of the target micro service includes:
and inquiring the calling state of the target micro-service based on the unique identifier corresponding to the micro-service calling request through the inquiring interface corresponding to the target micro-service.
Optionally, the service has a corresponding service type, and the compensating the to-be-compensated micro service includes:
determining a compensation strategy for the micro-service to be compensated according to the service type of the target service; wherein the service type at least comprises one of a non-real-time interaction type and a real-time interaction type;
and carrying out compensation processing on the micro-service to be compensated according to the compensation strategy.
Optionally, the compensating the micro service to be compensated according to the compensating policy includes:
When the service type of the target service is a non-real-time interaction type, adding the compensation task of the micro-service to be compensated into a specified database;
and acquiring the compensation task from the appointed database at regular time so as to carry out compensation processing on the micro-service to be compensated according to the compensation task.
Optionally, the compensating the micro service to be compensated according to the compensating policy includes:
and when the service type of the target service is real-time interactive type, compensating the micro-service to be compensated in real time.
Optionally, the compensation process includes at least one of recalling the micro-service to be compensated or canceling the target micro-service that has been recalled.
The embodiment of the invention also discloses a micro-service calling device which is applied to a micro-service system, wherein the micro-service system comprises a plurality of micro-services, the micro-services respectively provide query interfaces for querying calling states, and the device comprises:
the target micro-service determining module is used for responding to the processing request aiming at the target business and determining the target micro-service to be called;
the calling state query module is used for querying the calling state of the target micro-service through a query interface corresponding to the target micro-service when the target micro-service is called;
The micro-service to be compensated determining module is used for determining the target micro-service as the micro-service to be compensated which needs to be recalled when the calling state of the target micro-service is a calling failure state or a calling overtime state;
and the compensation processing module is used for carrying out compensation processing on the micro-service to be compensated so as to ensure that the micro-service in the micro-service system keeps data consistency.
Optionally, the apparatus further comprises: the target micro-service calling module is used for:
generating a micro-service call request with a unique identifier;
when the target micro service receives a micro service call request carrying the unique identifier, the unique identifier is stored, and a corresponding service task is executed according to the micro service call request;
and when the unique identifier is stored in the target micro service, prohibiting processing of the micro service call request carrying the same unique identifier.
Optionally, the call state query module is specifically configured to:
and inquiring the calling state of the target micro-service based on the unique identifier corresponding to the micro-service calling request through the inquiring interface corresponding to the target micro-service.
Optionally, the service has a corresponding service type, and the compensation processing module is specifically configured to:
Determining a compensation strategy for the micro-service to be compensated according to the service type of the target service; wherein the service type at least comprises one of a non-real-time interaction type and a real-time interaction type;
and carrying out compensation processing on the micro-service to be compensated according to the compensation strategy.
Optionally, the compensation processing module is specifically configured to:
when the service type of the target service is a non-real-time interaction type, adding the compensation task of the micro-service to be compensated into a specified database;
and acquiring the compensation task from the appointed database at regular time so as to carry out compensation processing on the micro-service to be compensated according to the compensation task.
Optionally, the compensation processing module is specifically configured to:
and when the service type of the target service is real-time interactive type, compensating the micro-service to be compensated in real time.
Optionally, the compensation process includes at least one of recalling the micro-service to be compensated or canceling the target micro-service that has been recalled.
The embodiment of the invention also discloses electronic equipment, which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
The memory is used for storing a computer program;
the processor is configured to implement the method according to the embodiment of the present invention when executing the program stored in the memory.
The embodiment of the invention also discloses a computer program product which is stored in a storage medium and is executed by at least one processor to realize the method according to the embodiment of the invention.
Embodiments of the present invention also disclose a computer-readable storage medium having instructions stored thereon, which when executed by one or more processors, cause the processors to perform the method according to the embodiments of the present invention.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, the micro services in the micro service system respectively provide query interfaces for querying the call state, specifically, in response to a processing request for a target service, the target micro service to be invoked is determined, when the target micro service is invoked, the call state of the target micro service can be queried through the query interfaces corresponding to the target micro service, when the call state of the target micro service is the call failure state or the call overtime state, the condition that data loss is likely to occur in the target micro service is indicated, and in order to ensure the data consistency of the micro service in the micro service system, the target micro service is determined as the micro service to be compensated, which needs compensation processing, and compensation processing is performed. According to the embodiment of the invention, the calling state of the target micro-service can be inquired through the inquiring interface of the target micro-service, whether the target micro-service has the data loss condition or not is further analyzed based on the calling state, and if the condition that the target micro-service has the data loss condition is determined, compensation processing can be carried out on the target micro-service so as to ensure the data consistency of the micro-service in the micro-service system.
Drawings
FIG. 1 is a schematic illustration of an application environment provided in an embodiment of the present invention;
FIG. 2 is a flow chart of steps of a micro service invocation method provided in an embodiment of the present invention;
FIG. 3 is a schematic diagram of a query of call states of a micro service provided in an embodiment of the present invention;
FIG. 4 is a schematic diagram of an asynchronous processing scheme provided in an embodiment of the present invention;
FIG. 5 is a schematic diagram of a synchronization processing method according to an embodiment of the present invention;
FIG. 6 is a block diagram of a micro service invocation apparatus provided in an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
The micro-service calling method provided by the embodiment of the invention can be applied to an application environment shown in figure 1. The server 101 is a server for deploying a micro-service system, the micro-service system includes a plurality of micro-services, the micro-services respectively provide a query interface for querying a call state, and the terminal devices 102 are all in communication with the server 101 through a network. Specifically, when the server 101 receives a processing request of a target service sent by the terminal device 102, the server 101 determines a target micro service (e.g., target micro service 1, target micro service 2 … … in fig. 1) to be invoked in response to the processing request for the target service; when the target micro-service is called, the calling state of the target micro-service is inquired through an inquiry interface corresponding to the target micro-service; when the calling state of the target micro-service is a calling failure state or a calling overtime state, determining the target micro-service as the micro-service to be compensated which needs to be called again; and compensating the micro-service to be compensated so as to ensure that the micro-service in the micro-service system maintains data consistency.
In practical applications, the server 101 may be a server that operates independently, or a server cluster that is composed of a plurality of servers, where the server may be a cloud server; terminal devices 102 may include, but are not limited to, various personal computers, notebook computers, smart phones, tablet computers, vehicle terminals, and portable wearable devices.
Referring to fig. 2, a flowchart of steps of a micro service invocation method provided in an embodiment of the present invention is applied to a micro service system, where the micro service system includes a plurality of micro services, and each micro service provides a query interface for querying invocation status, and may specifically include the following steps:
step 201, in response to a processing request for a target service, determining a target micro-service to be invoked.
In a specific implementation, a plurality of micro services are deployed in the micro service system, each micro service can complete at least one service, such as order generation, payment result notification, inventory deduction, customer management and the like, each micro service operates in a separate process, the micro services and the micro services can communicate with each other by adopting a lightweight communication mechanism such as RPC and the like, and the micro services can be in a calling relationship and a called relationship. The micro services may be distributed in a plurality of servers or may be distributed in the same server, and each micro service has a database independent of each other.
It should be noted that, in order to ensure the normal operation of the micro-service system, data consistency of databases between micro-services in the micro-service system needs to be ensured. Taking electronic commerce order submission as an example, 3 micro services are required, specifically, after a user submits an order, the micro service 1 needs to write related data such as order amount, user and the like into an order list of a database, the micro service 2 writes data such as commodity price, purchased commodity quantity and the like into an order list of the database, and finally, the micro service 3 updates commodity information such as commodity quantity and the like into an inventory list of the database. After the user has successfully placed the order, the micro-service system involves three databases, and the operations of the three databases should be consistent no matter successful or failed, i.e. the operations of the three databases should be successful or all fail, otherwise, the data consistency of the micro-service in the micro-service system is destroyed, so that problems can occur in the subsequent selling process in the electronic commerce, for example, if the order list and the order list are successfully operated, but the inventory list is failed, the problem that the number of the sold commodities exceeds the number of the actual inventory can occur in the inventory list because the number of the commodities is not deducted.
In the embodiment of the invention, each micro service in the micro service system is provided with a query interface for querying the call state, the call state of the micro service can be determined through the query interface of the micro service, and specifically, the call state of the micro service can include but is not limited to: call success state, call failure state, and call timeout state.
The service usually needs a plurality of micro services to be matched and completed, if the calling of a certain micro service corresponding to the service is successful, the micro service downstream of the micro service can be continuously called, and if the calling of a plurality of micro services corresponding to one service is successful, the service can be treated as being completed. Specifically, if the terminal device initiates a processing request for a certain service, for example, a service of submitting an order, the service may serve as a target service, and send the processing request for the target service to the micro service system, in response to the processing request, one or more micro services determined from the micro service system to process the target service are taken as target micro services, and a calling order of the target micro services may also be determined, so that the target micro services may be sequentially called according to the calling order.
Step 202, when the target micro-service is called, the calling state of the target micro-service is queried through a query interface corresponding to the target micro-service.
And 203, determining the target micro-service as the micro-service to be compensated which needs to be recalled when the calling state of the target micro-service is a calling failure state or a calling overtime state.
In the embodiment of the invention, in the process of calling the target micro service, the corresponding calling state can be determined through the query interface of the target micro service, whether the micro service is likely to have the condition of data loss can be analyzed based on the calling state, and if the condition of data loss occurs, the data consistency of the micro service in the micro service system can be destroyed. When the call state of the micro service is a call failure state or a call timeout state, which indicates that the micro service may have a data loss, the target micro service may be determined as a micro service to be compensated, which needs to be compensated.
And 204, performing compensation processing on the micro-service to be compensated so as to enable the micro-service to maintain data consistency in the micro-service system.
The compensation process is used for ensuring consistency of data of the micro-service in the micro-service system, so that the compensation process can at least comprise one of re-invoking the micro-service to be compensated or canceling the micro-service of the target which has been invoked. Specifically, the re-calling of the micro-service to be compensated refers to that the calling state is a calling failure state or a calling overtime state, until the micro-service to be compensated is successfully called; canceling the target micro-service which is already called is to cancel the target micro-service which is already called successfully and corresponds to the service, and the target micro-service is regarded as not being called or not being called, so that the data of the micro-service in the micro-service system can still keep consistent. It should be noted that, what kind of compensation process is specifically selected may be that the program automatically decides based on preset logic or manually triggered, which is not limited by the embodiment of the present invention.
Optionally, the compensation processing may be synchronous processing or asynchronous processing, that is, the synchronous processing means that the compensation processing is performed on the micro-service to be compensated in real time, and the asynchronous processing means that the compensation processing is performed on the micro-service to be compensated at regular time after other target micro-services downstream are processed. The asynchronous processing mode can be applied to scenes with low requirements on response time by a user, such as logistics and distribution in an e-commerce system, charging and account entering in a payment system, and the like, and specifically, the asynchronous processing mode is to remove micro-service to be compensated from target micro-service corresponding to one service, then perform timing compensation processing, notify a processing result to the user after the compensation processing, and peak elimination can be performed on high concurrent flow through the asynchronous processing mode, so that the response time is avoided.
As an example, it is assumed that a target micro-service corresponding to a service includes a target micro-service 1, a target micro-service 2 and a target micro-service 3, in the process of calling the target micro-service, after the call of the target micro-service 1 is completed, the call of the target micro-service 2 is continued, but if the call state of the target micro-service 2 is queried to be the call timeout state through the query interface corresponding to the target micro-service 2, the target micro-service can be used as the micro-service to be compensated, at this time, if an asynchronous processing mode is adopted, the call of the target micro-service 3 can be continued, if a synchronous processing mode is adopted, and the like, the call of the target micro-service 3 can be continued after the compensation processing of the target micro-service 2.
In the foregoing micro service invocation method, the micro services in the micro service system respectively provide the inquiry interfaces for inquiring the invocation state, specifically, in response to the processing request for the target service, the target micro service to be invoked is determined, when the target micro service is invoked, the invocation state of the target micro service can be inquired through the inquiry interface corresponding to the target micro service, when the invocation state of the target micro service is the invocation failure state or the invocation timeout state, which indicates that the situation that data loss may occur in the target micro service, in order to ensure the data consistency of the micro service in the micro service system, the target micro service is determined as the micro service to be compensated that needs compensation processing, and compensation processing is performed. According to the embodiment of the invention, the calling state of the target micro-service can be inquired through the inquiring interface of the target micro-service, whether the target micro-service has the data loss condition or not is further analyzed based on the calling state, and if the condition that the target micro-service has the data loss condition is determined, compensation processing can be carried out on the target micro-service so as to ensure the data consistency of the micro-service in the micro-service system.
In an exemplary embodiment, the target micro-service may be invoked by:
Generating a micro-service call request with a unique identifier;
when the target micro service receives a micro service call request carrying the unique identifier, the unique identifier is stored, and a corresponding service task is executed according to the micro service call request;
and when the unique identifier is stored in the target micro service, prohibiting processing of the micro service call request carrying the same unique identifier.
The unique identifier (Identity document, identity identifier/ID) may be a request serial number, order number, etc., as long as the unique identifier can identify the corresponding micro service call request, which is not limited in this embodiment of the present invention.
In a specific implementation, when each target micro service is called, a micro service call request carrying a unique identifier can be generated and sent to the target micro service, the unique identifier is stored after the target micro service receives the micro service, and a corresponding business task is executed based on the target micro service call request, for example, the target micro service updates commodity information such as commodity quantity in a database thereof. It should be noted that when the unique identifier is stored in the target micro service, the micro service system may not receive the message of successful invocation of the target micro service at a later time due to network jitter, etc., at this time, a micro service invocation request carrying the same unique identifier is usually re-sent to the target micro service, and if the unique identifier is already stored in the target micro service, the processing of the re-sent micro service invocation request is prohibited, so that idempotent property is ensured. The idempotency refers to that a caller repeatedly calls a micro-service, and the effect of the call on the micro-service is the same no matter how many times the call is repeatedly called, in short, the idempotency refers to that the target micro-service cannot repeatedly execute the call request of the same micro-service.
In the above exemplary embodiment, a micro-service call request with a unique identifier is generated, when a target micro-service receives the micro-service call request carrying the unique identifier, the unique identifier is stored, and a corresponding service task is executed according to the micro-service call request, wherein when the target micro-service stores the unique identifier, the processing of the micro-service call request carrying the same unique identifier is prohibited, thereby ensuring idempotent of the target micro-service and ensuring normal operation of a micro-service system.
In an exemplary embodiment, the step 202 of querying, through a query interface corresponding to the target micro-service, the call state of the target micro-service may include the following steps:
and inquiring the calling state of the target micro-service based on the unique identifier corresponding to the micro-service calling request through the inquiring interface corresponding to the target micro-service.
In the embodiment of the invention, each micro service in the micro service system is respectively provided with a query interface used for querying the call state, the call state of the micro service can be determined through the query interface of the micro service, in order to be capable of querying the call state of the micro service, a unique identifier is allocated for each micro service call request, then, in the process of invoking the target micro service, the call state of the target micro service can be determined through the query interface based on the unique identifier, and further, different processing operations are performed according to different call states, such as normally invoking the downstream micro service or performing compensation processing and the like.
As an example, referring to fig. 3, a schematic query diagram of a call state of a micro service according to an embodiment of the present invention may query, through a query interface corresponding to a target micro service, a call state of the target micro service based on a unique identifier corresponding to a micro service call request sent to the target micro service when determining the call state of the target micro service.
In the above exemplary embodiment, the call state of the target micro service is queried based on the unique identifier corresponding to the micro service call request sent to the target micro service through the query interface corresponding to the target micro service, so that the call state of the target micro service can be quickly known, whether compensation processing is required or not can be determined by analyzing the call state, and further, the data consistency of the micro service in the micro service system is ensured.
In an exemplary embodiment, the service has a corresponding service type, and the compensating the micro-service to be compensated in step 204 may include the following steps:
determining a compensation strategy for the micro-service to be compensated according to the service type of the target service; wherein the service type at least comprises one of a non-real-time interaction type and a real-time interaction type;
And carrying out compensation processing on the micro-service to be compensated according to the compensation strategy.
The service type corresponding to the service at least comprises one of a non-real-time interaction type and a real-time interaction type. Specifically, the service corresponding to the non-real-time interaction type may include logistics, distribution and the like in the e-commerce system, and charging, accounting and the like in the payment system, and the service corresponding to the real-time interaction type may include order generation and the like in the e-commerce system.
In the embodiment of the invention, the compensation strategy corresponding to the micro-service to be compensated can be determined according to the service type corresponding to the target service, specifically, if the service type corresponding to the target service is a non-real-time interaction type, the service can be used for indicating that the service has lower requirement on response time, an asynchronous processing mode can be adopted, namely, the service to be compensated is temporarily suspended and not processed, other downstream target micro-services are processed first, then the compensation processing is carried out on the micro-service to be compensated at regular time, and if the service type corresponding to the target service is a real-time interaction type, the service can be used for indicating that the target service has higher requirement on response time, namely, the synchronous processing mode can be adopted for carrying out the compensation processing on the micro-service to be compensated in real time.
Of course, in practical application, other compensation strategies may be set according to practical requirements, as long as consistency of data of micro services in the micro service system can be ensured, which is not limited by the embodiment of the invention.
In the above exemplary embodiment, the compensation policy for the micro-service to be compensated is determined according to the service type of the target service, and then the compensation processing is reasonably performed on the micro-service to be compensated according to the compensation policy, which not only can avoid timely performing the compensation processing on the micro-service to be compensated with higher response time requirement, but also can perform peak elimination on high concurrency traffic by performing the compensation processing on the micro-service to be compensated with lower response time requirement, thereby avoiding overlong overall response time.
In an exemplary embodiment, the compensating the micro-service to be compensated according to the compensation policy may include the following steps:
when the service type of the target service is a non-real-time interaction type, adding the compensation task of the micro-service to be compensated into a specified database;
and acquiring the compensation task from the appointed database at regular time so as to carry out compensation processing on the micro-service to be compensated according to the compensation task.
In the embodiment of the invention, when the service type of the service is a non-real-time interaction type, an asynchronous processing mode can be adopted, namely the service to be compensated is temporarily suspended and not processed, and after other downstream target micro-services are processed, the compensation processing is carried out on the micro-services to be compensated at regular time.
Wherein the designated database is a database of the same database system as the target service. As a specific example, referring to fig. 4, which is a schematic diagram of an asynchronous processing manner according to an embodiment of the present invention, after determining that a micro service to be compensated is a non-real-time interaction type, removing the micro service to be compensated (for example, the target micro service 2 in fig. 4) from the target micro service corresponding to the target service, persisting a compensation task of the micro service to be compensated in a designated database after encapsulation, and then, performing compensation processing by taking out uncompleted compensation tasks at regular time through a preset program in the micro service system, for example, after the target service completes a call except for the micro service to be compensated or when there is no high concurrency flow. In practical application, as long as the micro-service system is sufficiently robust, any compensation task to be compensated for the micro-service will be successfully executed finally, thereby ensuring the consistency of the data of the micro-service in the micro-service system.
In the above exemplary embodiment, when the service type of the target service is a non-real-time interaction type, since the service has a low requirement on response time, the compensation task of the micro-service to be compensated may be added to the specified database, and then the compensation task may be acquired from the specified database at regular time, so as to perform compensation processing on the micro-service to be compensated according to the compensation task, and by performing peak elimination on high concurrent traffic, the overall response time of the micro-service system may be avoided from being too long.
In an exemplary embodiment, the compensating the micro-service to be compensated according to the compensation policy may include the following steps:
and when the service type of the target service is real-time interactive type, compensating the micro-service to be compensated in real time.
In the embodiment of the invention, when the service type of the service is real-time interaction type, a synchronous processing mode can be adopted, namely, after the service to be compensated is determined, the micro-service to be compensated can be compensated in real time.
As a specific example, referring to fig. 5, which is a schematic diagram of a synchronous processing manner in an embodiment of the present invention, when the service types corresponding to the target micro service 1, the target micro service 2 and the target micro service 3 are real-time interactive types, it may be determined in real time whether the target micro service 1, the target micro service 2 and the target micro service 3 are micro services to be compensated, and after determining the micro services to be compensated, compensation processing is performed on the micro services to be compensated in real time through a preset program in the micro service system.
Optionally, as can be seen from the foregoing, the compensation processing of the micro-service to be compensated may at least include one of re-invoking the micro-service to be compensated or canceling the target micro-service that has been invoked, in order to avoid infinitely re-invoking the micro-service to be compensated, the number of re-invoking times may be preset, for example, may be set to 5 times, specifically, when the micro-service to be compensated is determined, the micro-service to be compensated is first re-invoked, and when the number of re-invoking times of the micro-service to be compensated reaches the number of re-invoking times, the target micro-service that has been invoked is canceled.
In the above exemplary embodiment, when the service type of the target service is a real-time interaction type, since the service has a higher requirement on response time, compensation processing can be performed on the micro-service to be compensated in real time, thereby ensuring normal operation of the target service and ensuring use experience of the caller.
By applying the embodiment of the invention, all the micro services which possibly lose data in all the micro services which participate in the call in the micro service system can be analyzed, and the micro services which possibly lose data can be automatically compensated by using a preset program, so that the consistency of the data of the micro services of the micro service system is ensured. The embodiment of the invention can avoid manually checking the micro-service which needs to be compensated, and can also automatically compensate the micro-service through the preset program, so that the micro-service system of the embodiment of the invention can improve the use experience of users in the long term, and simultaneously save the cost of maintaining the system by developers.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
Referring to fig. 6, a block diagram of a micro service invocation apparatus provided in an embodiment of the present invention is applied to a micro service system, where the micro service system includes a plurality of micro services, and each micro service provides a query interface for querying invocation status, where the apparatus specifically may include the following modules:
a target micro-service determining module 601, configured to determine a target micro-service that needs to be invoked in response to a processing request for a target service;
a call state query module 602, configured to query, when the target micro service is called, a call state of the target micro service through a query interface corresponding to the target micro service;
The to-be-compensated micro-service determining module 603 is configured to determine the target micro-service as a to-be-compensated micro-service that needs to be recalled when the calling state of the target micro-service is a calling failure state or a calling timeout state;
and the compensation processing module 604 is configured to perform compensation processing on the micro service to be compensated, so that the data consistency of the micro service in the micro service system is maintained.
In an exemplary embodiment, the apparatus further comprises: a target micro service invocation module 601, configured to:
generating a micro-service call request with a unique identifier;
when the target micro service receives a micro service call request carrying the unique identifier, the unique identifier is stored, and a corresponding service task is executed according to the micro service call request;
and when the unique identifier is stored in the target micro service, prohibiting processing of the micro service call request carrying the same unique identifier.
In an exemplary embodiment, the call state query module 602 is specifically configured to:
and inquiring the calling state of the target micro-service based on the unique identifier corresponding to the micro-service calling request through the inquiring interface corresponding to the target micro-service.
In an exemplary embodiment, the service has a corresponding service type, and the compensation processing module 603 is specifically configured to:
determining a compensation strategy for the micro-service to be compensated according to the service type of the target service; wherein the service type at least comprises one of a non-real-time interaction type and a real-time interaction type;
and carrying out compensation processing on the micro-service to be compensated according to the compensation strategy.
In an exemplary embodiment, the compensation processing module 603 is specifically configured to:
when the service type of the target service is a non-real-time interaction type, adding the compensation task of the micro-service to be compensated into a specified database;
and acquiring the compensation task from the appointed database at regular time so as to carry out compensation processing on the micro-service to be compensated according to the compensation task.
In an exemplary embodiment, the compensation processing module 603 is specifically configured to:
and when the service type of the target service is real-time interactive type, compensating the micro-service to be compensated in real time.
In an exemplary embodiment, the compensation process may include at least one of re-invoking the micro-service to be compensated or canceling the target micro-service that has been invoked to completion.
In the embodiment of the invention, the micro services in the micro service system respectively provide query interfaces for querying the call state, specifically, in response to a processing request for a target service, the target micro service to be invoked is determined, when the target micro service is invoked, the call state of the target micro service can be queried through the query interfaces corresponding to the target micro service, when the call state of the target micro service is the call failure state or the call overtime state, the condition that data loss is likely to occur in the target micro service is indicated, and in order to ensure the data consistency of the micro service in the micro service system, the target micro service is determined as the micro service to be compensated, which needs compensation processing, and compensation processing is performed. According to the embodiment of the invention, the calling state of the target micro-service can be inquired through the inquiring interface of the target micro-service, whether the target micro-service has the data loss condition or not is further analyzed based on the calling state, and if the condition that the target micro-service has the data loss condition is determined, compensation processing can be carried out on the target micro-service so as to ensure the data consistency of the micro-service in the micro-service system.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
In addition, the embodiment of the invention also provides electronic equipment, which comprises: the processor, the memory, store the computer program on the memory and can run on the processor, this computer program realizes each process of the above-mentioned micro-service call method embodiment when being carried out by the processor, and can reach the same technical effect, in order to avoid repetition, will not be repeated here.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, realizes the processes of the micro service calling method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted. Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The embodiment of the present invention further provides a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement each process of the foregoing micro service invocation method embodiment, and the same technical effects can be achieved, so that repetition is avoided, and details are not repeated herein.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
The electronic device 700 includes, but is not limited to: radio frequency unit 701, network module 702, audio output unit 703, input unit 704, sensor 705, display unit 706, user input unit 707, interface unit 708, memory 709, processor 710, and power supply 711. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 7 is not limiting of the electronic device and that the electronic device may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. In the embodiment of the invention, the electronic equipment comprises, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer and the like.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 701 may be used for receiving and transmitting signals during the process of receiving and transmitting information or communication, specifically, receiving downlink data from a base station, and then processing the received downlink data by the processor 710; and, the uplink data is transmitted to the base station. Typically, the radio unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio unit 701 may also communicate with networks and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 702, such as helping the user to send and receive e-mail, browse web pages, and access streaming media, etc.
The audio output unit 703 may convert audio data received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into an audio signal and output as sound. Also, the audio output unit 703 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the electronic device 700. The audio output unit 703 includes a speaker, a buzzer, a receiver, and the like.
The input unit 704 is used for receiving an audio or video signal. The input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, the graphics processor 7041 processing image data of still pictures or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 706. The image frames processed by the graphics processor 7041 may be stored in memory 709 (or other storage medium) or transmitted via the radio unit 701 or the network module 702. The microphone 7042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 701 in the case of a telephone call mode.
The electronic device 700 also includes at least one sensor 705, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 7061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 7061 and/or the backlight when the electronic device 700 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for recognizing the gesture of the electronic equipment (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; the sensor 705 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., and will not be described again here.
The display unit 706 is used to display information input by a user or information provided to the user. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 707 is operable to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 7071 or thereabout using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 7071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 710, and receives and executes commands sent from the processor 710. In addition, the touch panel 7071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 707 may include other input devices 7072 in addition to the touch panel 7071. In particular, other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
Further, the touch panel 7071 may be overlaid on the display panel 7061, and when the touch panel 7071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 710 to determine a type of a touch event, and then the processor 710 provides a corresponding visual output on the display panel 7061 according to the type of the touch event. Although in fig. 7, the touch panel 7071 and the display panel 7061 are two independent components for implementing the input and output functions of the electronic device, in some embodiments, the touch panel 7071 and the display panel 7061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 708 is an interface to which an external device is connected to the electronic apparatus 700. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 708 may be used to receive input (e.g., data information, power, etc.) from an external device and to transmit the received input to one or more elements within the electronic apparatus 700 or may be used to transmit data between the electronic apparatus 700 and an external device.
The memory 709 may be used to store software programs as well as various data. The memory 709 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 709 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 710 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 709 and calling data stored in the memory 709, thereby performing overall monitoring of the electronic device. Processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 710.
The electronic device 700 may also include a power supply 711 (e.g., a battery) for powering the various components, and the power supply 711 may preferably be logically coupled to the processor 710 via a power management system, such as to perform functions such as managing charge, discharge, and power consumption by the power management system.
In addition, the electronic device 700 includes some functional modules, which are not shown, and will not be described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (10)

1. A micro-service invocation method, which is characterized by being applied to a micro-service system, wherein the micro-service system comprises a plurality of micro-services, the micro-services respectively provide query interfaces for querying invocation states, and the method comprises:
responding to a processing request aiming at a target service, and determining a target micro-service to be called;
when the target micro-service is called, inquiring the calling state of the target micro-service through an inquiry interface corresponding to the target micro-service;
when the calling state of the target micro-service is a calling failure state or a calling overtime state, determining the target micro-service as the micro-service to be compensated which needs to be called again;
performing compensation processing on the micro-service to be compensated so as to enable the micro-service in the micro-service system to maintain data consistency;
the compensating the micro-service to be compensated includes:
determining a compensation strategy for the micro-service to be compensated according to the service type of the target service; and carrying out compensation processing on the micro-service to be compensated according to the compensation strategy.
2. The method of claim 1, wherein the target micro-service is invoked by:
Generating a micro-service call request with a unique identifier;
when the target micro service receives a micro service call request carrying the unique identifier, the unique identifier is stored, and a corresponding service task is executed according to the micro service call request;
and when the unique identifier is stored in the target micro service, prohibiting processing of the micro service call request carrying the same unique identifier.
3. The method according to claim 2, wherein the querying the call state of the target micro-service through the query interface corresponding to the target micro-service includes:
and inquiring the calling state of the target micro-service based on the unique identifier corresponding to the micro-service calling request through the inquiring interface corresponding to the target micro-service.
4. The method of claim 1, wherein the traffic types include at least one of a non-real-time interaction type and a real-time interaction type.
5. The method of claim 4, wherein the compensating the micro-service to be compensated according to the compensation policy comprises:
when the service type of the target service is a non-real-time interaction type, adding the compensation task of the micro-service to be compensated into a specified database;
And acquiring the compensation task from the appointed database at regular time so as to carry out compensation processing on the micro-service to be compensated according to the compensation task.
6. The method of claim 4, wherein the compensating the micro-service to be compensated according to the compensation policy comprises:
and when the service type of the target service is real-time interactive type, compensating the micro-service to be compensated in real time.
7. The method of claim 1, wherein the compensation process includes at least one of recalling the micro-service to be compensated or canceling the target micro-service that has been recalled.
8. A micro-service invocation apparatus, applied to a micro-service system, the micro-service system including a plurality of micro-services, the micro-services respectively providing a query interface for querying invocation status, the apparatus comprising:
the target micro-service determining module is used for responding to the processing request aiming at the target business and determining the target micro-service to be called;
the calling state query module is used for querying the calling state of the target micro-service through a query interface corresponding to the target micro-service when the target micro-service is called;
The micro-service to be compensated determining module is used for determining the target micro-service as the micro-service to be compensated which needs to be recalled when the calling state of the target micro-service is a calling failure state or a calling overtime state;
the compensation processing module is used for carrying out compensation processing on the micro-service to be compensated so as to enable the micro-service in the micro-service system to keep data consistency; the service has a corresponding service type, and the compensation processing module is specifically configured to: determining a compensation strategy for the micro-service to be compensated according to the service type of the target service; and carrying out compensation processing on the micro-service to be compensated according to the compensation strategy.
9. An electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
the memory is used for storing a computer program;
the processor is configured to implement the method according to any one of claims 1-7 when executing a program stored on a memory.
10. A computer-readable storage medium having instructions stored thereon, which when executed by one or more processors, cause the processors to perform the method of any of claims 1-7.
CN202211156469.5A 2022-09-22 2022-09-22 Micro-service calling method and device, electronic equipment and readable storage medium Active CN115509770B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211156469.5A CN115509770B (en) 2022-09-22 2022-09-22 Micro-service calling method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211156469.5A CN115509770B (en) 2022-09-22 2022-09-22 Micro-service calling method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN115509770A CN115509770A (en) 2022-12-23
CN115509770B true CN115509770B (en) 2023-12-05

Family

ID=84506922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211156469.5A Active CN115509770B (en) 2022-09-22 2022-09-22 Micro-service calling method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN115509770B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116909760B (en) * 2023-09-13 2023-11-28 中移(苏州)软件技术有限公司 Data processing method, device, readable storage medium and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109542639A (en) * 2018-11-06 2019-03-29 用友网络科技股份有限公司 A kind of processing method, processing unit for ensureing micro services and calling data consistency
CN111752740A (en) * 2020-06-29 2020-10-09 深圳前海微众银行股份有限公司 Microservice anomaly compensation method, microservice anomaly compensation device, microservice anomaly compensation equipment and computer readable storage medium
CN113051043A (en) * 2021-03-10 2021-06-29 北京沃东天骏信息技术有限公司 Micro-service anomaly compensation method and device
WO2022005685A1 (en) * 2020-06-29 2022-01-06 Amazon Technologies, Inc. Managed control plane service
CN114253673A (en) * 2021-12-17 2022-03-29 中电金信软件有限公司 Transaction processing method and transaction processing device of distributed system
US11323508B2 (en) * 2009-05-22 2022-05-03 Comcast Interactive Media, Llc Web service system and method
CN114647822A (en) * 2020-12-17 2022-06-21 中移(苏州)软件技术有限公司 Data processing method, device, terminal and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120278209A1 (en) * 2011-04-30 2012-11-01 Samsung Electronics Co., Ltd. Micro-app dynamic revenue sharing
US10382257B2 (en) * 2017-03-16 2019-08-13 International Business Machines Corporation Microservices communication pattern for fault detection in end-to-end flows

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11323508B2 (en) * 2009-05-22 2022-05-03 Comcast Interactive Media, Llc Web service system and method
CN109542639A (en) * 2018-11-06 2019-03-29 用友网络科技股份有限公司 A kind of processing method, processing unit for ensureing micro services and calling data consistency
CN111752740A (en) * 2020-06-29 2020-10-09 深圳前海微众银行股份有限公司 Microservice anomaly compensation method, microservice anomaly compensation device, microservice anomaly compensation equipment and computer readable storage medium
WO2022005685A1 (en) * 2020-06-29 2022-01-06 Amazon Technologies, Inc. Managed control plane service
CN114647822A (en) * 2020-12-17 2022-06-21 中移(苏州)软件技术有限公司 Data processing method, device, terminal and storage medium
CN113051043A (en) * 2021-03-10 2021-06-29 北京沃东天骏信息技术有限公司 Micro-service anomaly compensation method and device
CN114253673A (en) * 2021-12-17 2022-03-29 中电金信软件有限公司 Transaction processing method and transaction processing device of distributed system

Also Published As

Publication number Publication date
CN115509770A (en) 2022-12-23

Similar Documents

Publication Publication Date Title
EP3531290B1 (en) Data backup method, apparatus, electronic device, storage medium, and system
US20190095887A1 (en) Resource transferring method and apparatus
CN111427648A (en) Page resource updating method and device, electronic equipment, server and storage medium
CN111064654A (en) Message display method and electronic equipment
CN111399819B (en) Data generation method, device, electronic equipment and storage medium
CN111342979B (en) Information processing method and electronic equipment
CN115509770B (en) Micro-service calling method and device, electronic equipment and readable storage medium
CN111131607A (en) Information sharing method, electronic equipment and computer readable storage medium
CN111200648B (en) Service calling method, device, terminal equipment and storage medium
CN116112403B (en) Cloud service management system and method for application service, electronic equipment and storage medium
CN111159738B (en) Authority configuration method, application login method and device
CN109889568B (en) Data export method, server and system
CN108491225B (en) Update package generation method and mobile terminal
CN107979688B (en) application program management method and mobile terminal
CN117527804A (en) Network request information forwarding method and device
CN111475141B (en) Method and device for generating list and electronic equipment
CN113039517A (en) Audio resource calling method and device and electronic equipment
CN110442361B (en) Gray release method and device and electronic equipment
CN108320144B (en) Information processing method, application server and mobile terminal
CN117407164B (en) Method and device for providing computing power service, electronic equipment and storage medium
CN112214699A (en) Page processing method and related device
CN112130949B (en) Prompt resource display method and device and computer readable storage medium
CN111340587B (en) Virtual commodity management method and related device
CN111399881B (en) Application program updating method and device, storage medium and mobile terminal
CN108282532B (en) File transmission method, sending device, receiving device and terminal

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