主办单或窗口ServiceStack,MVC3或MVC4,什么是单声道的状态 [英] Host ServiceStack, MVC3 or MVC4 on mono or windows and what is the state of mono

查看:139
本文介绍了主办单或窗口ServiceStack,MVC3或MVC4,什么是单声道的状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图决定使用什么堆栈一个新的基于Web的后台系统。我们开发C#和将要使用ServiceStack和/或ASP.NET MVC。我们的客户prefers托管在Linux服务器上,因此这排除了MVC4,因为这不是由单声道的支持。

I am trying to decide what stack to use for a new web based backoffice system. We develop in C# and are going to use ServiceStack and/or ASP.NET MVC. Our customer prefers hosting on a Linux server, so this rules out MVC4 as this is not supported by Mono.

此外,我们担心运行,因为像这样的<一个帖子ASP.NET单声道所需的单FastCGI的服务器的状态href=\"http://serverfault.com/questions/330298/stopping-fastcgi-mono-server-gracefully-website-content-updating-with-no-need-t\">http://serverfault.com/questions/330298/stopping-fastcgi-mono-server-gracefully-website-content-updating-with-no-need-t因为我们发现很难找到相关的,多达有关项目的状态的最新信息。因此,我们毫不犹豫地对单用MVC3为好。

Additionally we are worried about the state of the mono-fastcgi-server needed to run ASP.NET on Mono because of posts like this http://serverfault.com/questions/330298/stopping-fastcgi-mono-server-gracefully-website-content-updating-with-no-need-t and because we find it very hard to find relevant and up to date information about the state of the project. Therefore we hesitate to use MVC3 on mono as well.

现在我们正在使用ServiceStack后面一个控制台应用程序和NGINX反向代理托管考虑(与新的Razor意见!)。这似乎做工精细和ServiceStack文档表明这是一个可行的解决方案。但对于单?它是严重的生产基地和服务不够稳定,垃圾收集等高性能?有没有人有最新的体验与单主机繁忙的服务器应用程序(使用的HttpListener控制台应用程序) - 如果是这样,它是如何工作,你会推荐它?你用什么版本的单声道?

Right now we are considering using ServiceStack (with the new Razor views !) hosted in a console app behind and NGINX reverse proxy. This seems work fine and the ServiceStack documentation indicates that this is a viable solution. But what about Mono? Is it stable enough for serious production sites and services, is the garbage collector performant etc? Does anyone have up to date experience with hosting busy server apps (console apps using httplistener) on mono - if so, how does it work, would you recommend it? what version of mono did you use?

我们的另一种方法是强制客户接受Windows服务器上,然后我们会用服务栈或者与服务栈mvc4结合起来。

Our alternative is to force our customer to accept a windows server, and then we will use service stack or perhaps mvc4 combined with service stack.

所以总结起来,你会怎么办/考虑,什么是对单一主机服务器应用您的经验?

So to sum up, what would you do/consider and what are your experiences with hosting servers apps on mono?

推荐答案

请注意托管 servicestack.net 上的Ubuntu Linux操作系统的虚拟服务器<运行/所有的现场演示STRONG>。 servicestack.net一直托管在Linux /单声道多年,在事实上移动到之前的Ubuntu虚拟服务器从HETZNER 的我们的老 CentOS的服务器有480天的运行时间。我们认为单越来越重要的平台来支持,因为我们预计只有Linux,云的出现是一个重要的竞争优势,因为它可以让你在扩展的 $ 0软件授权成本

ServiceStack.net has always run on Linux/Mono

Note all live demos hosted on servicestack.net are running on an Ubuntu linux vServer. servicestack.net has always been hosted on Linux/Mono for years, in-fact before moving to an Ubuntu vServer from hetzner our old CentOS server had an up-time of 480 days. We consider Mono an increasingly important platform to support as we expect the advent of linux-only clouds to be an important competitive advantage since it allows you to scale at $0 software licensing cost.

对于所有我们的 ServiceStack现场演示的Windows上用VS.NET 发展,但我们的Git部署和建立和主机的Linux 即可。正如我们的 我们采取特殊照顾,以支持单声道作为第一代发行说明概述在这里我们采用正火的行为,尽可能使移植现有IIS / ASP.NET站点二等公民仍然是微不足道的(即你应该能够复制和运行的二进制文件原样!) - 这延伸到我们采用外部依赖它通过他们的支持单声道的影响是

For all of ServiceStack live demos we develop on Windows with VS.NET but we git-deploy and build and host on Linux. As outlined in our Release Notes we take special care to support Mono as a first-class citizen where we apply normalizing behaviour as much as possible so porting an existing IIS/ASP.NET site remains trivial (i.e. you should be able to copy and run the binaries as-is!) - this extends to the external dependencies we adopt which are influenced by their support of Mono.

所有ServiceStack演示在Linux上托管,这包括剃刀例如已经2个版本部署和托管单声道,即

All ServiceStack demos are hosted on Linux, this includes the Razor example which has 2 versions deployed and hosted on Mono, i.e.

  • razor.servicestack.net - ASP.NET Hosted live demo powered by Linux / Nginx / MonoFastCGI
  • razor-console.servicestack.net - Self-Hosted Console App hosted behind Nginx Reverse Proxy

您可能想看看这个问题的不同方式举办<一个href=\"http://stackoverflow.com/questions/12188356/what-is-the-best-way-to-run-servicestack-on-linux-mono\">ServiceStack在Linux上的。

You may want to look at this question for different ways to host ServiceStack on Linux.

这篇关于主办单或窗口ServiceStack,MVC3或MVC4,什么是单声道的状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