Robust integration with Redis on Azure and Polly

by DotNetNerd 13. July 2014 12:56

A client of mine requested an integration with OpenWeatherMap, so like so many times before it was a chance to think about how to make such an integration robust and performant. Its as common a task as they come, but also something that tends to end up feeling more complex than I would like. Having heard a lot of good things and played a bit with Redis I felt that it would be a good choice for providing super fast caching, while also allowing for more than basic key/value storage.

Getting off the ground

Redis on AzureThe project is already running on Azure, so it was an obvious choice to give Azures new Redis based caching service a go. As of now the service is still in preview, but the the level of caching I need I feel quite comfortable with it. Getting started was as easy as most things on Azure - click add, fill in a name and press go. As every day as this has become, I am still blown away by how easy and fast it is every time I need to provision a new VM or service – and a Redis cache is no different.

On the downside I am not quite convinced by the new Azure portal, because to me the UX feels more shiny than useful. As of this writing the caching service is only available through the portal, but inspite of my reservations it was easy to get going, and it provides a nice overview of requests, storage space used as well as cache hits and misses.

More...

GOTO Copenhagen 2014

by DotNetNerd 12. June 2014 14:59

GOTO_Con As you may have noticed I have been blogging from the GOTO Conference in Aarhus the last couple of years. It has been a lot of fun and I really enjoy spending a few days absorbing as much as I can while trying to convey the messages through this blog. So even though I have moved across the country and closer to Copenhagen I was considering going back the GOTO in Aarhus this year. As it turnes out, this year there will also be a full-scale GOTO conference in Copenhagen!

It is nice to see that my move has coincided with the conference also taking place in Copenhagen, and it will be a great chance to meet more developers in this end of the country. I have been fortunate enough to do a fair amount of speaking myself this year, so I look forward to being an attendee this time around.

The tracks this year will be "People & Process", "Everything Connected", "Leading & Bleading Edge", "Enterprise Architecture" and a Solution Track. Far from all speakers have yet been announced yet, but I am glad to see Mads Torgesen on the schedule. It is a very interesting time in .NET with Roslyn being open sourced and looking to enter the finishing stages. On the down side he is also the only .NET speaker I see so far, which is a shame, with exciting things happening with ASP.NET vNext also. I am definately keeping my fingers crossed for someone in that space as well.

In any case, I am sure there will be pleanty of inspiring talks so I will be keeping up to date with the schedule and look forward to september.

Tags:

Events

NDC talk: “Cloud beyond scaling: realtime webapplications”

by DotNetNerd 8. June 2014 09:37

This week I was at NDC Oslo, and besides seeing a bunch of awesome talks and having fun with equally geeky people I got to talk about building realtime applications with Firebase, AngularJS and EmberJS. It’s a topic I like, because I can give the audience something very tangable that they can try. On top of that it is a chance to build types of applications that were quite difficult just a few years ago – but now it has become almost trivial.

The awesome people behind the conference have already made the video from my talk available here.

NDepend review

by DotNetNerd 2. May 2014 15:13

Lately I have spent a bit of time with NDepend, who contacted me if I wanted a free license, in exchange for a blogpost. This was actually great timing on their part, as I was already thinking about giving it another go. Being completely honest I tried NDepend some years ago, and at the time I simply didn't know where to start and where I would get the most value from using such a tool. So back then I pretty much wrote it off, but have again and again heard good things from other developers who are using it.

My first thought when I ran NDepend this time around was that a lot had changed. The first thing that met me was a wizard for analysing a project, so I pointed it at my current project. This was the point I got derailed the first time I tried NDepend, because I remember being met by the code metric view which does look kind of scary - especially being new to a tool like this. Now however I was met by a dashboard, that is still complex, but a vast improvement since it gives a pretty good idea of some of the power that NDepend provides. I still can't help think that the tool could gain a lot by providing simpler guides through some key usecases though.

More...

