English 中文(简体)
关于利用Nginx代用杂质给基于Json服务的HttpListener公司的想法
原标题:Thoughts on using Nginx to proxy webrequests to a .Net HttpListener based Json service

我正在制作一个网络服务,只需要打耳机,需要加以缩小。

我的印象是,Nginx是一个比国际会计准则7.5更可衡量的网络服务器,与国际会计准则相比,管理非常简单。 此外,利用上游模块,Nginx能够非常容易地用于在几个json服务处中保持平衡。

由于我只需要做 j子,我感觉到协会。 净额和IIS即超技能。 我只需要一些非常简单的路线,需要一个简单的冷漠机制,我可以轻易写一下。

现在,我正在使用MVC3,但感觉到,当我只保留Json时,会变本。 我非常清楚地认识到,我必须写奥思特的习俗,以作出不实的政策,必须使HttpModule在WindowsFroms作认证的周围 ha,对未经许可的申请进行反驳,并且一般需要阅读和学习很多东西,以保持对框架的控制。 我也考虑了世界妇联,但我之前的经验是,我的需要有许多支气和配置,而且非常难以知道如何保持控制。

我更喜欢简明扼要,并想避免“框架管理”,因为我刚刚需要处理一些Http,以提供简单、快捷和可扩展的“合成”服务。 因此,我正在考虑设立这样的机构:

  • An Nginx webserver on a linux box that load balances among and proxies webrequests to async json services.
  • The json services are written as Windows Services using HttpListener to do Async handling of web reqests.

你们对这一结构的想法是什么?

EDIT:实际上,我认为,使用从原始到窗户服务而不是代理网址预约的快车,会有更多的业绩? 你们的想法是什么?

最佳回答
问题回答

我的感觉是,召集一个简单的网络应用是不够的,这一网络应用程序有一位请求书记员,回报相关Json的答复。

You may want to look at optimising the ASP .NET pipeline. You can read more about this and other ASP .NET optimisations here. If the request handling is lightweight from a processing perspective, you may also want to bump up the thread limits. This is also covered in the article referenced.

从Nginx的角度来看,你可能要检查一下工人的胎面数与你CPU的数值相符。

Hope this helps.





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...