Ocelot 24.0.1

Ocelot Logo

Release Status Development Status ReadTheDocs Coveralls License: MIT NuGet Downloads

About

Ocelot is a .NET API gateway. This project is aimed at people using .NET running a microservices (service-oriented) architecture that needs a unified point of entry into their system. However, it will work with anything that speaks HTTP(S) and runs on any platform that ASP.NET Core supports.

Ocelot consists of a series of ASP.NET Core middlewares arranged in a specific order.

Ocelot custom middlewares manipulate 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 retrieved as the request 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!

Features

A concise list of Ocelot's capabilities, for further details refer to Documentation

Install

Ocelot is designed to work with ASP.NET Core and it targets net8.0 LTS and net9.0 STS target framework monikers (TFMs). 4

Install Ocelot package and its dependencies using NuGet package manager:

Install-Package Ocelot

Or via the .NET CLI:

dotnet add package Ocelot

All versions are available on NuGet.

Documentation

  • RST-sources: This includes the source code for the documentation (in reStructuredText format, .rst files), which is up to date for the current development. And the rendered HTML documentation is available here.
  • Read the Docs: This official website, in HTML format, contains a wealth of information and will be helpful if you want to understand the features that Ocelot currently offers. The rendered HTML documentation, which is currently in development, is available here.
  • Ask Ocelot Guru: It is an AI focused on Ocelot, designed to answer your questions. 5

Coming up

You can see what we are working on in the backlog.

Contributing

We love to receive contributions from the community, so please keep them coming. Pull requests, issues, and commentary welcome! octocat

Please complete the relevant template for issues and pull requests. Sometimes it's worth getting in touch with us to discuss changes before doing any work in case this is something we are already doing or it might not make sense. We can also give advice on the easiest way to do things octocat

Finally, we mark all existing issues as label: help wanted label: small effort label: medium effort label: large effort. 6 If you want to contribute for the first time, we suggest looking at a label: help wanted label: small effort label: good first issue octocat

Notes


  1. Ocelot does not directly support GraphQL. Developers can easily integrate the GraphQL for .NET library.

  2. Ocelot supports the following service discovery providers: (1) Consul through the Ocelot.Provider.Consul extension package, (2) Kubernetes via the Ocelot.Provider.Kubernetes extension package, and (3) Netflix Eureka, which utilizes the Steeltoe.Discovery.Eureka package referenced within the Ocelot.Provider.Eureka extension package. Additionally, Ocelot supports (4) Azure Service Fabric for service discovery, along with special modes such as Dynamic Routing and Custom Providers.

  3. Retry policies only via Polly library referenced within the Ocelot.Provider.Polly extension package.

  4. Starting with version 21 and higher, the solution's code base supports Multitargeting as SDK-style projects. It should be easier for teams to migrate to the currently supported .NET 8 and 9 frameworks. Also, new features will be available for all .NET SDKs that we support via multitargeting. Find out more here: Target frameworks in SDK-style projects

  5. Ocelot Guru is an unofficial tool to get answers regarding Ocelot: please consider it an advanced search tool. Thus, we have an official Questions & Answers category in the Discussions space.

  6. See all labels for the repository, which are useful for searching and filtering.

Showing the top 20 packages that depend on Ocelot.

Packages Downloads
Ocelot.Provider.Consul
Provides Ocelot extensions to use Consul
41
Ocelot.Provider.Consul
Provides Ocelot extensions to use Consul
42
Ocelot.Provider.Consul
Provides Ocelot extensions to use Consul
43
Ocelot.Provider.Consul
Provides Ocelot extensions to use Consul
44
Ocelot.Provider.Consul
Provides Ocelot extensions to use Consul
46
Ocelot.Provider.Consul
Provides Ocelot extensions to use Consul
47
Ocelot.Provider.Consul
Provides Ocelot extensions to use Consul
51
Ocelot.Provider.Polly
Provides Ocelot extensions to use Polly.NET
41
Ocelot.Provider.Polly
Provides Ocelot extensions to use Polly.NET
42
Ocelot.Provider.Polly
Provides Ocelot extensions to use Polly.NET
44

Upgrade to .NET 9 with supported TFMs (net8.0;net9.0)

