{"repo":"kriswep/graphql-microservices","free":true,"listed":false,"github":"https://github.com/kriswep/graphql-microservices","clone":"git clone https://github.com/kriswep/graphql-microservices.git","description":"Showcasing a graphql microservice setup","language":"JavaScript","stars":76,"topics":["graphql","microservice","microservices","showcase","docker","graphql-microservices","service-gateway","api","docker-compose","backend"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"GRAPHQL-MICROSERVICES This project showcases, how one could set up a graphql server using a (mildy simplified) microservice architecture. Powered by Apollo Server 2, using Apollo Federation to expose a single, 'monolithic' API and many more Start in docker - via docker compose sudo docker-compose up -d Scale single services, eg the post-service, which has an identifier field for demo purposes build in sudo docker-compose up -d --scale post=2 remove: sudo docker-compose down Open the example API-Playground on http://localhost:3000 and issue GraphQL request. It is composed of the separated user and post services, stitched together. Start in docker env - manually setup a new docker network initially. service-post Build and run service-post container. You could start multiple services as well to get easy round robin load balancing. We added a hash field to our post service to identify the handling process. service-user Build and run service-user container. service-gateway Build and run service-gateway container. --- Sidenote: If you need to stop and remove all services do sthg like Attention: This stops and removes all your running docker images","default_branch":null,"files":null,"tree":[],"storefront":"/r/kriswep","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kriswep/graphql-microservices/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}