Skip to Content

Apollo Federation

Published: 2022-05-24

Federation is a concept, built on top of GraphQL, to help companies implement GraphQL at scale. It brings a lot of useful features to implement Graphs across multiple teams in a "federated" way, hence the name. It is invented and specified by Apollo.

Intro and Guidance on Federation#

Are you not sure if Federation is for you? Do you want to get insights into how you can adopt Federation? You'd like to learn more about how WunderGraph supports Federation, especially how Subscriptions work with a federated graph?

Have a look at this in-depth blog post, it should address a lot of your questions.

WunderGraph as a Federation Gateway replacement#

As you've read in the previous section, thanks to our Ahead-of-Time Compiler, WunderGraph is extremely fast at executing GraphQL Operations.

While we allow simple DataSources like REST & standard GraphQL, our compiler and runtime is also capable of resolving federated GraphQL requests.

You can use WunderGraph as a replacement for any other Federation Gateway, but that's not all.

Federation with Subscriptions#

While other implementations only allow you to execute Queries and Mutations, WunderGraph also implements Subscriptions. Here's a Demo if you're interested in trying it out.

Federation and other APIs#

If you're a company with only federated GraphQL APIs, you might be super lucky. However, in reality you'll always have legacy systems or 3rd party APIs which are not federated GraphQL APIs. In this case, you'd always have to somehow wrap these APIs or stitch them into your Graphs.

With WunderGraph, it's possible to federate and stitch APIs of any couleur together. You can easily combine some federated GraphQL services with REST APIs as if they all belonged together.

WunderGraph vs. Apollo?#

As we've stated above, WunderGraph is a perfect replacement for other Federation Gateways, including the one provided by Apollo. We're giving you a lot of useful features on top of just being a federation gateway.

At the same time, we're not trying to compete with Apollo. Their focus is on helping you implement (federated) Graphs.

WunderGraph is concerned about integrating your Graphs with other APIs, exposing them securely and giving you the ultimate developer experience when it comes to "getting data into applications".

We encourage you to use the right tool for the right job.



Subscribe to our newsletter!

Stay informed when great things happen! Get the latest news about APIs, GraphQL and more straight into your mailbox.

© 2022 WunderGraph