Amita Gupta

Amita Gupta

  • 2k
  • 249
  • 8.2k

Service discovery in web api

Sep 6 2023 8:35 AM

I am working on microservice architecture in .net core web api  and using api gateway. so I need to use ocelot.json file for api path. if i  need 500 api then i need to define in ocelot.json file and file will be very lengthy for 500 api so i am searching for alternate solution how can i do it in dynamically like create a function and pass url in that function but can't understand how it will work i am working first time for this arcitecture. someone says you need to use service discovery but i  am not aware of it how can i use  it for ocelot json replacement. can anyone help me for it. thanks in advance.

Answers (3)