This video will help in understanding. How to use Ocelot API gateway along with consul for service discovery in Dotnet core. So the client needs not to do any changes If the underline API address is changed.
Code:
https://bit.ly/3uxEbLb
https://bit.ly/2Q3lrEx