I am new to microservices architecture and already implemented micro services and API Gateway with single ocelot.json file as shown in below image.
You can see there is one ocelot.json file in Gateway.WebApi project which contains routes.
Which one is better option to handle this?
- single
ocelot.jsonfor all microservices - single
ocelot.jsonfor each microservice
Can we do something like we have single ocelot.json for each micro service?


ocelot.json? And what's your problem? The question is full of marketing terms (microservices architecture, API Gateway, all microservices`) that are information-free. Every microservice is a service, and since you used the ASP.NET Tag, an HTTP endpoint. Perhaps you created 40 separate projects for 40 endpoints? 1 project with 40 controllers? 5 projects with 4 minimal APIs each?appsettings.jsonfiles are already configured.