独立的vrs框架相关的部署 [英] Self-contained vrs Framework-Dependent Deployment
问题描述
我正在将ASP.NET Core 2.2应用程序部署到我的站点,但发现主机仅支持自包含x86"应用程序.
I was deploying an ASP.NET Core 2.2 application to my site, and I found out that my host only supports "Self-contained x86" applications.
依赖框架的x64部署和自包含的性能之间是否存在差异?在x86 vrs x64版本中必须具有内存性能.
Is there a difference in performance between Framework-Dependent x64 Deployment and Self-contained? There must be memory performance in x86 vrs x64 versions.
如果我使用的是自包含式,在编程时必须考虑哪些问题?:内存问题?光盘空间?连接?速度或其他未记录的问题. IE. x64 vrs x86部署.
If I am using self-contained, what issues do I have to consider in my programming?: Memory problems? Disc space? connections? Speed or other undocumented problems. ie. x64 vrs x86 deployment.
推荐答案
取决于框架: 该服务器已安装DotNetCore框架库,您只能部署自己的代码和框架以外的第三方代码.
Framework dependent: The server has DotNetCore framework libraries installed, you only deploy your own code and third party codes other than the framework.
自包含: 您部署了运行应用程序所需的所有代码,包括框架.服务器不必安装框架
Self-contained: You deploy all the code required to run your application including the framework. The server doesn't have to have the framework installed
有关更多详细信息,请阅读文档
for more details read the docs
该框架的内存消耗不是很多,如果您仅使用VS2019或更早版本调试任何简单的Web应用程序,您就会看到约70MB的内存使用情况,并且考虑到即使共享主机服务也至少分配了128MB的即时内存.足以运行一个简单的应用程序.
The memory consumption for the framework is not that much, if you just debug any simple web application using VS2019 or earlier you will see ~70MB of memory usage, and considering that even shared host services are allocating at least 128MB of instant memory it will be enough to run a simple app.
但是您不能仅参考框架来确定最低要求.您应该考虑很多事情;
But you can't determine your minimum requirements with reference to the framework only. You should consider many things like;
- 您的项目有多大
- 正在使用多少资源和外部库
- 您期望有多少即时访问者
- 以及您的代码的效率如何...
这篇关于独立的vrs框架相关的部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!