.net - 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.
解决方案
很多微服务只是一个供内部使用的小域的 WebApis。
- 通常设置是使用防火墙和/或 IP 限制来避免来自外部的访问。
- 最简单的方法是像设置 WebApi 一样为每个服务设置一个特定的端口号。
- 当服务从服务器内部相互调用时,您可以使用 DNS 将服务名称转换为 ip 和端口
推荐阅读
- cloudflare-workers - 牧马人工人:HTMLRewriter.on 与 ElementHandler 不工作
- python - 如何使用 tkinter 添加和移动图像?
- python - 使用 Paramiko 设置 SSH 隧道以访问 PostgreSQL
- swift - 小部件仅在模拟器中选择时运行
- java - 选择 jTable 中的数据,但在 jTextFields 上显示其他数据
- javascript - 为什么我不能将捕获的目标元素分配给新的 src?
- c++ - 为什么我在使用 getline() 计算文件中的行数时得到错误的答案?
- python-3.x - Pandas concat - 行旋转
- javascript - 重复次数较少的条件渲染
- python - 合并排序问题