3 ms·
Our microservices stack is pretty dependent upon clients making cross-origin requests. I don't necessarily consider these "3rd party".
by matchagaucho 8y ago
Our microservices stack is pretty dependent upon clients making cross-origin requests. I don't necessarily consider these "3rd party".
- latch 8y agoCase by case basis, but it's not uncommon to have clients hit a single domain and route the traffic based on the url. Exposing a microservice architecture to clients has pros and cons, of which this is a con.
- emilsedgh 8y agoThat would mean each call made by the client would require a preflight OPTIONS call. That means extra delay, extra db connections and calls, etc. How do you deal with them?
- matchagaucho 8y agoPre-flight overhead, yes (maybe 30ms?) DB connections are pooled and cached using AWS Lambda. btw- Our app is a plugin, so origin is always the platform provider... then our app makes CORS calls to AWS.