I need a unique ID sequence number generator, I know I could just use a small MySQL instance, but is there no other way?

I need a unique ID sequence number generator (not necessarily distributed, but would be cool if it is), i know I could just use a small MySQL instance, but is there no other way?

Twitter built Snowflake https://github.com/twitter-archive/snowflake/tree/snowflake-2010

But it is not maintained anymore. I just require a solution that I can implement on e.g a digital ocean droplet. nothing fancy.

But a distributed solution would be much cooler, so that a single server can’t be a bottleneck. Well, building a distributed solution of a normal solution is not a problem I think, you just make a prefix before the ID to indicate the server; this is also done in sharded SQL.

https://www.callicoder.com/distributed-unique-ID-sequence-number-generator/

I know I can solve it easy with a small SQL DB instance like I always do

But I’ve just wondered if there is not any other way to solve that problem.