Ocelot NuGet Package

Ocelot is an API Gateway.

The project is aimed at people using .NET running a micro services / service orientated architecture that need a unified point of entry into their system. In particular I want easy integration with IdentityServer reference and bearer tokens. reference tokens. Ocelot is a bunch of middlewares in a specific order.

Ocelot manipulates the HttpRequest object into a state specified by its configuration until it reaches a request builder middleware where it creates a HttpRequestMessage object which is used to make a request to a downstream service. The middleware that makes the request is the last thing in the Ocelot pipeline. It does not call the next middleware. The response from the downstream service is stored in a per request scoped repository and retrived as the requests goes back up the Ocelot pipeline.

There is a piece of middleware that maps the HttpResponseMessage onto the HttpResponse object and that is returned to the client. That is basically it with a bunch of other features.




Got any Ocelot Question?





Info

Version: 23.2.2
Author(s): Tom Pallister
Last Update: Friday, April 5, 2024
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/ThreeMammals/Ocelot
NuGet Url: https://www.nuget.org/packages/Ocelot


Install
Install-Package Ocelot
dotnet add package Ocelot
paket add Ocelot
Ocelot Download (Unzip the "nupkg" after downloading)



Tags



STATS

must-have-score

6.5

avg-downloads-per-day

3246

days-since-last-release

20