Method and system for generating digital sequences with high availability and high performance

A digital sequence and sequence generation technology, applied in digital transmission systems, transmission systems, data exchange networks, etc.

Active Publication Date: 2021-09-14
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] 1) When the digital sequence client requests to generate a digital sequence, it needs to request the server first, and then the server requests the database, and there are two network request overheads;
[0009] 2) The digital sequence server needs to deploy multiple servers to meet the high availability requirements of sequence generation, so more hardware resources are required

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
  • Method and system for generating digital sequences with high availability and high performance
  • Method and system for generating digital sequences with high availability and high performance
  • Method and system for generating digital sequences with high availability and high performance

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0038]The technical solution of the high-availability and high-performance digital sequence generation in the embodiment of the present invention is mainly to obtain the digital sequence through two shifting methods and performing a bit-OR operation, and to ensure the uniqueness of the digital sequence on the basis of ensuring high availability; The performance is improved...

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 present invention provides a high-availability and high-performance digital sequence generation method and system, which can eliminate the need for a server, and make the final digital sequence generation logic all placed on the client; and can ensure high availability and high performance of digital sequence generation . The method includes: step 1: the client obtains the number sequence from the memory queue according to the number sequence request, and returns the number sequence directly if there is a number sequence in the memory queue, and continues to execute if there is no number sequence in the memory queue Step 2; Step 2: the client invokes the underlying sequence generator to generate the underlying sequence; Step 3: the client generates several digital sequences based on the underlying sequence; Step 4: returns the number sequence ranked first, And save the remaining number sequences in the memory queue, so that the number sequences can be obtained in time for subsequent number sequence requests.

Description

technical field [0001] The invention relates to the field of computer technology and software, in particular to a method and system for generating digital sequences with high availability and high performance. Background technique [0002] With the continuous development of computer technology, it is often necessary to generate a unique number sequence in various business scenarios, such as express delivery number, commodity order number in the e-commerce field, or sub-database sub-table to ensure a unique digital primary key of the data table, etc. Each business system will rely heavily on this kind of number sequence generation method. If the number sequence generation efficiency is low, it will directly affect the efficiency of the business system. If the number sequence generation is abnormal, it will directly cause the business system to be unavailable. [0003] The generation method of the digital sequence in the prior art is roughly as follows: [0004] 1. The digita...

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 Patents(China)
IPC IPC(8): H04L12/24
CPCH04L41/0826
Inventor 赵玉开
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH 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