Introducing version 1.0 of the apollo-engine npm package and Docker container

Apollo Engine is a GraphQL gateway that provides caching, performance monitoring, and other features specifically for GraphQL. It’s built from the ground up to empower product developers to feel confident about using GraphQL on top of existing infrastructure.

Today, we’re launching the 1.0 version of the apollo-engine npm package and our standalone Docker container. These new releases make it dramatically easier to add Engine to your server.

In the past, you had to add code in several places and attach middleware to your app in a specific order, but now it’s much clearer where everything needs to go for a production-ready setup. …

We’re excited to announce new Galaxy features and docs which provide more flexibility for our advanced users.

Image for post

Run anything in your container with custom base images

Galaxy provides a zero-configuration way to deploy your Meteor apps to the cloud. But sometimes you need a little configuration. For example, you may want to call native libraries that aren’t distributed via npm, or include some large files in your container that you don’t want to upload every time you run meteor deploy.

Galaxy containers are built using the standard Docker container management platform. Every container is built by adding your uploaded app code to a “base image”. Up until now, every Galaxy app shared the same base image: a Ubuntu Linux 14.04 environment with a handful of extra packages requested by customers. Most of these popular packages were native dependencies required by npm modules, primarily for image rendering. Because every app shared the same base image, we couldn’t easily upgrade these packages without possibly breaking other customers, and so these packages have not been updated since 2016. …

Setting the poll interval based on query results

I recently added a feature to the admin interface on Meteor Galaxy, Meteor Development Group’s hosting platform for Meteor apps, that shows the state of our internal database migrations. I’m using Apollo Client with react-apollo to build Galaxy’s UI, and I wanted the control panel to automatically update to show the state of any migrations. To do that, I had to decide how often the GraphQL query would poll our server.

Image for post
Photo credit to themtube2 on Flickr.

Now, we’re not usually running any migrations, so a nice, slow polling interval like 30 seconds seemed reasonable. …


David Glasser

@apollographql, @meteorjs, etc.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store