Skip to content

Is using Delegating Handlers good for Response Normalization with Ocelot? #1774

Closed Answered by raman-m
goliveiracod asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @goliveiracod !
Not much good as you can imagine.
Technically you can use Delegating Handlers feature to transform data with Ocelot app.
You can even use Request Aggregation feature to encapsulate transforming/parsing data logic inside of FakeAggregator.
But doing this will be a bit strange from design/architecture point of view.
In my opinion, Ocelot app should not parse, transform response body at all, because of high load on Ocelot's hosting infrastructure, consuming high machine resources, and having less possibility to process many requests, requests per second ratio will be dramatically downgraded.
So, I recommend to use client apps to parse/transform response data of Ocelot upst…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@goliveiracod
Comment options

@raman-m
Comment options

@RaynaldM
Comment options

@raman-m
Comment options

@goliveiracod
Comment options

Answer selected by raman-m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Initially seen a question could become a new feature or bug or closed ;)
3 participants