Distributed system-based serial number generation method and apparatus, and electronic device

A distributed system and serial number technology, applied in the direction of electrical digital data processing, special data processing applications, instruments, etc., can solve problems such as unguaranteed response time, high pressure on the database, and inability to provide uninterrupted services, etc., to avoid Effects of database stress

Inactive Publication Date: 2018-09-07
JINGDONG TECH HLDG CO LTD
View PDF4 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This scheme uses the globally unique database optimistic lock, which has obvious disadvantages and relies heavily on the stability and performance of the database.
When the amount of visits is too large, for example, with a step size of 1000 and 5 million requests per second, the database processes 5000 query requests per second on average, which will cause excessive pressure on the database and the response time cannot be guaranteed
And in the event of a database failure, uninterrupted service cannot be provided

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 system-based serial number generation method and apparatus, and electronic device
  • Distributed system-based serial number generation method and apparatus, and electronic device
  • Distributed system-based serial number generation method and apparatus, and electronic device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals denote the same or similar parts in the drawings, and thus their repeated descriptions will be omitted.

[0046] Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided in order to give a thorough understanding of embodiments of the invention. However, those skilled in the art will appreciate that the technical solutions of the present invention may be practiced without one or more of the ...

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 relates to a distributed system-based serial number generation method and apparatus, and an electronic device. A distributed system comprises multiple servers; each server comprises at least one serial number service unit; and each serial number service unit comprises at least one serial number generator. The method for generating a serial number by each serial number service unit comprises the steps of receiving a serial number application request; generating an internal serial number through the serial number generator; and obtaining a corresponding instance number from a localend, and according to the instance number and the internal serial number, generating the serial number. According to the technical scheme, the serial numbers are generated in parallel through the serial number service units, so that excessively high database pressure caused by dependence on a database can be avoided and continuous services can be provided when the database has a fault.

Description

technical field [0001] The present application relates to the technical field of computer applications, in particular, to a distributed system-based method, device and electronic equipment for generating serial numbers. Background technique [0002] Serial numbers are used to uniquely identify system elements and are widely used in various application systems, such as vending systems, insurance systems, wealth management systems, and financial systems. With the increasing amount of data, to ensure the uniqueness of business flow or orders, a highly available and reliable serial number generator is required to generate unique serial numbers. For example, for the existing large-scale financial management system, it is already necessary to generate trillions of serial numbers every day. [0003] In the related art, a serial number generation scheme is as follows: allocate a segment-by- segment sequence through a database optimistic lock, and control the granularity of the lock...

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
IPC IPC(8): G06F17/30
Inventor 王海龙邹保威余刚林坤
Owner JINGDONG TECH HLDG CO LTD
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