Skip to content

patrickfusion/cfSnowflakeID

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CF SnowflakeID

A SnowflakeID is a unique, distributed identifier generated by the Twitter Snowflake algorithm, primarily used for ensuring unique IDs across a distributed system with high performance. It is best used for generating globally unique IDs in distributed databases, microservices architectures, and other systems where unique and scalable identification is essential.

This a ColdFusion based SnowflakeID generator, this was only built/tested with Lucee.

How to use

snowflake = new snowflake().init(nodeId=1000);

mySnowflakeId = snowflake.nextId();

writedump(mySnowflakeId);

Authors

License

License

Feedback

If you have any feedback, reach out on CFML Slack:

Patrick Flynn Slack

Contributing

Contributions are always welcome!

Appendix

Here you can learn more about Snowflake ID:

https://en.wikipedia.org/wiki/Snowflake_ID

Also you can pull the timestamp from a working Snowflake ID here:

https://snowsta.mp/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •