Home

Linqpad Server on Github

I've posted the source code to the Linqpad Web Server on Github.

https://github.com/kcsampson/LinqpadWebServer

It's an asp.net web app, plus, a class library, plus Linqpad.exe. Get the latest version of Linqpad beta and add it in your references. I'll follow up with an instructional video if there's enough interest.

--
This is a high speed server with pretty good fault tolerance allowing you to tweak your scripts while users are hitting your web site. Scripts are recompiled on-the-fly when necessary. I've load tested it demonstrating the ability to host single node web sites for hundreds of simultaneous users. I have a non asp.net version where the server is home-grown written in C#. But, the load testing showed it was really no faster than this asp.net implementation. This is simply because the entire site is a single .ashx file. There aren't any asp's, aspx's etc.

I consider this a far superior alternative to Node.js, and, nothing in the Java world comes close. I also like to call it my multi-purpose JSON server.


When you deploy to your IIS server, add a URL rewrite to make it look like "REST". It looks like the URL is to your actual script (without the .linq extension), but, instead it is routed to the load request processor called scriptServer.ashx:

Match this pattern:

^(.*)/([^/]+).(css|html|js)$

Rewrite URL to:

scriptServer.ashx?script={R:0}

Comments

Sign In or Register to comment.