Version Downloads Last updated
24.0.1 30 07/18/2025
24.0.0 31 04/25/2025
24.0.0-beta.3 18 09/16/2025
24.0.0-beta.2 20 10/16/2025
24.0.0-beta.1 25 06/19/2025
24.0.0-alpha.30 19 07/24/2025
23.5.0-beta.5 31 04/11/2025
23.5.0-beta.4 28 04/11/2025
23.5.0-beta.3 27 04/11/2025
23.5.0-beta.2 26 04/11/2025
23.5.0-beta.1 25 04/11/2025
23.4.3 33 01/29/2025
23.4.2 34 12/02/2024
23.4.1 34 12/12/2024
23.4.0 37 11/29/2024
23.3.6 40 11/17/2024
23.3.4 38 11/14/2024
23.3.3 36 12/12/2024
23.3.0 42 11/14/2024
23.2.2 36 05/26/2024
23.2.0 39 05/04/2024
23.1.0 42 05/06/2024
23.0.0 37 05/01/2024
22.0.1 38 12/02/2024
22.0.0 31 11/29/2024
21.0.0 39 05/05/2024
20.0.0 46 05/08/2024
19.0.4 38 11/24/2024
19.0.3 31 12/09/2024
19.0.2 44 05/05/2024
19.0.1 34 12/06/2024
19.0.0 35 12/09/2024
18.0.0 40 04/30/2024
17.0.1 30 12/06/2024
17.0.0 43 09/19/2022
16.0.2 40 05/10/2024
16.0.1 36 12/02/2024
16.0.0 33 12/02/2024
15.0.7 35 05/07/2024
15.0.1 39 05/04/2024
15.0.0 36 11/25/2024
14.1.3 42 05/01/2024
14.1.2 37 12/04/2024
14.1.1 40 05/08/2024
14.1.0 32 05/18/2025
14.0.12 34 05/30/2024
14.0.11 31 04/13/2025
14.0.9 34 03/12/2025
14.0.8 42 05/07/2024
14.0.5 43 05/08/2024
14.0.4 18 08/28/2025
14.0.2 38 05/01/2024
14.0.0 39 12/11/2024
13.9.0-alpha0115 31 12/03/2024
13.8.5 29 03/14/2025
13.8.2 41 05/03/2024
13.8.1 24 08/18/2025
13.8.0-alpha0018 30 05/05/2024
13.8.0-alpha0008 39 05/04/2024
13.8.0-alpha0006 40 05/08/2024
13.8.0-alpha0002 34 04/10/2025
13.7.0-alpha0011 36 05/04/2024
13.7.0-alpha0009 34 05/04/2024
13.7.0-alpha0008 40 05/02/2024
13.7.0-alpha0006 45 05/06/2024
13.7.0-alpha0003 20 08/28/2025
13.7.0-alpha0002 22 09/03/2025
13.6.0-alpha0014 46 05/02/2024
13.6.0-alpha0010 41 05/05/2024
13.6.0-alpha0008 39 05/15/2024
13.6.0-alpha0006 46 04/09/2024
13.6.0-alpha0001 23 08/29/2025
13.5.2 43 05/02/2024
13.5.0-alpha0056 37 05/01/2024
13.5.0-alpha0053 27 05/11/2025
13.4.1 20 08/30/2025
13.2.0-alpha0034 28 12/10/2024
13.2.0-alpha0033 34 05/03/2024
13.2.0-alpha0030 37 05/07/2024
13.2.0-alpha0026 38 05/04/2024
13.2.0-alpha0021 30 01/06/2025
13.2.0-alpha0020 38 05/05/2024
13.2.0-alpha0009 35 12/02/2024
13.2.0-alpha0003 38 11/29/2024
13.2.0-alpha0001 40 05/06/2024
13.1.0-alpha0003 27 04/08/2025
12.1.0-unstable0003 32 05/09/2025
12.1.0-unstable0001 33 12/08/2024
12.1.0-alpha0027 31 05/05/2024
12.1.0-alpha0024 38 05/05/2024
12.1.0-alpha0020 21 08/28/2025
12.1.0-alpha0013 27 05/21/2025
12.0.0-unstable0014 33 05/05/2024
11.1.0-unstable0007 40 05/06/2024
11.1.0-unstable0006 35 12/26/2024
11.1.0-unstable0001 29 03/13/2025
11.0.3 40 05/26/2024
11.0.2 40 11/03/2024
11.0.1 41 05/26/2024
11.0.0 30 12/04/2024
10.1.0-unstable0017 35 11/22/2024
10.1.0-unstable0016 29 11/05/2024
10.1.0-unstable0015 19 08/28/2025
10.1.0-unstable0013 33 12/03/2024
10.1.0-unstable0011 19 08/10/2025
10.1.0-unstable0009 25 04/18/2025
10.1.0-unstable0008 17 08/26/2025
10.1.0-unstable0007 38 05/03/2024
10.1.0-unstable0006 24 04/16/2025
10.1.0-unstable0005 43 05/29/2024
10.1.0-unstable0003 40 05/02/2024
10.1.0-unstable0001 36 02/27/2025
10.0.3 35 05/02/2024
10.0.2 39 05/05/2024
10.0.1 34 04/09/2025
10.0.0 37 05/24/2024
9.1.0-unstable0001 26 06/02/2025
9.0.0 33 01/06/2025
9.0.0-unstable0041 36 05/06/2024
8.1.0-unstable0031 35 05/01/2024
8.1.0-unstable0030 40 05/07/2024
8.1.0-unstable0029 37 05/01/2024
8.1.0-unstable0028 39 05/01/2024
8.1.0-unstable0027 42 05/06/2024
8.1.0-unstable0023 32 05/08/2024
8.1.0-unstable0022 42 04/09/2024
8.1.0-unstable0021 33 05/01/2024
8.1.0-unstable0020 39 05/10/2024
8.1.0-unstable0014 35 05/01/2024
8.1.0-unstable0010 37 11/12/2024
8.1.0-unstable0009 37 05/04/2024
8.1.0-unstable0005 38 05/14/2024
8.1.0-unstable0002 25 05/07/2025
8.1.0-unstable0001 41 05/02/2024
8.0.8 35 02/15/2025
8.0.6 39 01/06/2025
8.0.4 37 05/25/2024
8.0.3 40 03/01/2025
8.0.2 46 05/06/2024
8.0.0 36 05/04/2024
8.0.0-unstable0044 35 12/06/2024
7.1.0-unstable0042 37 11/30/2024
7.1.0-unstable0041 40 05/15/2024
7.1.0-unstable0039 18 08/23/2025
7.1.0-unstable0037 40 05/01/2024
7.1.0-unstable0036 28 03/12/2025
7.1.0-unstable0035 39 05/01/2024
7.1.0-unstable0029 35 05/03/2024
7.1.0-unstable0026 40 04/10/2024
7.1.0-unstable0025 38 05/07/2024
7.1.0-unstable0023 39 05/06/2024
7.1.0-unstable0020 41 05/05/2024
7.1.0-unstable0019 39 05/02/2024
7.1.0-unstable0017 29 05/26/2024
7.1.0-unstable0012 38 05/06/2024
7.1.0-unstable0009 33 05/04/2024
7.1.0-unstable0007 34 03/13/2025
7.1.0-unstable0006 29 05/03/2025
7.1.0-unstable0005 31 05/23/2024
7.0.9 28 07/15/2025
7.0.8 37 01/16/2025
7.0.7 34 02/02/2025
7.0.6 34 05/10/2025
7.0.4 39 05/07/2024
7.0.0 36 01/15/2025
6.0.0 35 02/26/2025
6.0.0-unstable0064 40 05/06/2024
5.6.0-unstable0032 37 12/09/2024
5.6.0-unstable0031 28 12/04/2024
5.6.0-unstable0030 35 04/24/2025
5.6.0-unstable0029 36 05/06/2024
5.6.0-unstable0027 38 04/24/2024
5.6.0-unstable0024 37 05/04/2024
5.6.0-unstable0020 30 02/20/2025
5.6.0-unstable0006 38 05/07/2024
5.6.0-unstable0005 38 01/01/2025
5.6.0-unstable0004 21 08/22/2025
5.6.0-unstable0001 33 02/21/2025
5.5.7 33 03/18/2025
5.5.3 34 01/24/2025
5.5.2 37 05/07/2024
5.5.1 36 04/09/2024
5.5.0 31 05/27/2025
5.3.1 17 10/24/2025
5.3.0 29 05/12/2025
5.3.0-unstable0004 35 12/06/2024
5.3.0-unstable0002 34 05/06/2024
5.2.0 40 05/01/2024
5.2.0-unstable0001 33 05/08/2024
5.1.0 36 05/10/2024
5.1.0-unstable0008 36 05/01/2024
5.1.0-unstable0006 33 05/02/2024
5.1.0-unstable0005 40 05/25/2024
5.0.1 38 05/06/2024
5.0.0 38 12/03/2024
4.1.0-unstable0001 34 05/07/2024
4.0.0 38 01/03/2025
3.2.0-unstable0044 35 05/01/2024
3.2.0-unstable0040 21 07/28/2025
3.2.0-unstable0033 35 05/04/2024
3.2.0-unstable0016 37 01/06/2025
3.2.0-unstable0015 36 01/26/2025
3.2.0-unstable0005 31 05/07/2024
3.1.6 33 04/04/2025
3.1.5 43 05/07/2024
3.1.0-unstable0010 41 05/02/2024
3.1.0-unstable0005 35 05/01/2024
3.0.3 45 05/01/2024
3.0.2 44 04/24/2024
3.0.0 42 05/06/2024
3.0.0-unstable0059 33 12/27/2024
2.1.0-unstable0057 21 08/12/2025
2.1.0-unstable0055 31 12/28/2024
2.1.0-unstable0051 37 05/07/2024
2.1.0-unstable0049 34 05/06/2024
2.1.0-unstable0048 37 03/15/2025
2.1.0-unstable0043 34 05/04/2024
2.1.0-unstable0037 38 05/01/2024
2.1.0-unstable0036 29 02/25/2025
2.0.11 42 05/02/2024
2.0.10 39 05/03/2024
2.0.8 36 12/31/2024
2.0.6 43 05/01/2024
2.0.5 21 08/26/2025
2.0.4 40 04/24/2024
2.0.3 46 05/04/2024
2.0.2 45 05/02/2024
2.0.1 40 05/01/2024
2.0.0 38 11/28/2024
1.5.0-unstable0158 34 05/06/2024
1.5.0-unstable0154 37 05/01/2024
1.5.0-unstable0149 30 02/24/2025
1.5.0-unstable0147 23 03/21/2025
1.5.0-unstable0131 32 10/31/2024
1.5.0-unstable0115 36 05/02/2024
1.5.0-unstable0107 36 12/28/2024
1.5.0-unstable0103 19 08/13/2025
1.5.0-unstable0071 35 05/08/2024
1.5.0-unstable0053 31 05/06/2024
1.5.0-unstable0043 32 04/30/2024
1.5.0-unstable0027 29 04/09/2025
1.4.20 32 05/10/2025
1.4.11 32 05/02/2024
1.4.10 38 05/02/2024
1.4.9 38 05/06/2024
1.4.8 34 01/17/2025
1.4.7 43 05/05/2024
1.4.6 35 01/18/2025
1.4.5 36 12/03/2024
1.4.4 30 04/07/2025
1.4.1 36 05/07/2024
1.4.0-unstable0105 28 05/08/2025
1.4.0-unstable0089 38 05/06/2024
1.4.0-unstable0058 37 04/30/2024
1.4.0-unstable0055 36 05/07/2024
1.4.0-unstable0026 37 05/04/2024
1.4.0-set-up-admin-api0001 35 05/21/2024
1.4.0-qos-documentatio0001 20 06/04/2025
1.4.0-pullrequest0047 13 09/10/2025
1.4.0-beta0001 23 08/08/2025
1.3.3-pullrequest0054 37 05/04/2024
1.3.2 38 05/06/2024
1.3.1 41 05/02/2024
1.3.0-unstable0002 40 05/05/2024
1.2.0-unstable0033 32 05/06/2024
1.1.0 39 11/14/2024
1.0.123 36 05/06/2024
1.0.122 33 02/21/2025
1.0.117 35 11/21/2024
1.0.114-rc1 40 05/04/2024
1.0.112-rc1 42 05/01/2024
1.0.110-rc1 33 02/16/2025
1.0.108-rc1 33 01/01/2025
1.0.107-rc1 39 05/06/2024
1.0.106-rc1 26 04/29/2025
1.0.102-rc1 37 12/28/2024
1.0.101-rc1 43 05/05/2024
1.0.100-rc1 39 05/05/2024
1.0.98-rc1 39 12/11/2024
1.0.97-rc1 36 05/02/2024
1.0.95-rc1 42 12/18/2024
1.0.90-rc1 38 05/07/2024
1.0.87-rc1 38 11/28/2024
1.0.84-rc1 42 05/04/2024
1.0.83-rc1 43 05/06/2024
1.0.81-rc1 33 05/05/2024
1.0.79-rc1 30 04/09/2025
1.0.78-rc1 40 05/01/2024
1.0.68-rc1 39 05/06/2024
1.0.66-rc2 37 05/06/2024
1.0.66-rc1 42 05/06/2024
0.0.13-rc1 38 05/04/2024
0.0.12-rc1 33 12/01/2024
0.0.0-dev 31 04/12/2025