在同一环境中混合使用 Service Fabric 编程模型
Co-mingling Service Fabric programming models in the same environment
容器、来宾可执行文件和可靠服务能否在相同的 Azure 或本地 Service Fabric 环境中一起安装和运行?
是的,每个服务都有自己的编程模型。事实上,如果你看一下文档 here 它是场景之一:
Mix containers and Service Fabric microservices: Use an existing container image for part of your application. For example, you might use the NGINX container for the web front end of your application and stateful services for the more intensive back-end computation.
另一个官方声明,如果你需要的话,也可以在文档中找到here:
Design applications composed of stateless and stateful microservices
正如所写,应用程序由一个或多个服务组成,每个服务都有自己的编程模型,您可以决定什么是给定服务的最佳选择。
容器、来宾可执行文件和可靠服务能否在相同的 Azure 或本地 Service Fabric 环境中一起安装和运行?
是的,每个服务都有自己的编程模型。事实上,如果你看一下文档 here 它是场景之一:
Mix containers and Service Fabric microservices: Use an existing container image for part of your application. For example, you might use the NGINX container for the web front end of your application and stateful services for the more intensive back-end computation.
另一个官方声明,如果你需要的话,也可以在文档中找到here:
Design applications composed of stateless and stateful microservices
正如所写,应用程序由一个或多个服务组成,每个服务都有自己的编程模型,您可以决定什么是给定服务的最佳选择。