GitHunt
AN

anilsingh581/Microservice.Ocelot.API.Gateway

Microservices With Ocelot API Gateway In ASP.NET Core

Building Microservices using ASP.Net Core

Microservice architecture with Ocelot API Gateway in ASP.Net Core

Topics Covered

  • Microservices Architecture Overview
  • Monolith vs Microservices
  • Configure Microservices with Ocelot API Gateway
  • Run and test individual microservice with swagger.

If you want more about this, Do check out my Article ๐Ÿ‘‡๐Ÿป

Code-Sample

Real-world Enhancements

  • Add Polly for retry, circuit breaker.
  • Use Swagger with API Gateway using tools like SwaggerForOcelot.
  • Integrate logging/tracing (e.g., Serilog + OpenTelemetry).
  • Add Docker/Kubernetes deployment.

Project Structure

Example structure:

/ApiGateway โ†’ Ocelot API Gateway

/CustomerService โ†’ Microservice 1

/ProductService โ†’ Microservice 2

Each service runs independently, communicates via REST (or gRPC/event-based in advanced cases).