Notes on Azure async

by mheydt 17. November 2009 01:12 >
  • All requests go through the load balancer
  • Idempotency provided through compensating messages to other queues to provide for replay
  • Generally try to build for idempotency
  • CRUD is generally not idempotenty, but using integrity keys can be
    • issue is with data changing underneath
  • Azure queues do not participate in DTS
  • Poison Message Handling / Zombie Messages - write message id's to persistent store
  • Make sure poison test is at the top of your processing, but should be handled prior to any other code
    • Therefore, another worker role that does this before passing messages to other roles, or
    • in a base class or your worker role
    • dynamic work type in message to route to specific workers
  • Key points for dynamic workers
    • smart polling model (each poll costs $$)
    • use app domains to separate loaded types
  • MapReduce pattern
    • reduce large problem to small pieces, process, aggregate results
    • very parallelizable
    • map -> group -> reduce
    • Generally processor intensive / ram light
  • Summary
    • Use async
    • Use queues, but make sure for idempotency and compensation
    • watch for poison messages
    • Dynamic worker provide scalability

Tags:

Azure

blog comments powered by Disqus

about the author

I'm a .NET, XAML, and iOS polyglot that loves playing with new things and making cool and innovative stuff.  I am also a Mac junkie.

I am Principal Technologist for SunGard Global Services in NYC, in their Advanced Technologies practice, and I work extensively with SunGard's energy and financial customers.

Note the the posting on this blog are my own and do not represent the position, strategies or opinions of SGS.

twitter

I can't stop thinking big!
Sunday 1:08AM via WindowsLive
Just watched Moneyball. That's my pick for best movie this year.
Saturday 3:51PM via WindowsLive
@vincebelpiede: Report: Skype For Windows Phone Beta Imminent http://t.co/KYNjgg1L#mhtnd
Wednesday 8:39AM via Twitter for Mac
@mashable: Kinect Fusion Will Turn Gaming (and More) Into a 3D Fun House - http://t.co/Ihrq2fY2#mhtnd
Wednesday 8:39AM via Twitter for Mac
New Kinect SDK: http://t.co/57MvA5L5 #mhtnd
Wednesday 8:39AM via Twitter for Mac
Follow me on Twitter

recent comments

None

month list