https://www.ory.sh/ logo
h

high-optician-2097

12/06/2021, 8:17 AM
🤔 good question - i think for prometheus it's truly a singleton. for the identity manager, it doesn't really matter if its instantiated twice. the problem is a bit that locking and unlocking on every call to the registry can cause significant lock contestion on high volumes
f

fierce-forest-18331

12/06/2021, 8:41 AM
An alternative may be some eager init.
2 Views