mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-19 19:08:16 +08:00
hacked together load balancing reroutes in fileconfig (#211)
* hacked together load balancing reroutes in fileconfig * some renaming and refactoring * more renames * hacked away the old config json * test for issue 213 * renamed key * dont share ports * oops * updated docs * mvoed docs around * port being used
This commit is contained in:
@ -1,38 +1,38 @@
|
||||
Big Picture
|
||||
===========
|
||||
|
||||
Ocleot 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.
|
||||
|
||||
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.
|
||||
|
||||
The following are configuration that you use when deploying Ocelot.
|
||||
|
||||
Basic Implementation
|
||||
^^^^^^^^^^^^^^^^^^^^
|
||||
.. image:: ../images/OcelotBasic.jpg
|
||||
|
||||
With IdentityServer
|
||||
^^^^^^^^^^^^^^^^^^^
|
||||
.. image:: ../images/OcelotIndentityServer.jpg
|
||||
|
||||
Multiple Instances
|
||||
^^^^^^^^^^^^^^^^^^
|
||||
.. image:: ../images/OcelotMultipleInstances.jpg
|
||||
|
||||
With Consul
|
||||
^^^^^^^^^^^
|
||||
.. image:: ../images/OcelotMultipleInstancesConsul.jpg
|
||||
Big Picture
|
||||
===========
|
||||
|
||||
Ocleot 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.
|
||||
|
||||
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.
|
||||
|
||||
The following are configuration that you use when deploying Ocelot.
|
||||
|
||||
Basic Implementation
|
||||
^^^^^^^^^^^^^^^^^^^^
|
||||
.. image:: ../images/OcelotBasic.jpg
|
||||
|
||||
With IdentityServer
|
||||
^^^^^^^^^^^^^^^^^^^
|
||||
.. image:: ../images/OcelotIndentityServer.jpg
|
||||
|
||||
Multiple Instances
|
||||
^^^^^^^^^^^^^^^^^^
|
||||
.. image:: ../images/OcelotMultipleInstances.jpg
|
||||
|
||||
With Consul
|
||||
^^^^^^^^^^^
|
||||
.. image:: ../images/OcelotMultipleInstancesConsul.jpg
|
||||
|
Reference in New Issue
Block a user