When should we use API Proxy against API AutoDiscovery. After implementing both, I found AutoDiscovery can also apply policies, analytics which API Gateway does, only thing is I cannot use a different url if using AutoDiscovery. Main advantage of API Proxy would be if my Gateway application and Mule Implementation Project is in different subnet, so if we are my Gateway server is compromised, no one can get to my implementation network.
But if both interface and implementation is in the same network, and purpose is just to call a REST Endpoint, should we not go with API AutoDiscovery.
Problems with Mule API Gateway Proxy
- No defined way of Exception Handling, if we are not able to reach the Implementation Server.
- No defined way of moving the Proxy Application across environments (CI/CD)
- Extra HTTP Hops, can be acceptable if the above 2 issues have a defined way
Mule API AutoDiscovery
- Since this is in the Mule Application, standard Exception Handling.
- CI/CD is defined as it is the Mule Implementation Project.
- No Extra HTTP Hop.
- Only thing here is, we cannot change the implementation URL, that is only tightly coupled thing.
Can someone provide insight on when should we go for API Gateway vs AutoDiscovery. Also currently is there a way of doing Exception Handling in API Gateway Project and also CI / CD ?