Build 2014 announcements for C#

by DotNetNerd 4. April 2014 17:38

Its Build time again and I just finished watching Mads Torgesens keynote on day 3, where he has been talking about Roslyn and new C# features that are comming. I am really getting excited about Roslyn, with demos comming out that show how to write tooling extentions. Its one of those things that have always seemed out of reach for most things in every day development, simply because it was too much work and pain to do. With Roslyn being open sourced yesterday (by Anders Hejlsberg live on stage), it will provide options never seen before. So it is really a good time to be a C# developer.

On top of that todays demo got into some language features that the team at Microsoft are putting into C# and VB. As Mads said these are all relatively small features, but small as they might be they solve some real pains with todays C#. More...

Fun with Mocha.js and Should.js

by dotnetnerd 20. February 2014 14:13

Since the amount of javascript in an average website has exploded, the need to unittest that code has become apparent. I think we are still a bit behind in this respect, as I often hear from people don’t know what “the right way” is to create such as setup. Sadly this seems to mean that they never got off the ground and skip testing clientside. Without starting any kind of war on this, I think most of us like at least some number of tests and the option to do TDD.

Well I may already have painted myself into a corner, as I don’t claim to know the one and only “right way”, but I have found a way of going about it that I really like and have fun with. Shortly put, I have been playing around with Mocha.js and Should.js – supported by the Chutzpah test-runner and testem that allows a light weight way of running tests while doing TDD.

More...

Realtime data displays with Firebase

by DotNetNerd 27. January 2014 10:34

images Lately I have been working quite a bit with displaying data in realtime on the web. I was even lucky enough to get the chance to talk about it at the Warm Crocodile Developer Conference – showing off how this can be done from your favorite SPA frameworks AngularJS and EmberJS.

One of the things I really like about these kinds of solutions is that all of a sudden it has become easy to do something that hardly was possible just a short while ago. All thanks to websockets, and technologies that utilize it. Firebase is just one such tool, and in many cases you may want to go low-level and build your own backend with eg. SignalR. It is still not too much work, and probably the route to take for most larger applications. However when Firebase is sufficient, life cannot be much simpler for getting things done.

More...

2013 debriefing

by dotnetnerd 25. December 2013 16:28

True to form it is time to look back on another year that has passed way too quickly. Most of all it has been a year of change, where we  uprooted and moved across the country to Høje Taastrup, my girlfriend became my wife to be, we both started new jobs, and we began building our new house. So it has been action packed, a lot of fun, but also with a few bumps on the road.

More...

BaaS - cloud based backend in a box

by DotNetNerd 14. November 2013 16:56

WAMobileServicesblue IMHO an overlooked part of the otherwise thoroughly hyped Cloud technologies is the so called baskend-as-a-service or BaaS technologies. Most presentations revolve around scalability and hosting, which are of course central and important, but non the less not the entire cloud story. This is something I have been looking a bit into, because I feel there is so much value in the cloud that we are not picking up on just yet.

More...

Last day of GOTO Aarhus 2013

by DotNetNerd 2. October 2013 16:41

The last day has no doubt been the most busy one for me. Not only were there a bunch of intersting talks, but I also had plans to do interviews with Douglas Crockford and Dan North. Two people I find extremely inspiring with Douglas having written THE book in Javascript and Dan one of my favorite speakers who always manages to teach me something in his talks all while having fun.

My day started out watching the keynote which was about becoming accomplished. Chad Fowler, who wrote the passionate programmer, did a good job at conveying ways to take charge of the great part of your life that is spent working. In his words a remarkable career equals a remarkable life with us spending about 50% of our life working.

More...

Who am I?

My name is Christian Holm Nielsen, and I work as an independent consultant, in Denmark, where I write code, give advice on architecture and help with training. On the side I get to do a bit of speaking and help with miscellaneous community events.

Some of my primary focus areas are code quality, programming languages and using new technologies to provide value.

Month List