Application method and system based on optimized snowflake algorithm in industrial big data
What is Al technical title?
Al technical title is built by PatSnap Al team. It summarizes the technical point description of the patent document.
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
This helps you quickly interpret patents by identifying the three key elements:
Problems solved by technology
Method used
Benefits of technology
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
Click on the blue label to locate the original text in one second.
Reading with bidirectional positioning of images and text.
Smart Image
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
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
Application Date:The date an application was filed.
Publication Date:The date a patent or application was officially published.
First Publication Date:The earliest publication date of a patent with the same application number.
Issue Date:Publication date of the patent grant document.
PCT Entry Date:The Entry date of PCT National Phase.
Estimated Expiry Date:The statutory expiry date of a patent right according to the Patent Law, and it is the longest term of protection that the patent right can achieve without the termination of the patent right due to other reasons(Term extension factor has been taken into account ).
Invalid Date:Actual expiry date is based on effective date or publication date of legal transaction data of invalid patent.