Newbie
Newbie
SIASapphire - Imagine a framework
Created by Newbie on 5/11/2023 in #sapphire-support
Snowflake limit
What's this limitation 4095 in @sapphire/snowflake?
8 replies
SIASapphire - Imagine a framework
Created by Newbie on 5/5/2023 in #sapphire-support
Snowflake support
Yo (english isnt my native lang) So I am planning to use snowflake id's in my own app, and I decided to use your package (@sapphire/snowflake) because it looks the best one (found it from djs). While researching the snowflake id's, as far as I understand, the worker id is included in the snowflake so there wont be any dublicates. And while I was browsing your code, I saw the options workerId and processId, how to use them? I mean, the backend is just expressjs, without workers or anything, i am planning to run a single instance on vps using pm2, or maybe use pm2 to create workers? so, i know that these options are optional, but still, how to use them? when should i use them?
11 replies