Saturday, July 25, 2009

Scheduling or Dispatching Work in Windows Azure

I have been developing applications for the cloud on Windows Azure since its initial CTP was released last fall at PDC. I just recently upgraded to the latest July CTP of the SDK, released publicly last week. They have made a major improvement in this version: the ability to have multiple web and worker role types per application. This has made it significantly easier for me to schedule/dispatch offline processing in my worker roles. I thought I would share an example of what I call the "Dispatcher Pattern".

Here is a sample of how I can now implement the "Dispatcher Pattern" using multiple worker role types for an application:

Requirements:
  • My application needs to perform a background task, such as aggregating different pieces of data, very often.
  • I want to be able to scale this work and ensure that I don't have multiple instances doing the same work at the same time.

Solution:

  • A "Dispatcher" worker role will quickly determine what work should occur, inserting a queue message into a queue for each piece work. There will only be one instance of the "Dispatcher" running, so you can be confident that the same items are not being inserted into the queue multiple times. The "Dispatcher" role can queue work as frequently as needed.
  • A second role type actually does the work. This role type, "Aggregation Role" in this case, pulls a message off the queue, does its work, and repeats. While you only needed one instance of a "Dispatcher", you can scale to as many of this role type as you need to keep up with your queue.

I think this is a very useful pattern when it comes to needing to initiate work to take place in your worker roles in Windows Azure, especially when the work is not triggered from an action taking place in a Web Role. You can now have multiple worker role types in an application, and scale them independently.

Saturday, July 18, 2009

New Law Firm Site: CMS Law Firm

Recently I have been buliding some sites for a new friend of mine, Chris Small.

He is a Bellevue DUI attorney, Seattle DUI attorney, Bellevue criminal attorney, Seattle criminal attorney, Bellevue traffic lawyer, Seattle traffic lawyer, and Seattle eminent domain lawyer. Click on the links to check out the sites and give him a call if you need help.

One of the cool things about working with Chris has been how in tune he is with Search Engine Optimization. After only a few weeks, his main site, www.cmslawfirm.com already had a Google page rank of 3. Pretty impressive. More to come as these sites climb the ladder...

Friday, June 5, 2009

Auth and Auth in the Cloud

I have been developing on the Windows Azure platform for the past 8 months or so. One of the more interesting reads I have had is a developer white paper on the .NET Access Control Service, one of the components of the Azure Services Platform. It gives a great overview building Claims-based applications and dives into a sample application. I have to say that I think Microsoft is headed in the right direction to delivering Identity Federation in the cloud, making the migration of enterprise applications to the cloud more of a reality.

Monday, May 18, 2009

Top 5 Concerts

I was talking to a buddy of mine about the best concerts we have seen. Thought it would make for an interesting blog post. Here is my list, after some careful deliberation...

#5. Dave Matthews Band at the Gorge. I'm not singling out a particular show. Any one from 2001 - 2003 is on my list here. But one of them for sure makes my top 5. The music, venue and the whole camping experience during my college years is a great memory.

#4. Paul Simon at the Paramount, Seattle WA in 2000. Sat in the front row...of the orchestra pit. Literally leaning on the front of the stage, and shook Paul's hand after the encore. Seeing those songs performed that close was great.

#3. John Mayer at Richards on Richards in Vancouver, BC in 2001. It was awesome to see him before he made it big in a pretty small club/bar, just after Room For Squares was released. There were probably 500 people there or so, and you could walk right up to the front of the stage.


#2. Dave Matthews performing solo acoustic at Benaroya Hall in Seattle, WA in 2002. It was a 2 hour set of just Dave by himself in a very private setting. Acoustics are amazing in there. Dave played a 5 song encore with a 15 minute story mixed in there as well.

#1. U2 during their Elevation Tour in Vancouver, BC in 2001. Could have swapped in their Vertigo Tour show in Seattle, WA here as well but the 2001 show was my first time seeing them live and is deserving of the top spot. U2 may be the best live show of all time.

Honorable mentions (great artists/shows I have also seen):

Eric Clapton, Fleetwood Mac, Paul Simon, James Taylor, Jackson Browne, Jason Mraz, Counting Crows, Dave Matthews and Tim Reynolds, Jack Johnson, Ben Harper, Maroon 5, Mat Kearney, Glen Phillips, Ben Folds, Ben Lee, Death Cab for Cutie, Green Day, Matt Nathanson, James Morrison.

I am headed to Coldplay at the Gorge in July and have a feeling that might crack the top 5. We will see...

Saturday, May 9, 2009

Site Review

Paul, a buddy of mine getting his MBA, recently completed his first website as part of a homework assignment. When I recently saw him, he asked me for my humble opinion...

While I absolutely love the My Way page, I have to say I was not overly impressed with the home page, even with my expectations going in. Here are my thoughts:

1. Looks like Paul was going for the simple approach of completing this assigment. And thats great. So many sites have done simple well. Take Google or Craigslist. Problem with Paul's site is that it doesn't do simple well. It looks like a first website. Borrowing a simple look and feel from someone else would have worked well, and been maybe even faster.

2. We are in business school now, not elementary school. We need some originality. Where is the catchy name? Where is the logo? "Paul's home page"? How long did it take to come up with that one? A little branding would go a long way.

3. Again, back to business school. The internet is a place where money can be made. Even though this is just a first website, lets get some advertising on there, some sponsorships, to bring in some money. Who is opposed to making a few bucks while doing your homework?

I always try to let my actions do the talking, not my words. So I took my own advice here and applied it to Paul's site.

I give you ... www.pauggle.com

Tuesday, May 5, 2009

Rule of 3

I have been consulting for Microsoft for the past several months in the Windows Azure space. Recently I have been meeting with some folks to help define some best practices for building applications on Windows Azure. One of the people I have been working with is J.D. Meier. He has a couple of great blogs: a MSDN blog and one called Sources of Insight.

I read a recent post on http://www.sourcesofinsight.com/ that I thought was really good. It was about the Rule of 3, and how to apply it to short term and long term goals. Check it out if you get a chance.

On a different note, a friend of mine was asking me to blog about his new website. The creative juices are flowing. Stay tuned...

Friday, April 3, 2009

March Web Traffic Statistics

We'll, another great month of March has come and gone. It definately was one of my busiest, with managing http://www.wearmybracket.com in addition to http://www.finalforman.net. I thought I would post some traffic numbers, for those of you interested besides myself.

The traffic numbers in 2009 for FinalForman saw another increase. Its always nice to see them keep going up, even if its just slightly. Here is a table breaking down the numbers compared to the last two years:

March 2007
Unique Visitors: 635
Total Visits: 2906
Pages Viewed: 64904

March 2008
Unique Visitors: 971
Total Visits: 3316
Pages Viewed: 31434

March 2009
Unique Visitors: 1321
Total Visits: 3706
Pages Viewed: 77550

The single highest traffic day came on the first Friday of the tournament, March 20th. We saw 431 unique visitors on that day. The day prior and the day after also saw unique visitors in the 400s.

WearMyBracket.com had its first March, and its numbers were not nearly as impressive. There were slightly over 200 unique visitors for the month of March, with a single day high of 47 on the day I spammed people with my lovely email.

Looking forward to continuing the upward trends next year.