Application method and system based on optimized snowflake algorithm in industrial big data

An application method, application system technology

Active Publication Date: 2020-11-13
上海微亿智造科技有限公司 +1
View PDF12 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Some of these methods require a huge amount of coding and configuration work, some cannot guarantee the trend of the generated IDs increasing, and some of them generate too long IDs with low performance and are difficult to expand
Even if the original snowflake algorithm is used, it cannot solve the ID length requirement and global uniqueness in the distributed scenario of the industrial field

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
  • Application method and system based on optimized snowflake algorithm in industrial big data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0052] According to the application method of an optimized snowflake algorithm in industrial big data provided by the present invention, it includes: figure 1 as shown,

[0053] Step M1: optimize the snowflake algorithm to ensure the global uniqueness of ID in the distributed environment of industrial big data;

[0054] Step M2: Encapsulate the implementation code of the optimized snowflake algorithm into a tool class, and package the tool class into a module;

[0055] Step M3: Compile the source code written in Java based on different development scenarios;

[0056] Step M4: packaging the bytecode file generated after the Java source code is successfully compiled into a jar package;

[0057] Step M5: Based on different development scenarios, according to the imported jar package in the industrial big data, use the optimized snowflake algorithm to generate a unique ID.

[0058] Specifically, the optimization of the snowflake algorithm includes:

[0059] The 10bit machine ID ...

Embodiment 2

[0099] Embodiment 2 is a modification of embodiment 1

[0100] Improve the snowflake algorithm itself to ensure that the generated global ID serial number is continuously and steadily increasing, and the length does not exceed 15 digits; realize the convenient, efficient, and non-intrusive use of this algorithm to generate globally unique IDs in high-concurrency industrial big data business scenarios ID serial number to improve research and development efficiency.

[0101] The implementation principle of a globally unique serial number generation algorithm for the field of industrial big data is as follows:

[0102] The ID generated by the original snowflake algorithm is 64bit, which is 19 digits when converted into an integer, and the ID of the working machine can only be generated according to simple rules or manually defined, which cannot fully guarantee the industrial big data in the distributed environment. Global uniqueness of the ID.

[0103] The preset machine ID inc...

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 an application method and system based on an optimized snowflake algorithm in industrial big data, and the method comprises the steps: M1, optimizing the snowflake algorithm, and guaranteeing the global uniqueness of an ID in a distributed environment of the industrial big data; M2, packaging the implementation code of the optimized snowflake algorithm into a tool class, andpackaging the tool class into a module; M3, compiling source codes compiled by Java on the basis of different development scenes; M4, packaging a byte code file generated after the Java source code is compiled successfully into a jar package; and M5, generating a unique ID by using an optimized snowflake algorithm according to the introduction of a jar packet into the industrial big data based ondifferent development scenes. By optimizing the implementation of the snowflake algorithm and aiming at a distributed application scene in the field of industrial big data, the problem of automatically generating the globally unique serial number is solved, the access time cost and the labor cost of the algorithm are reduced, and the research and development efficiency is greatly improved.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular, to an application method and system based on an optimized snowflake algorithm in the field of industrial big data, and more specifically, to an application method and system based on an optimized snowflake algorithm in the field of industrial big data Applied method. Background technique [0002] Traditional ID generation strategies generally include self-incrementing attribute generation in the database, self-developed single-point or cluster service development batch ID generation functions, uuid / guid, and ID generation based on Redis. Some of these methods require a huge amount of coding and configuration work, some cannot guarantee the trend of the generated IDs increasing, and some of the generated IDs are too long, the performance is not high, and it is difficult to expand. Even if the original snowflake algorithm is used, it cannot solve the ID length requirements...

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): G06F8/41G06F8/71H04L29/12
CPCG06F8/41G06F8/71H04L2101/622
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