1. GraphOS for production supergraphs
7m

Overview

Welcome to the third and final course of the Voyage series!

So far, we've used to modularize the for both a new green project and an existing monolithic application. In both cases, we worked on the schemas for the apps' graphs locally, on our personal computer. But what happens when it's time to deploy an app to production?

In this course, we'll dive deeper into Apollo GraphOS—the complete cloud platform for building, managing, and scaling your in production. We'll learn how helps us publish schemas, deliver changes safely, and gain insights into how our supergraph is being used.

In this lesson, we will:

  • Learn what is and how it supports production s
  • Understand how to publish to using the schema registry
  • Explore how handles through and
  • Discover how provides insights and observability into your

Prerequisites

You'll need to be familiar with the basic concepts of federation and , such as:

  • What a does in a federated architecture and how it works with s
  • How to use to publish to the schema registry
  • How to run the

We cover these concepts in Voyage I.

You will also need to be comfortable with:

  • Running commands in the terminal, such as navigating between directories
  • Basic Git concepts, such as branches, pull requests, and merging

You'll be learning how to integrate certain concepts into a development workflow, but prior knowledge of continuous integration and continuous delivery (CI/CD) principles is not required. For a quick introduction, you can read GitHub's overview of CI/CD.

Note: This series is primarily intended for backend developers. If you're a frontend developer who doesn't work on the backend, the good news is that your workflow stays the same, whether you're dealing with a federated or a non-federated . You'll still send all your to a single endpoint, and the backend team will handle the rest!

How to follow along

This course is a bit different from the previous courses you've done so far. To demonstrate how the concepts work in a real-world context, this course will use the Airlock app (from Voyage II) to show you how to use in production.

However, Airlock consists of multiple services, and deploying them individually requires quite a bit of setup work. And the focus of this course is and in production, not deploying things!

Note: You can find instructions in the Apollo docs about how to deploy a graph.

As a result, in this course, you won't be following along by performing the exact steps in your own starter project. Instead, you'll read along to get a general sense of the concepts and how you can apply them to your own CI/CD pipeline. At the end of each lesson, there will be a Practice section with assessment questions, so that you can check your understanding of the key ideas.

What is Apollo GraphOS?

Apollo GraphOS is a complete cloud platform for building, managing, and scaling your API. provides a set of tools and services so that developers can focus on building better apps, faster.

When working with a in production, gives you:

  • Schema Registry: A version control system for your schema that tracks changes over time
  • Safe Schema Delivery: Tools like and to help you ship changes confidently
  • Observability & Insights: and analytics to understand how your is being used
  • GraphOS Studio: A web interface where you can interact with your , view schemas, and monitor performance
  • Rover CLI: A command-line tool for publishing schemas, running checks, and interacting with

Let's explore how these pieces work together to help you manage your in production.

Airlock in production

Let's revisit Airlock, our interplanetary travel app where space adventurers can find new intergalactic places to visit!

GIF showing the Airlock app features. Searching for places to book, booking a place

Airlock started out with a monolithic architecture that we iteratively split into and converted to a fully federated architecture. For the purposes of the Voyage II course, all of that work was done locally, with each and the hosted on local ports.

Since then, the team has deployed each service, , and the , so that they're available outside of their local machines. Airlock is officially in production!

A diagram of Airlock's architecture. The router is connected to five subgraphs: accounts, listings, bookings, reviews and payments, which are each connected to their own services.

You should already be familiar with these and services from Voyage II.

The deployed version of Airlock uses with . This means that each is published to the Apollo schema registry, which then handles for us. The polls to retrieve the latest version of the for it to use.

Publishing to GraphOS

When you're ready to publish a to , you use the Rover CLI with the rover subgraph publish command. Recall from Voyage I that this command pushes your to the schema registry.

rover subgraph publish <GRAPH_REF> \
--name <SUBGRAPH_NAME> \
--schema <SCHEMA_FILE_PATH> \
--routing-url <ROUTING_URL>

The schema registry is a version control system for your schema. It stores your schema's change history, tracking the types and that were added, modified, and removed. Similar to how you commit and push changes to your codebase in Git, you should push every new version of your to the registry.

Schema delivery: The launch process

When you publish a to the registry, you trigger a launch in . A represents the complete process of making schema updates to a graph.

