MicroService.Example is a project developed to learn and apply fundamental microservice architecture principles. This project includes API Gateway (Ocelot), JWT authentication, Ocelot caching, load balancing, rate limiting, and basic microservice communication.
- API Gateway: Routing and API Gateway functionality using Ocelot.
- Authentication and Authorization: Secure access with JWT-based authentication.
- Ocelot Caching: Performance improvement with caching provided by Ocelot.
- Load Balancing: Distributing requests among multiple microservices with Ocelot's support.
- Rate Limiting: Controlling and limiting requests with rate limiting provided by Ocelot.
- Logging: Centralized logging using console logging.
- Microservice Communication: Communication and data exchange between services.
- ASP.NET Core
- Ocelot API Gateway
- JWT Authentication
- Ocelot Caching
- Ocelot Load Balancing
- Ocelot Rate Limiting
- Console Logging
- .NET Core 8
- .NET 8 SDK
- Clone the repository:
git clone https://github.com/anilklc/MicroService.Example.git
- Navigate to the project directory:
cd MicroService.Example
- Update the API Gateway and microservices configurations in the
appsettings.json
file. - Check and modify the Ocelot caching, load balancing, and rate limiting configurations in the
ocelot.json
file as needed. - Run the application:
dotnet run
This project is licensed under the MIT License.