You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -183,9 +183,11 @@ The generated 2.x ID's are still compatible with 3.x ID's. This release is mostl
183
183
184
184
# FAQ
185
185
186
-
**Q**: Help, I'm getting duplicate ID's?
186
+
**Q**: Help, I'm getting duplicate ID's or collisions?
187
187
188
-
**A**: Then you're probably not using IdGen as intended: It should be a singleton, and if you insist on having multiple instances around they should all have their own unique GeneratorId
188
+
**A**: Then you're probably not using IdGen as intended: It should be a singleton (per thread/process/host/...), and if you insist on having multiple instances around they should all have their own unique GeneratorId.
189
+
190
+
**A**: Also: Don't change the structure; once you've picked an `IdStructure` and go into production commit to it, stick with it. This means that careful planning is needed to ensure enough ID's can be generated by enough generators for long enough. Although changing the structure at a later stage isn't impossible careful consideration is needed to ensure no collisions will occur.
189
191
190
192
**Q**: I'm experiencing weird results when these ID's are used in Javascript?
0 commit comments