0

I am planning to build a production application for a small & medium business. This is an intranet application with maximum 15 to 30 concurrent users. The proposed architecture is:

  • Client: Firefox browser
  • UI: HTML, JavaScript, CSS
  • Communication via: jQuery AJAX
  • Middle Tier: Window Service hosting WCF Service (using webHttpBinding)
  • Database: SQLServer 2012 Express Edition

In this architecture the missing part is a WebServer that will serve the static HTML pages. I do not want to go in with IIS mainly because of the following reasons:

  • Keep the cost of deployment down
  • Most of work is being done in the Window Service hosting WCF Service

Since most of the middle tier work is done by my Window Service hosting WCF Service and my UI is HTML, JavaScript & CSS, can we do away with the WebServer like IIS or other WebServers supporting ASP.NET technology and use a lightweight WebServers which serves only static HTML pages something like lighttpd, nginx etc?

Are these light weight WebServers like lighttpd, nginx suitable to host in production environment.

There might be an issue of AJAX Cross Domain requests as Window Service hosting WCF Service and the lightweight WebServer may run on different port but on the same IP address. We can probably overcome this by opening it up to cross domain requests as it’s an intranet application.

One of the ideas behind this architecture is that I want to try and reuse this in other projects which are bigger in size.

Please let me know if this is possible and the related pros & cons of this approach. I am also open to any other suggestions which will help me improve this architecture.

4

1 回答 1

1

我认为您为这么小的网站过度设计了它。如果您无论如何要运行 WCF 服务,那么使用 IIS 应该不是问题。

我建议要么使用 ASP.NET MVC 并在服务器上进行 html 呈现,要么使用客户端库,例如 angular.js 结合 Web API。

于 2013-05-12T18:56:14.117 回答