jrusbatch / compilify

A web-based compiler for C# and VB.NET, powered by the Roslyn Project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Investigate SignalR performance issues.

jrusbatch opened this issue · comments

The site experienced an extremely large number of requests from individual users. Logs indicated that some clients were hitting the SignalR endpoint up to 30 times per second. This resulted in intermittent 503 errors throughout the day as we overloaded AppHarbor's load balancer.

As of 54a5ae1, a SignalR connection will not be opened until the user has clicked the "Run" link. In addition, if the connection is open and the user has not clicked "Run" within the past 30 seconds then the connection will be closed until the user hits "Run" again.

This should improve the application's performance by eliminating any idle persistent connections.