I am learning microservice architecture, but now there is some confusion.
situation
- there are 4 projects written in
golang
- orderService
- userService
- tools
-
web ( forward
HTTP
request )
-
orderService
,userService
,web
communicate viagrpc
- all api requests through
web
forwarding toorderService
oruserService
-
orderService
anduserService
have their own independent database - they are all in
docker
containers
confusion
when I want to test a request, I have to do the following steps:
cd orderService
govender update +vendor
go build
cd userService
govender update +vendor
go build
cd web
govender update +vendor
go build
docker-compose build
docker-compose up
when I changed some code, I have to do this steps again.
I think this is unscientific and abnormal. I want to know whether all of these steps are necessary to integration test four microservices in docker.