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

Service data processing method and device and electronic equipment

A business data and business technology, applied in the field of data processing, can solve the problems of cluster business system collapse, multiple database resources, consumption, etc., to reduce the number of visits, reduce resource consumption, and improve performance.

Pending Publication Date: 2021-08-06
JINGDONG TECH HLDG CO LTD
View PDF3 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the inventor found in the process of implementing this application that the concurrency of business data modification in the cluster scenario is high, and the above-mentioned database optimistic locking method will lead to high access frequency of the business database and consume more database resources , thereby reducing the business performance of the entire cluster business system, and even causing the entire cluster business system to collapse

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
  • Service data processing method and device and electronic equipment
  • Service data processing method and device and electronic equipment
  • Service data processing method and device and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0165] example one, Figure 5 It is a schematic diagram of a business data modification scenario provided by the embodiment of this application. Such as Figure 5 As shown, it is assumed that user A needs to modify the first service data. User A first queries the first service data, and obtains the current content of the first service data and the current version identifier of the first service data, which is assumed to be V1. User A modifies the queried first service data. After the modification is completed, user A sends a modification request to the first node through the terminal device, and the modification request carries the modification content of the first business data and the modification of the first business data The version identifier (that is, V1) on which to base.

[0166] After the first node receives the modification request, before updating the modified content of the first business data to the business database, it first obtains the version identifier of...

example 2

[0167] Example two, Figure 6 It is a schematic diagram of another business data modification scenario provided by the embodiment of this application. Such as Figure 6 As shown, it is assumed that both user A and user B need to modify the first service data. User A queries the first service data, and obtains the current content of the first service data and the current version identifier of the first service data, which is assumed to be V1. User B queries the first service data, and obtains the current content of the first service data and the current version identifier of the first service data, which is assumed to be V1.

[0168] User A modifies the queried first service data. And, user B modifies the queried first service data. Assume that user A completes the modification before user B.

[0169]After user A completes the modification, user A sends a modification request to the first node through the terminal device, and the modification request carries the modified c...

example 3

[0171] Example three, Figure 7 It is a schematic diagram of another business data modification scenario provided by the embodiment of this application. Such as Figure 7 As shown, it is assumed that both user A and user C need to modify the first service data. User A queries the first service data, and obtains the current content of the first service data and the current version identifier of the first service data, which is assumed to be V1. User C queries the first service data, and obtains the current content of the first service data and the current version identifier of the first service data, which is assumed to be V1.

[0172] User A modifies the queried first service data. And, user C modifies the queried first service data. Assume that user A completes the modification before user C.

[0173] After user A completes the modification, user A sends a modification request to the first node through the terminal device, and the modification request carries the modifie...

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 provides a service data processing method and device and electronic equipment. The method can be applied to a first node in a cluster service system and comprises the following steps that a modification request sent by terminal equipment is received, wherein the modification request comprises an identifier of to-be-modified first service data, modification content of the first service data and a first version identifier based on which the modification of the first service data is carried out, according to the identifier of the first service data, acquiring a second version identifier corresponding to the first service data from a cache database corresponding to the first node, wherein cache databases corresponding to different nodes in the cluster service system are different, and if the first version identifier is determined to be the same as the second version identifier, updating the modified content of the first service data to a service database. According to the scheme, the access times of the service database can be reduced, the resource consumption of the service database is reduced, and the performance of a cluster service system is improved.

Description

technical field [0001] The present application relates to the technical field of data processing, and in particular to a business data processing method, device and electronic equipment. Background technique [0002] In a cluster-based business system, business data is stored in a business database. Each node in the cluster can access the business database, and perform operations such as query, modification, and deletion on the business data. In practical applications, it often happens that multiple nodes modify the same business data, resulting in the modification of business data by different nodes covering each other. [0003] In related technologies, version control of business data can be performed by means of database optimistic locking. Specifically, a latest version identifier is maintained for each business data in the business database. Before modifying the business data, each node first queries the business database to obtain the current version identifier of t...

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/21G06F16/23G06F16/2455
CPCG06F16/219G06F16/23G06F16/24552
Inventor 李璇
Owner JINGDONG TECH HLDG 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