.NET Core微服務之基於Ocelot實現API網關服務(續)

爲了驗證負載均衡,這裏我們配置了兩個Consul Client節點,其中ClientService分別部署於這兩個節點內(192.168.80.70與192.168.80.71)。   爲了更好的展示API Repsonse來自哪個節點,我們更改一下返回值: [Route("api/[controller]")] public class ValuesController : Co
相關文章
相關標籤/搜索