Suppose I have four applications:
- http-gateway
- NATS
- Business Logic Client
- Business Logic Server
Gateway <--> NATS <---> B.L.
My project structure is as follows:
nats-cluster\
cmd\
gateway\gatway.go
blclient\blclient.go
blserver\blserver.go
gateway\
blclient\
blserver\
Currently, I have to run four of them separately and only then they can talk with each other.
Gateway and BLclient use request-reply
pattern while blclient
uses grpc
to exchange messages with blserver
.
I wanted to know if there is any method to generate a single binary in Go so that the application can be run through a single binary.
Is there any way to combine multiple app binaries into a single one in Go?