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

User system and data providing method thereof

A user system and data technology, applied in electronic digital data processing, structured data retrieval, special data processing applications, etc., can solve problems such as low performance, poor reliability, and system crashes of user systems, and achieve high performance, performance improvement, High reliability effect

Active Publication Date: 2022-02-18
SICHUAN HONGMEI INTELLIGENT TECH CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If too many connections are requested, user system resources will be continuously consumed, and insufficient resources will cause memory overflow, and even cause the system to crash
Therefore, the traditional method leads to low performance and poor reliability of the user system

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
  • User system and data providing method thereof
  • User system and data providing method thereof
  • User system and data providing method thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0016] The solutions provided in this specification will be described below in conjunction with the accompanying drawings.

[0017] In a first aspect, the present invention provides a data providing method for a user system, where the user system includes a database, a first cache, and a second cache.

[0018] Such as figure 1 As shown, the data provision methods of the user system include:

[0019] S110. After the user system is started, call a data generation method to generate first data and save it to the database, and synchronize the first data in the database to the first cache;

[0020] It is understandable that after the user system is shut down, the data in the cache will be erased, so when the user system is started, there is no data in the first cache, so when the user system is started, a batch of data needs to be generated and stored in in the first cache. Specifically, it is necessary to store the generated data in the database, and then synchronize the newly ...

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 embodiment of the invention provides a user system and a data providing method thereof, and the method comprises the steps: after the user system is started, generating first data, storing the first data in a database, and synchronizing the first data in the database to a first cache; when a data acquisition request sent by a service system is received, judging whether the ratio of the quantity of the first data used in the first cache to the total quantity is greater than or equal to a preset threshold value or not; if the first data is greater than or equal to the preset threshold value, judging whether the first data in the first cache is completely used or not; if not, judging whether data is stored in a second cache or not; and if the data is not stored, asynchronously calling a data generation method to generate second data, storing the second data into the database, synchronizing the second data in the database into the second cache, selecting unused first data from the first cache, and returning the selected unused first data to the service system. According to the method, the high performance, high concurrency and high reliability of a user system are ensured by adopting a double-buffering technology.

Description

technical field [0001] One or more embodiments of this specification relate to the technical field of air conditioners, and in particular to a user system and a data providing method thereof. Background technique [0002] Due to the flexible deployment, scalability, and technical heterogeneity of the microservice architecture, more and more companies use the microservice architecture to develop various projects, and services developed based on the microservice architecture need to provide interface calls to other services, such as , the user system developed based on the microservice architecture needs to provide an interface to obtain the user invitation code, and the business system initiates an interface request to the user system to obtain the invitation code, which is unique in the entire system. The traditional method is a single caching mechanism, which is to generate a batch of invitation codes and save them in the database, and then read the data from the database a...

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): G06F16/27G06F16/2455
CPCG06F16/275G06F16/24552
Inventor 张银波陈良
Owner SICHUAN HONGMEI 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