Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Data sharing method and device and medium

A data sharing and data technology, applied in the field of microservices, can solve the problems of many additional functions, many system resources, and high maintenance costs

Active Publication Date: 2020-12-29
SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
View PDF4 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the process of use, it is found that the sharing of data between microservice modules cannot be better completed (data that rarely changes), such as Session information, common system configuration information, basic user information, etc.; the common solution in the industry is Introduce a shared middleware, such as Redis or Memcache, to store the data that needs to be shared, and complete the timely update of the shared data according to certain strategies
However, intermediate shared components generally occupy more system resources and have too many additional functions. In the case of high availability, it is necessary to build high availability of intermediate components, and the maintenance cost is too high

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
  • Data sharing method and device and medium
  • Data sharing method and device and medium
  • Data sharing method and device and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] In order to make the object, technical solution and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

[0040] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are to distinguish two entities with the same name but different parameters or parameters that are not the same, see "first" and "second" It is only for the convenience of expression, and should not be construed as a limitation on the embodiments of the present invention, which will not be described one by one in the subsequent embodiments.

[0041] According to one aspect of the present invention, an embodiment of the present invention proposes a data sharing method, such as figure 1 As shown, it may include executing the steps at each node:

[0042] S1, marking one of the first queue ...

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 data sharing method, which comprises the following steps executed at each node: marking one of a first queue and a second queue as a current queue by using a preset mark, sothat the other queue is used as a non-current queue; receiving to-be-shared data of each micro-service component by utilizing the current queue; screening the data in the current queue according to apreset rule, and emptying the current queue after synchronizing the screened data to a non-current queue; transferring the preset mark of the current queue to a non-current queue, so as to enable thecurrent queue to be converted into the non-current queue, enable the non-current queue to be converted into the current queue, and returning to receive the to-be-shared data of each micro-service component by utilizing the current queue. The invention further discloses computer equipment and a readable storage medium. According to the scheme provided by the invention, data sharing is realized through the first queue and the second queue, so that data controllability can be realized, namely partial data can be deleted according to actual requirements, and partial data can be reserved.

Description

technical field [0001] The present invention relates to the field of microservices, in particular to a data sharing method, device and storage medium. Background technique [0002] Based on microservices, code can be easily updated, the development efficiency of each R&D team can be improved, and service components can be automatically expanded and contracted. In the artificial intelligence development platform architecture, K8S-based microservice architecture is preferred. However, in the process of use, it is found that the sharing of data between microservice modules cannot be better completed (data that rarely changes), such as Session information, common system configuration information, basic user information, etc.; the common solution in the industry is Introduce a shared middleware, such as Redis or Memcache, to store the data that needs to be shared, and complete the timely update of the shared data according to certain strategies. However, intermediate shared comp...

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 Applications(China)
IPC IPC(8): H04L29/08
CPCH04L67/1095H04L67/51
Inventor 孙辽东
Owner SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products