Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is selfhosting appropriate for small web projects in both Nancy and ServiceStack?

Both Nancy and ServiceStack have ability to self-hosting. I want to use one of this frameworks to build a web service with Linux and Mono. I am expecting few concurrent connections. Unfortunately Mono has memory leaks in its implementation of ASP.NET, and the only choice for me is "self-hosting". But i am afraid of the small (possibly) potential to keep concurrent connections. Should I rely on their implementation of hosting?

like image 525
x2bool Avatar asked Dec 12 '22 18:12

x2bool


1 Answers

I'm not sure what memory leaks you're talking about - there are plenty of people using a Mono/Asp.net combination in production, and I'm sure they'd have noticed if it was intrinsically broken.

Either way, I can't talk for ServiceStack, but there's no issue with concurrent connections with the Nancy self host. I'd recommend you put it behind nginx, which will do an excellent job of handling static content, and monitor the service with supervisord.

There's more info on setting that up on our wiki:

https://github.com/NancyFx/Nancy/wiki/Hosting-Nancy-with-Nginx-on-Ubuntu

like image 87
Steven Robbins Avatar answered Jan 18 '23 17:01

Steven Robbins