A number allocation method, server and system

A technology for assigning servers and numbers, which is applied in the Internet field, can solve problems such as failures, achieve the effect of reducing load, reducing the possibility of request failure, and reducing the number of message transmissions

Active Publication Date: 2019-04-02
北京科摩仕捷科技有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0013] It can be seen from the above scenario that even if the user requests A to add a timeout retry mechanism, due to the constraints of the serial queue, the more elements waiting in the queue, the higher the possibility of failure

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
  • A number allocation method, server and system
  • A number allocation method, server and system
  • A number allocation method, server and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] Hereinafter, exemplary embodiments of the present disclosure will be described in more detail with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0036] figure 1 A schematic diagram of a number allocation system 100 according to an embodiment of the present invention is shown. Such as figure 1 As shown, the number distribution system 100 includes a distribution server 300 and a cache server 400. The distribution server 300 and the cache server 400 are in communication connection. The cache server 400 includes a number information database (not shown in...

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 discloses a number allocation method, server and system. The allocation server is connected in communication with a cache server. The method includes: receiving a number allocation request from a client, where the number allocation request includes the number of numbers to be allocated and the requested serial number; Send the number of numbers allocated by the demand, instruct the cache server to update the value of the atomic cursor in the number information database to the sum of its current value and the number of numbers allocated by the demand; obtain the updated value of the atomic cursor from the number information database in the cache server; The updated value of the atomic cursor and the number of numbers that need to be allocated calculate the sequence ID range of the number that can be allocated; send the sequence ID range and the request sequence number to the cache server, so that the cache server can request the number corresponding to the number according to the sequence ID range The ID is updated in batches to the request serial number, and a successful ID is returned to the client.

Description

Technical field [0001] The invention relates to the field of Internet technology, in particular to a number allocation method, server and system. Background technique [0002] With the continuous development of Internet technology, more and more users are participating in various interactive activities on the Internet, among which interactive activities such as lottery draws are particularly concerned and welcomed by users, and the Internet treasure platform has emerged. Since such activities usually have a large number of users participating, how to accurately and quickly assign participation numbers to users has become one of the key considerations in platform development. [0003] At present, the participating number allocation scheme adopted by the Duobao platform developed under the B / S structure uses a single number as the smallest unit to obtain the available participating numbers from the cache, and in Redis used as a cache server , The time complexity of lpop / rpop / blpop / b...

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/08
CPCH04L67/1001H04L67/53H04L67/568
Inventor 刘宇
Owner 北京科摩仕捷科技有限公司
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