Showing posts with label SignalR. Show all posts
Showing posts with label SignalR. Show all posts

Thursday, May 28, 2015

Scaling the Real-time Web with ASP.NET SignalR - on Channel9

Great talk about scaling patterns for SignalR depending on the type of messages that run through your system.




Sunday, June 29, 2014

My takeaways from 'Creating Reactive User Interfaces with Adaptive Consulting's Reactive Trader'

I was listening to the Hanselminutes podcast the other day and the epsidoe featured an interview with a developer in the financial industry. They're making real-time interfaces and they posted a showcase project on github to demo the features.

They've used KnockoutJS + SignalR on the web side of the things and I got a few interesting takeaways from this talk:

  • You can use reactive extensions to treat configuration changes as streams. This allows you to easily push config changes to clients and trigger the re-configuration on their systems.
  • They're pushing out data as JSON right now, but in order to use less bandwidth, they'll move to binary JSON. Furthermore, they're going to push out delta values as in order to save even more bandwidth.
  • Using Reactive extensions on a stream of stock information is incredibly powerful.


Thursday, March 28, 2013

ElmahR - Real time Elmah logging

Today a project was featured on hackernews : ElmahR. It combines SignalR and Elmah which I think is pretty cool.


I'm not really sure whether this is really usefull in a business environment, but I still think it's a cool initiative.

Elmah?

Is THE library we use for error logging on all our .net web MVC applications. Actually, what we do is use NLog for logging and mailing critical bugs, but ELMAH keeps the database of actual exceptions and warnings.

Check it out here, but you want to get the NuGet package if you want to use it in your web-application. Getting the link for ELMAH, I saw that Scott Hanselman blogged about elmah in May 2011, so don't come here for new stuff... Next week, Windows 95. :)

SignalR?

Is a real time library written by some guys at Microsoft that allows your webpage to receive real-time data from the webserver. Typical implementations could be chat applications or live stock data.



Monday, March 4, 2013

Microsoft Channel 9 video series on the latest web stack

A couple a days ago, Scott Hanselman posted a series of 8 videos about the latest and greatest in web development coming from Microsoft. The video series touch on a broad spectrum modern techniques included in the latest Visual Studio update and .NET framework. It's not very high level, but it's great to get a quick peak into a whole lot of web technologies that are being packed into Visual Studio.


Saturday, January 19, 2013

JavaScript unit testing using QUnit

In one of the recent hanselminutes, Scott talks to one of the creators of SignalR, a real-time web library ( this episode ). Two things I found really interesting in this talk:

Microsoft allowed the creators to work on their 'garage project' using company resources

SignalR started out as a garage project from two guys at Microsoft, working on it in their own timem. However, after talking to their employer, the project was adopted by Microsoft and now they have a team of 6 or so, helping them on the project. Basically, now their working on their pet project in the boss's time.

SignalR is using Git, TeamCity, BrowserStack, TestSwarm and QUnit

During the podcast, their Continuouse Integration (CI) setup is mentioned. So apparently they use 
  • Git for source control
  • TeamCity for automated building and deployments - find it here: http://ci.signalr.net/
  • Testswarm for coordinating the JavaScript tests
  • QUnit for writing JavaScript unit tests
  • Browserstack for running the tests on all the different browser versions
Pretty cool setup there. Apparently their TeamCity server creates jobs for the Testswarm installation, to run the tests.
But, what I wanted to look into was QUnit for now, so I wrote a few lines to see how this thing works.

QUnit - A JavaScript unit testing framework

Honestly, I haven't tested much of my JavaScript code thusfar. However, There's no reason not to anymore, because QUnit makes it extremely simple.



You don't need to download anything, just get both style and JavaScript files from a CDN. A 'hello world' is quickly written like so:





  
  QUnit Example
  


  
Which will result in the following tests results:


There's no need to talk about this much longer. It works out-of-the box, no prerequisites and very helpful. We'll be using it!