Let's say we have a taxing application consisting of loosely coupled microservices:

An example is taken from https://www.nginx.com/blog/introduction-to-microservices/
Each service has its own a priori, and all services are combined into one Api-gateway. The client does not talk with one service, but with a gateway. The gateway requests information from several services and combines them with a single response. For the client, it is like talking to a monolithic application.
I am trying to understand: where could we include falcor in this application?
One model everywhere from http://netflix.imtqy.com/falcor/
Falcor allows you to represent all your remote data sources as a single domain model through a virtual JSON graph. You also encode where the data is located, whether in memory on the client or over the network on the server.
In this taxi application, each microservice is a single domain model. Can you come up with any benefit that we could succeed by packaging every microservice with falcor? I cant.
However, I find it very convenient to include falcor in the api gateway, because we can abstract the various domain models created by microservices into one or at least several models.
What is your opinion?
source share