Replies: 2 comments 1 reply
-
Hello @paule96 this is a great questions. There are services which expose an OData gateway that can route requests to different backend services and combine the responses, but we don't have an official implementation for such a framework. So everyone does it their own way. However, there have been some explorations that could lead to such a gateway being much easier to build with OData. @corranrogue9 would your explorations on composability of OData services make such a gateway easier to define? |
Beta Was this translation helpful? Give feedback.
-
As @habbes notes, this is definitely possible with OData. I am working on some new interfaces and implementations that should make this kind of work more straightforward, but this is work is a ways off. Beyond simply implementing the functionality, there are some interesting architectural questions which arise.
|
Beta Was this translation helpful? Give feedback.
-
I'm quite long using OData now (around 10 years) and I started lately to research a bit about GraphQl. So far both protocols are very similar from their usecases.
But one thing, what is quite nice in GraphQl is the possibility to build quite easy a gateway to other services with aggregation possibilities between them.
And I was just wondering if their is a way to do a similar thing with OData.
To have something like:
odata/people
odata/city
And a gateway that define something like:
And for the
City
property at the people entity their is some kind of resolver defined who sends a request to the City Service.So you could do something at the gateway like:
/odata/people?$expand=City
What would result into:
Beta Was this translation helpful? Give feedback.
All reactions