Skip to content

Commit d5ebe95

Browse files
authored
Update README.md
1 parent 77021bd commit d5ebe95

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,11 @@ The generated 2.x ID's are still compatible with 3.x ID's. This release is mostl
183183

184184
# FAQ
185185

186-
**Q**: Help, I'm getting duplicate ID's?
186+
**Q**: Help, I'm getting duplicate ID's or collisions?
187187

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.
189191

190192
**Q**: I'm experiencing weird results when these ID's are used in Javascript?
191193

0 commit comments

Comments
 (0)