Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

High available ID generator and ID generation method and device thereof

A generation device and generator technology, applied in the Internet field, can solve problems such as single point of failure, achieve high availability, and avoid the effect of single point of failure

Inactive Publication Date: 2018-04-27
SHENZHEN HUAYUE CULTURE MEDIA CO LTD
View PDF5 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The main purpose of the present invention is to provide a high-availability ID generator and its ID generation method and device, which overcomes the defect of a single point of failure when generating an ID at present

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
  • High available ID generator and ID generation method and device thereof
  • High available ID generator and ID generation method and device thereof
  • High available ID generator and ID generation method and device thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0042] Those skilled in the art will understand that unless otherwise stated, the singular forms "a", "an", "the", "above" and "the" used herein may also include plural forms. It should be further understood that the word "comprising" used in the description of the present invention refers to the presence of said features, integers, steps, operations, elements, units, modules and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, units, modules, components and / or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Additionally, "connected" or "coupled" as 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
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a high available ID generator and an ID generation method and an ID generation device thereof. The high available ID generator comprises a master database deployed in a distributed manner, at least one slave database and at least two guard processes, wherein the master database and the slave database provide a unique ID and a port outwards for service via a load balancing service; when running normally, the master database is used for receiving an ID generation request, and generating the unique ID according to the request, wherein the ID is an auto-incremented ID; whenthe guard process detects that the master database goes down, master and backup switching is performed on the master database and the next slave database that runs normally; and a load balancing interface is called back, and an access weight of each database is modified. The slave database is used for receiving the ID generation request after being switched to the master database, and generating the unique ID according to the request; according to the high available ID generator and the ID generation method and device provided by the invention, the master and standby switching can be performedon the master database and the slave database to generate the ID, so that the high availability is ensured, and the occurrence of a single point failure is avoided.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to a highly available ID generator and its ID generating method and device. Background technique [0002] As a kind of identification, ID plays a very important role in identification on the Internet. Currently, ID generation has multiple implementations: [0003] 1. Use mysql (a relational database management system) to generate a unique ID by auto-incrementing ID [0004] The disadvantage is: in the case of a single database or read-write separation such as one master and multiple slave databases, only one master database can generate IDs, and there is a risk of single point of failure. The optimized version based on this is to set up multiple Master databases, and the starting value and step size of each database are different, such as Master1 generates 1, 3, 5; Master2 generates 2, 4, 6, etc.; this avoids single point There is a risk of failure, but there is a problem of...

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 Applications(China)
IPC IPC(8): H04L29/12H04L29/08H04L12/24G06F17/30
CPCH04L41/0663H04L61/3015G06F16/25H04L67/1001
Inventor 方朕
Owner SHENZHEN HUAYUE CULTURE MEDIA 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
Eureka Blog
Learn More
PatSnap group products