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

Number generating method, device and system and storage medium

A technology for generating devices and numbers, applied in the field of communication, can solve problems such as low numbering efficiency, and achieve the effect of avoiding synchronous operation and improving numbering efficiency

Active Publication Date: 2021-08-03
杭州云永网络科技有限公司
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Since multiple servers in the distributed system need to perform synchronous operations, one server in the distributed system needs to wait for the synchronization signal of other servers before generating the number, which leads to low efficiency in generating numbers in the distributed system

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
  • Number generating method, device and system and storage medium
  • Number generating method, device and system and storage medium
  • Number generating method, device and system and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0069] The present application provides a distributed system; the distributed system includes a cache server and multiple servers connected to the cache server.

[0070] In the distributed system, each server no longer needs to generate numbers and perform synchronization operations to ensure that each server stores the maximum number. Instead, the number generation request is sent to the cache server, and the cache server generates the number uniformly, and the cache server stores the maximum number. Numbering.

[0071] Because only the cache server generates the number, the latest number on the cache server is also the maximum number, and there is no need to perform a synchronization operation. This can not only ensure that the cache server generates a new number based on the maximum number, but also avoid synchronization operations between multiple servers, thereby improving the numbering efficiency of the distributed system.

[0072] The following will clearly and complet...

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 application provides a number generation method, device, system and storage medium, the method is applied to a cache server in a distributed system, and the distributed system also includes multiple servers connected to the cache server; the The number generation method includes: after the number requesting device sends a number generation request to the server, receiving the number generation request forwarded by the server; on the basis of the cached number counter information, generating a number corresponding to the number generation request; feeding back the number to The server, for the server to feed back the number to the number requesting device. In this application, each server no longer needs to generate numbers and perform synchronization operations to ensure that each server stores the maximum number, but the cache server uniformly generates numbers and stores the maximum number. The present application can ensure that the cache server generates a new number based on the maximum number and avoids synchronous operations between servers, thereby improving the numbering efficiency of the distributed system.

Description

technical field [0001] The present application relates to the technical field of communications, and in particular to a number generation method, device, system and storage medium. Background technique [0002] With the rapid development of the Internet, IDs need to be generated in many business scenarios. At present, for some larger systems, a distributed system is usually used to generate numbers. [0003] At present, a distributed system includes multiple servers, and the multiple servers are connected to each other. Each server can receive the number generation request sent by the number request device and the synchronization signal sent by other servers (the synchronization signal includes the maximum number generated on other servers), and determine the maximum Number, add one to the maximum number to generate a new number, and then send a synchronization signal to other servers so that other servers can back up the maximum number generated on the server. [0004] S...

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): H04L29/08H04L12/863
CPCH04L47/6245H04L67/1095H04L67/1097
Inventor 谭华林
Owner 杭州云永网络科技有限公司
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