Replies: 7 comments
-
@xxsybreedxx yep this would be a good feature! I'm not sure how much effort would be involved but will take a look when I have some free time. Happy to accept a PR if you fancy having a go yourself! |
Beta Was this translation helpful? Give feedback.
-
The solution we have for this is to create a configuration that points to the same server (or maybe another) and create the controllers needed for the aggregation. Inside the controller's actions you can then create several tasks and wait all of them and even create new requests that are dependant of any of the previous requests made. Now for a possible solution @TomPallister |
Beta Was this translation helpful? Give feedback.
-
@arielmoraes that in an interesting idea and would be pretty easy to implement I guess. |
Beta Was this translation helpful? Give feedback.
-
Ideas, ideas, ideas.... Who will be a developer for these nice ideas? 🤣 |
Beta Was this translation helpful? Give feedback.
-
Hi Artyom! |
Beta Was this translation helpful? Give feedback.
-
What are the advantages of delegating tasks to another service layer for processing? I'm struggling to grasp your concept. Could you illustrate your idea by submitting a new pull request, please? |
Beta Was this translation helpful? Give feedback.
-
Are you sure that
So, you proposed something which is not a part of .NET 6+... If you are active contributor, feel free to discuss it here more... 1st, we have to find alternatives in .NET 6+ which we support... |
Beta Was this translation helpful? Give feedback.
-
New Feature
It would be great if Ocelot had an opportunity to aggregate downstream requests asynchronously. Something similar to Rx, or even use Rx for it. It's usefull when you have multiple downstream requests and you want to return the values from downstream requests as you receive them.
For example if there are 3 downstream requests aggregated:
Find()
And as we receive first response from any of downstream endpoints, send it as part of upstream request response... As far as i know this can be implemented via PushStreamContent, correct me if I'm wrong.
In my own opinion, it's a really nice and usefull feature, especially for user experience, when the frontend is trying to get data trough the gateway.
Beta Was this translation helpful? Give feedback.
All reactions