When should you consider adding another Proxy Endpoint vs just adding another conditional flow?
Solved! Go to Solution.
In general, adding multiple proxy endpoints to an api proxy is considered an antipattern.
(Though there might be cases where this is justified).
So I would first look at the option of adding a conditional flow
When you have same backend service exposed with different URLs and you have the service name specific to business group, and you need to maintain that name you can use multiple proxy endpoints.
Another case is when your api versioning is happening and you are making both version 1 and version 2 available until users change their api endpoint to v2, you can use two proxy endpoints for each version.
soemting like
/v1/abc
/v2/abc
In general, adding multiple proxy endpoints to an api proxy is considered an antipattern.
(Though there might be cases where this is justified).
So I would first look at the option of adding a conditional flow
When you have same backend service exposed with different URLs and you have the service name specific to business group, and you need to maintain that name you can use multiple proxy endpoints.
Another case is when your api versioning is happening and you are making both version 1 and version 2 available until users change their api endpoint to v2, you can use two proxy endpoints for each version.
soemting like
/v1/abc
/v2/abc