I’ve decided to open up an old repo out 2018. In this repo i’ve build a small example on how might want to do microservices with GraphQL in ruby kind of setup.

I would recommend against microservices unless you really really really can’t do otherwise. But if you have to, this might be the simplest approach. The microservices itself are written in ruby with Distributed Ruby. Meaning you can call easy and fast the underlying microservices without any HTTP layer, oh my!

The setup is as follows:

  • A user service for fetching users
  • A comment service for fetching comments
  • Graphql service as an umbrella
  • All the services run in docker containers for easy building and deployment.

Under the good it uses Drb, Docker and Sinatra.

Check out the github repo here, just promise me don’t do microservices!

Hey you 👋 Want FREE resources to become the best developer and get a competitive edge? Subscribe!

Would you like to stay up to date on ? Subscribe here! I'll only use your email to keep u up to date on new technology and software development tips. It wont be shared. Feel free to unsubscribe anytime!