Closed CesarCoelho closed 7 years ago
Aren't we going to just end up with the naming conflict where they all end up using the same endpoint name with this?
Not really, different applications will have different APIDs. So, you get something like: App A: APID=123 Service 1: uri: 123/1 broker: 123/2 Service 2: uri: 123/2
App B: APID=124 Service 1: uri: 124/1 Service 2: uri: 124/2 Service 3: uri: 124/3 broker: 124/4 (etc)
And if you run multiple instances of the same application your randomness might still hit a endpoint already in use because they are running in different processes.
Randomness during the creation of Endpoints removed and replaced with a simple sequence generator.