Skip to content

An Azure Function implementation of the snowflake id.

License

Notifications You must be signed in to change notification settings

chunliu/azfunc-snowflake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

azfunc-snowflake

The sample code demonstrates generating snowflake ids with Azure Functions.

How to run it

  • Deploy the code to an Azure Function App.
  • Add 2 settings to the configuration of the Function App.
    • AzureWebJobsWorkerIdsTable - A connection string with SAS token to a Storage Table account. The code stores the worker id in the table.
    • DATACENTER_ID - A number from 0 - 31. If you deploy the code to multiple regions, each region should have different number.

Note

The code is only for the demonstration purpose. Use it at your own risk.

About

An Azure Function implementation of the snowflake id.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages