Meteor Cloud Is a Full Service Hosting Solution for Meteor Apps

Copied URL with current time.
0:00 / 0:00

In this episode of Running in Production, Filipe Névola goes over building a hosting platform for Meteor apps. It’s hosted on AWS with ECS and has been running in production since 2015.

Filipe talks about building critical services with Go, using Meteor to build front-end web dashboards, the importance of monitoring, using Recurly for subscription payments, multi-region AWS hosting and overall providing a highly available platform for thousands of clients.

Topics Include

  • 1:45 – High level overview of the hosting platform
  • 7:01 – Splitting up compute resources for enterprise clients
  • 8:44 – Motivation for choosing Go for a few of the back-end services
  • 11:24 – Feeding data to the web dashboard with MongoDB, ECS, a load balancer and Go
  • 15:53 – The Go proxy service was built using the standard library (no 3rd party libraries)
  • 17:46 – Differences between the free and paid plans
  • 22:49 – Displaying a custom page if your Meteor app happens to be down
  • 26:28 – Going over a few services, starting with the Docker image builder
  • 31:18 – The Go services are in a mono repo but they can be individually deployed
  • 33:36 – The next service is the scheduler which is custom built
  • 41:49 – How the web dashboard gets updated from events on the back-end
  • 47:08 – The last service we’ll cover is for registering SSL certificates with Let’s Encrypt
  • 50:21 – Monitoring is very important and they’re using Datadog, plus being on-call
  • 54:26 – Postmark and SendGrid are both used to send emails
  • 56:23 – Payments are handled through Recurly
  • 1:00:28 – Loggly is used for logging and a bit of analytics
  • 1:04:08 – Handling a lot of incoming notifications and making sense out of alerts
  • 1:08:05 – Choosing AWS for hosting everything and using ECS over EKS
  • 1:11:20 – It’s hosted across multiple AWS regions (Virginia, Ireland and Sydney)
  • 1:15:55 – The open source side of Meteor is very very important
  • 1:17:49 – How Terraform is being used to manage their infrastructure
  • 1:20:31 – ScaleGrid is used to host their MongoDB instances
  • 1:22:29 – How clients store their secrets
  • 1:24:15 – How deployments are handled from development to production
  • 1:32:34 – All data is backed up on a regular basis with lots of redundancy
  • 1:36:01 – Handling big traffic spikes with little warning
  • 1:38:38 – Best tips? Monitor everything and avoid premature optimization
  • 1:41:43 – Check out Filipe on Twitter, his coding education platform and YouTube channel
📄 References
⚙️ Tech Stack

Support the Show

This episode does not have a sponsor and this podcast is a labor of love. If you want to support the show, the best way to do it is to purchase one of my courses or suggest one to a friend.

  • Dive into Docker is a video course that takes you from not knowing what Docker is to being able to confidently use Docker and Docker Compose for your own apps. Long gone are the days of "but it works on my machine!". A bunch of follow along labs are included.
  • Build a SAAS App with Flask is a video course where we build a real world SAAS app that accepts payments, has a custom admin, includes high test coverage and goes over how to implement and apply 50+ common web app features. There's over 20+ hours of video.


Dec 20, 2021

✏️ Edit on GitHub