A dummy microservice system using grpc to communicate within services. Use Docker Compose to deploy these services
There are two microservices
- user-service
- do the user authentication and provide a jwt token
- order-service
- save orders and give saved orders
- to use these services user need to be authenticated
- so initially user need to be logged in using login url and get the jwt token
- send the jwt token with consecutive requests
Using Grpc to communicate between these two services
- Using docker to put these services (and needed mysql dbs) into containers and use Docker Compose to connect these containers together
- Use
docker compose upto start the services - Use
docker compose downto stop the services - Use `docker scale = n to scale up/down containers
docker compose scale user-service=nwill creatennumber of user-service containersdocker compose scale order-service=nwill creatennumber of order-service containers
