Distributed caching method and device of service data, electronic equipment and storage medium

A distributed cache and business data technology, applied in the field of financial technology, can solve the problem of low utilization rate of data cache, achieve the effect of avoiding redundant storage, ensuring response speed, and overcoming duplicate storage

Active Publication Date: 2022-08-02
深圳市茗格科技有限公司
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The main purpose of this application is to provide a distributed caching method, device, electronic device and readable storage medium for business data, aiming to solve the technical problem of low cache utilization of distributed caching business data in the prior art

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
  • Distributed caching method and device of service data, electronic equipment and storage medium
  • Distributed caching method and device of service data, electronic equipment and storage medium
  • Distributed caching method and device of service data, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] First of all, it should be understood that there are usually two distributed caching solutions based on Redis on the market. Among them, the codis solution of adding a centralized codis-proxy (Redis proxy service) has become the mainstream due to its low latency. , refer to figure 1 , figure 1 It is a schematic diagram representing a distributed cluster based on Redis, in which the client includes data sharding of consistent hashing (sharding of consistent hashing), "proxy node (proxy) 1", "proxy node (proxy) 2" and " The proxy node (proxy) 3" is the proxy node in the proxy cluster. The cache node specifically includes the master node (master) and the slave node (slave). Among them, the cache node and the client are connected through network communication, and the cache node can be In order to access any form of computing device in the network, the client data cached by different cache nodes is different. Specifically, it is identified by "proxy" to jointly serve the b...

Embodiment 2

[0077] Further, refer to image 3 , in another embodiment of the present application, for the same or similar content as the above-mentioned first embodiment, reference may be made to the above description, and details will not be described in the following. On this basis, the to-be-cached service data includes the second type of to-be-cached service data, and the step of detecting whether the to-be-cached service data is service multiplexing data according to the data type of the to-be-cached service data includes:

[0078] Step F10, according to the service identification number corresponding to the second type of service data to be cached, obtain a service association data set jointly constructed by at least one cache master node;

[0079] Step F20, detecting whether there is business-related data in the business-related data set that is consistent with the second type of to-be-cached business data;

[0080] Step F30, if there is, do not use the second type of service data...

Embodiment 3

[0086] The embodiment of the present application also provides a distributed cache device for business data, where the distributed cache device for business data includes:

[0087] The business data acquisition module is used to acquire the business data to be cached;

[0088] a cache node determination module, configured to determine a target cache master node and a target cache slave node corresponding to the to-be-cached service data according to the data object identifier of the to-be-cached service data;

[0089] a service data judgment module, configured to judge whether the service data to be cached exists in the target cache master node and the target cache slave node;

[0090] A service data cache module, configured to, if present, determine whether to cache the service data to be cached to the target cache master node and the target cache slave node by detecting whether the service data to be cached is service multiplexing data .

[0091] Optionally, the business d...

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 distributed caching method and device for business data, electronic equipment and a readable storage medium, and is applied to the technical field of financial science and tech. The distributed caching method for the business data comprises the steps that to-be-cached business data is acquired; according to the data object identifier of the to-be-cached service data, determining a target cache master node and a target cache slave node corresponding to the to-be-cached service data; judging whether the to-be-cached service data exists in the target cache master node and the target cache slave node or not; and if yes, determining whether to cache the to-be-cached service data to the target cache master node and the target cache slave node or not by detecting whether the to-be-cached service data is service multiplexing data or not. The technical problem that in the prior art, the cache utilization rate of distributed cache service data is low is solved.

Description

technical field [0001] The present application relates to the technical field of financial technology, and in particular, to a distributed caching method, apparatus, electronic device and readable storage medium for business data. Background technique [0002] With the continuous development of the era of big data, in order to reduce the pressure on the database, distributed caching technology suitable for high concurrency environments has been widely used. Server, remote dictionary service) has become the mainstream of distributed caching technology. At present, Redis is usually managed and controlled by a server, and multiple client nodes perform distributed caching of business data to improve response speed and storage capacity requirements. After the business data is generated, the database needs to be accessed and then cached. However, there are shared data in different business data. For example, suppose business data A is the business data when the previous customer m...

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/2455G06F16/215G06F16/21G06F11/20
CPCG06F16/24552G06F16/215G06F16/217G06F11/2094G06F2201/80
Inventor 张延峰李秀金王晖
Owner 深圳市茗格科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products