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

Sequence generating method and device

A sequence generation and serial number generation technology, applied in the field of communication, can solve problems such as poor performance, congestion, and indistinguishable serial numbers of clients

Active Publication Date: 2017-04-19
HUAWEI TECH CO LTD
View PDF3 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides a sequence generation method and device to solve the problem that the serial numbers of different clients cannot be distinguished in the existing solutions, and there is congestion and poor performance in high concurrency scenarios
For the same client, the serial number in the same serial pool is used, and the client requests to obtain a single serial number using the service ID, so the uniqueness and order of the global sequence are guaranteed, and multiple clients perform concurrently. It does not affect each other and improves the performance of sequence acquisition, thereby solving the problem of congestion and poor performance in the high-concurrency scenario in the existing technology

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
  • Sequence generating method and device
  • Sequence generating method and device
  • Sequence generating method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention , but not all examples. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0039] The sequence generation method and device provided by the embodiments of the present invention are used in a distributed system, figure 1 It is a schematic diagram of the overall architecture of the current distributed system, such as figure 1 As shown, the project is divided into layers, generally divided into three layers: 1. Channel entrance (Portal) access, which is the page ...

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 sequence generating method and device. The method comprises the following steps: receiving a sequence generating request sent by a client, wherein the sequence generating request carries an identification from the client; generating a deviation segment character string according to the identification from the client, and searching a corresponding deviation segment according to the deviation segment character string, wherein the deviation segment comprises a deviation value and a sequence pool identification; searching a sequence pool indicated by the sequence pool identification, regarding the deviation value as an index of the sequence pool to position to a corresponding sequence number in the sequence pool, sending the sequence number to the client, and adding one for the deviation value to obtain a new deviation value. The used sequence numbers are in the same sequence pool for the same client, the single sequence number is acquired by the client request by use of a business identification, thereby guaranteeing the uniqueness and orderness of the overall sequence; multiple clients are simultaneously erupted without influencing each other, the sequence acquisition performance is improved, and the problems of congestion and bad performance under the high concurrence scene in the prior art are solved.

Description

technical field [0001] The present invention relates to the field of communication technology, in particular to a sequence generation method and device. Background technique [0002] Sequence (Sequence) is one of the most commonly used data in application systems. It needs to be used in various environments such as database primary keys and business codes. The generated sequence numbers (also called sequence values) such as commodity order numbers and express delivery order numbers etc. With the popularization of the Internet and software systems, especially after the introduction of distributed deployment environment and platform as a service (Platform as a Service, referred to as: PAAS) cloud concept, the existing sequence generation method in a single server environment can no longer meet business requirements and technical requirements. [0003] For scenarios where there are multiple business servers (or multiple clients under the same server), an existing sequence gen...

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
CPCG06F16/90339
Inventor 路孝强齐增春刘宝雷张帅
Owner HUAWEI 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