3 ms·
How about just returning the service url along with the API auth token. This would enable load balancing and failover too.
by fulafel 8y ago
How about just returning the service url along with the API auth token. This would enable load balancing and failover too.
- BjoernKW 8y agoYes, but that'd require a more complex process on the client. At least you'd have to send an additional request, e.g. instead of just calling https://someserviceprovider.com/serviceA https://someserviceprovider.com/serviceA you'd first have to call https://someserviceprovider.com/serviceA https://someserviceprovider.com/serviceA which for example would return { "url": "https://someserviceprovider.com:8081" https://someserviceprovider.com:8081", "auth_token": "..." } and only then could you call the actual service under https://someserviceprovider.com:8081 https://someserviceprovider.com:8081