Here's what happens during a :

  1. Composition: The schema registry attempts to combine all of the schemas from its registered into a single supergraph schema. This process is called composition.

  2. Validation: If fails, you'll see an error in Studio, and the process stops there. You can use the error messages to fix the issue in your , and then try publishing again.

  3. Uplink: If succeeds, the schema registry produces a and automatically sends it to Apollo Uplink. is a server that stores the latest for each graph.

  4. Router update: The automatically polls periodically to see if there's a new version of the . When it detects a new version, the router automatically updates to use it—with no need to restart the server, and no downtime!

Journey of a supergraph. See below for a detailed image description.

With this setup, we have our Airlock available in . We can see our and all the involved in the screenshot below:

https://studio.apollographql.com

Screenshot of Studio showing the Airlock supergraph schema reference

GraphOS Studio: Your command center

GraphOS Studio is the web interface where you interact with your . It provides access to many powerful features:

  • Schema Reference: Browse and explore your composed
  • Launches: View the history of schema changes and es
  • Insights: Monitor , usage, and performance
  • Explorer: Test queries against your
  • Schema Checks: Run checks to validate schema changes before publishing

Studio is where you'll spend much of your time when working with in production. It's your command center for understanding and managing your .

Insights and observability

provides powerful observability tools to track the health and performance of your . These tools help you understand:

  • Operation metrics: Which are being used most frequently, their performance, and error rates
  • Field usage: Which in your schema are actually being queried by clients
  • Client awareness: Which clients are using your and how
  • Performance traces: Detailed timing information for and s

You can find these under the Insights page in Studio. These insights help you make informed decisions about your schema, such as:

  • Identifying which deprecated can be safely removed
  • Understanding which need performance optimization
  • Tracking how schema changes affect client usage

We'll explore these insights in more detail later in this course.

GraphOS in your development workflow

When working with in production, you'll typically integrate it into your development workflow. The Airlock teams use a workflow that includes multiple environments and CI/CD processes.

Coordinating schema and code changes

When you make changes to your , you need to coordinate both schema changes (published to ) and code changes (deployed to your hosting platform). Here's a typical workflow:

  1. Make changes locally: Update your and code in your local development environment
  2. Deploy code: Deploy your code changes to your hosting platform (e.g., Heroku, AWS, Google Cloud)
  3. Publish schema: Publish your schema changes to using rover subgraph publish

Note: The order matters! You should deploy your code changes first, then publish your schema. This ensures that when the starts using the new schema, the is already running with the code that supports it.

GraphOS tools in your workflow

provides several tools that integrate into your development workflow:

  • Rover CLI: Use in CI/CD pipelines to publish schemas and run automatically
  • Schema Checks: Validate schema changes before they're published to catch breaking changes early
  • Graph Variants: Create separate (like staging and production) to test changes before deploying to production

We'll explore these features in more detail throughout this course. For now, it's important to understand that is designed to fit into your existing development and deployment processes, whether you're using GitHub Actions, GitLab CI, Jenkins, or any other CI/CD platform.

Practice

GraphOS components
Apollo 
 
 is a complete cloud platform for building, managing, and scaling your supergraph. The 
 
 is a version control system for your schema that tracks changes over time. When you publish a schema, it triggers a 
 
, which includes 
 
 to combine subgraph schemas into a 
 
.

Drag items from this box to the blanks above

  • Git repository

  • composition

  • code editor

  • GraphOS

  • schema registry

  • database

  • supergraph schema

  • API gateway

  • version control

  • launch

  • deployment platform

Which of the following are features provided by GraphOS?
What happens during a launch in GraphOS?

Key takeaways

  • Apollo GraphOS is a complete cloud platform for building, managing, and scaling your in production.

  • The schema registry is a version control system for your schema that tracks all changes over time.

  • Publishing a triggers a launch, which includes composition to create a that's made available to the via Apollo Uplink.

  • GraphOS Studio provides a web interface for exploring your schema, viewing , monitoring insights, and managing your .

  • provides observability tools to track , usage, and performance, helping you make informed decisions about your schema.

Up next

In this course, we'll dive deeper into features that help you work with in production. We'll learn about graph for managing different environments, for validating changes, and observability tools for monitoring your graph's health and usage.

We'll start with , in the next lesson.

Next

Share your questions and comments about this lesson

This course is currently in

beta
. Your feedback helps us improve! If you're stuck or confused, let us know and we'll help you out. All comments are public and must follow the Apollo Code of Conduct. Note that comments that have been resolved or addressed may be removed.

You'll need a GitHub account to post below. Don't have one? Post in our Odyssey forum instead.