我有 2 个 dockerized
NestJS
应用程序需要使用 HTTP 协议相互通信。
一种方式是使用HttpModule向远程微服务发送http请求。但是有了这个,应用程序需要知道远程微服务的 IP(确切的 url)。
In Nest, a microservice is fundamentally an application that uses a different transport layer than HTTP.
HTTP 是一个应用层协议,使用 TCP 作为第 4 层协议。