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
61
Ocelot.Provider.Consul
Provides Ocelot extensions to use Consul
62
Ocelot.Provider.Consul
Provides Ocelot extensions to use Consul
63
Ocelot.Provider.Consul
Provides Ocelot extensions to use Consul
65
Ocelot.Provider.Consul
Provides Ocelot extensions to use Consul
67
Ocelot.Provider.Consul
Provides Ocelot extensions to use Consul
68
Ocelot.Provider.Consul
Provides Ocelot extensions to use Consul
72
Ocelot.Provider.Polly
Provides Ocelot extensions to use Polly.NET
61
Ocelot.Provider.Polly
Provides Ocelot extensions to use Polly.NET
62
Ocelot.Provider.Polly
Provides Ocelot extensions to use Polly.NET
63

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

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