Check patentability & draft patents in minutes with Patsnap Eureka AI!

Microservice-based collaborative processing method, system and server

A processing method and micro-service technology, applied in the field of distributed systems, can solve problems such as over-deduction, lack of idempotence, unclear service completion, etc., to reduce load pressure, avoid data inconsistency, and reduce the number of service requests Effect

Active Publication Date: 2020-09-22
TCL CORPORATION
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the collaboration between various services will become out of sync due to various reasons. For example, service A requests service B to complete a task, and the operation of this service is not idempotent
Then if an error occurs after the request, service A will not know whether the service is completed. Since the function of service B is not idempotent, service A cannot resend the request to service B.
For example, service B is a deduction operation. If the previous operation was successful, but there was an error when returning to service A, service A did not receive a success message. If service A sends the same request to service B again, then There will be an overcharge
Therefore, there are still collaboration problems between non-idempotent and idempotent operations in microservices that need to be solved urgently

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Microservice-based collaborative processing method, system and server
  • Microservice-based collaborative processing method, system and server
  • Microservice-based collaborative processing method, system and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] In view of the shortcomings of non-idempotent operations and idempotent operations between multiple services in the prior art, the purpose of the present invention is to provide a cooperative processing method, system and server based on micro-services. The microservice is handed over to the query interface for processing, and the functional operation and data return are split. When there are non-idempotent operations, data inconsistency caused by repeated operations can be avoided. In idempotent operations, the number of service requests can be reduced and the load pressure can be reduced .

[0053] In order to make the objectives, technical solutions and effects of the present invention clearer and clearer, the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the pre...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a cooperative processing method and system based on microservices and a server. The cooperative processing method solves the problem of cooperation of a non-idempotent operation and an idempotent operation between a plurality of services and ensures correctness of data by steps that: a service interface initiates requests to working interfaces of the microservices on a background; then the service interface receives processing results of the microservices, updates request state data of the corresponding microservices according to the processing results, inquires the request state data of all the microservices, judges whether microservices of which processing states are failure states exist and if yes, initiates the requests to the microservices of which the processing states are the failure states again, and the service interface receives processing results of the microservices of which the processing states are the failure states; and then the processing results of all the microservices are integrated and returned to a user request side, hands over the microservices failed in processing to an inquiry interface in an inquiring mode to process, and carries out splitting on function operation and data return.

Description

technical field [0001] The present invention relates to the technical field of distributed systems, in particular to a microservice-based collaborative processing method, system and server. Background technique [0002] Microservices is an emerging software architecture that splits a large single application and service into dozens of supporting microservices. A microservice strategy can make work easier by extending a single component instead of The entire application stack to meet service level agreements. [0003] However, the cooperation between various services will become asynchronous for various reasons. For example, service A requests service B to complete a task, and the operation of this service is not idempotent. Then, if there is an error after the request, service A will not know whether the service is completed. Since the function of service B is not idempotent, service A cannot resend the request operation to service B. For example, service B is a deduction ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/54G06F9/50
CPCG06F9/5083G06F9/542G06F9/547
Inventor 董延平张建
Owner TCL CORPORATION
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More