首页 > 解决方案 > How to host .net core microservices on IIS server

问题描述

I am a beginner to build microservices in .net core 3.1 and would like to know how to host it on an IIS server with multiple microservices.

I did google but not found any article.

标签: .netasp.net-coremicroservices

解决方案


很多微服务只是一个供内部使用的小域的 WebApis。

  • 通常设置是使用防火墙和/或 IP 限制来避免来自外部的访问。
  • 最简单的方法是像设置 WebApi 一样为每个服务设置一个特定的端口号。
  • 当服务从服务器内部相互调用时,您可以使用 DNS 将服务名称转换为 ip 和端口

推荐阅读