Integrate federation in our GraphQL API
I open this ticket to talk about federation and GraphQL.
The diagram explains an hypothetical situation. The questions are:
- Where to send the GraphQL request? I suppose to Server A, but not sure.
- Does the server should use the ActivityPub protocol to fetch external data? I suppose yes, but not sure.
- Does the server have to make a request per external resource asked? I suppose yes again, but I may see important scalability issues with this approach. If we should return external 20 members, we have 21 requests before responding to the request.
I think we cannot use caching most of the time. If user A is asking for members of Collection B again 20 minutes later, many users may join or leave the community B without any notification to Server A.