[Mono-list] recommended http server

David Curylo curylod at asme.org
Tue May 20 17:08:11 UTC 2014


You can use the HttpListener (http://msdn.microsoft.com/en-us/library/vstudio/system.net.httplistener) directly since you really aren’t trying to run any sort of web server.  If you need a nice REST HTTP application server, ServiceStack is very nice, but I think you just want a low level integration layer, and it’s overkill for that.  It sounds like you are stuffing a message in HTTP because it’s a common protocol.  I recommend considering ZeroMQ instead of HTTP for this sort of integration, particularly since you are already encapsulating your data in a message.

Pure Java implementation: https://github.com/zeromq/jeromq
Pure .NET/mono implementation: https://github.com/zeromq/netmq


On May 20, 2014, at 12:08 AM, Chris Ochs <chris at ochsnet.com> wrote:

> The use case is to bridge our JVM app with C# code that we need to also run.  We would be making http posts containing a protocol buffer message, and returning the same.
> 
> At first I tried looking for solutions written entirely in C#, but that turned out to be a dead end.  The only ones I found that were actively maintained had performance issues under load.
> 
> I was about to try out Nginx with fastcgi, but thought I'd post here before going down another rabbit hole.
> 
> FYI I did try embedding.  The problem was that we did run into some issues under load that could have been mono or my code.  In either case though it takes a lot of time to debug, and I am not confident that it would not just be the first of several.  So I finally concluded that embedding one vm into another is probably just asking for more trouble then I have the time to deal with.
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list



More information about the Mono-list mailing list