分布式snowflake在c#和python中的使用
1. c#
NuGet程序控制台 Install-Package Snowflake.Net
using Snowflake.Net; var id = new IdWorker(1, 1).NextId();
2.python
pip install requests pysnowflake
snowflake_start_server
import snowflake.client Test = models.BigIntegerField(default=snowflake.client.get_guid(), verbose_name='测试')