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

Stacker Is an Internal Tool to Stitch Together Microservices Responses

In this episode of Running in Production, Sascha Wolf walks us through an internal tool he built to help deal with microservices. It’s written in Phoenix and Elixir and is hosted within a Kubernetes cluster on AWS using EKS. It’s been running in production since mid 2019.

Sascha talks about rewriting the prototype from Java to Elixir, taking advantage of Phoenix Channels, creating event driven systems, moving from Heroku to AWS and really making the most of OTP features such as using stateful processes.

Topics Include

  • 4:26 – Motivation to rewrite the prototype from Java to Phoenix and Elixir
  • 6:45 – Live View likely would have been used if it were around when they started
  • 9:17 – 30+ microservices in 1 git repo and deployment isn’t really a pain
  • 12:46 – This Stacker service is pretty big with about 90 Elixir modules
  • 18:06 – On the front-end it’s just a little bit of vanilla Javascript
  • 21:44 – Useful libraries in their mix.exs file
  • 23:59 – Most of the other services are written in Ruby (for now)
  • 25:25 – Running on Heroku, but moving to AWS with Docker and Kubernetes with EKS
  • 28:32 – Terraform is used to manage their infrastructure as code with Circle CI
  • 32:09 – Load balancers, AWS API Gateway and using Lambda for backups
  • 34:09 – Sentry for error reporting and an ELK stack for viewing logs
  • 34:55 – Deploying code from development to running live on the Kubernetes cluster
  • 40:36 – Backups are handled by Amazon’s managed services
  • 42:59 – Best tips? Don’t be afraid to jump into OTP and leverage process state
  • 45:31 – Sascha is on Twitter, he has a personal site and Better Doc is hiring
πŸ“„ References
βš™οΈ Tech Stack
πŸ›  Libraries Used

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.

Questions

Jan 04, 2021

✏️ Edit on GitHub