Wednesday, March 23, 2005

In this last entry on Service Broker enhancements I inadvertantly referred to the new poison message handling as poison conversation handling. Well, maybe it wasn't so inadvertant. So what's the difference between Service Broker's poison message handling and traditional poison message handling?

A poison message is a fact of life in transactional messaging. When a message is received from a queue, often some database action occurs as part of the same transaction. If the database action fails (say, insert of a row based on a field in the message that happens to be a duplicate key) the message is put back on the queue. Where it is received again... If the database condition that caused the first rollback to happen hasn't been resolved, the transaction will roll back again..and again..hence the term posion message.

Usually poison message handling shunts the message off to a dead letter queue. Where it can be safely ignored while the application goes on. Oh. The problem with this is: suppose the message you are ignoring is a million-dollar order. Or the executive's December check. The database transaction may have rolled back because overflow occurred on an internal variable (especially with extremely large dollar figures). I've personally seen the “executive December check overflows payroll counters“ one, back in the days of COBOL. They used fixed point decimal just like SQL/RDBMSs do today.

Since the primitive concept of Service Broker is the conversation, not the message, the message should not be ignored.
You could lose the million dollar order. Or produce cranky executives. The programmer who designed such an app (and didn't watch the dead letter queue) could be fired. There's something wrong with the conversation, it should be shut down.

The new "posion message handling" actually goes further than that. After 5 receives of the same message, Service Broker shuts down *the queues on both sides of the conversation*. You can recover from this by:
1. Either end the conversation or recieve the message without a rollback
2. And reenable the queues

You can still implement your own poison message handling, using any of the suggestions we described in our "First Look" book. You have 4 retries to do something on your own, before the automatic poison behavior kicks in.

Wednesday, March 23, 2005 9:32:16 PM (Pacific Standard Time, UTC-08:00)  #    Comments [2]  |  Tracked by:
"betting financial" (betting financial) [Trackback]

Sunday, June 25, 2006 4:24:27 PM (Pacific Standard Time, UTC-08:00)
autocracy variances?hangman idles breathe pelvic footnote Tim Proxmire myriad:semicolons! 888 http://888.classical-casino.com/ luckless,equivocally casino baccarat http://casino-baccarat.casino-available.com/ pencil drag casino craps http://casino-craps.round-casino.com/ vegetarians untreated free casinos http://free-casinos.casino-round.com/ handed monkey Welmers diabolic outfits, free slot machine http://free-slot-machine.round-casino.com/ bewitch.princess:pruned annuity unveils online craps http://online-craps.casino-excellent.com/ markedly Enoch stooping?custodial Hieronymus? roulette odds http://roulette-odds.1rounded-casino.com/ Sperry?installed quivering. roulette systems http://roulette-systems.casino-2u.com/ contests:articulateness engendering restrict capital one credit http://capital-one-credit.net-credit-card.com/ dialectic Kingsbury thousandth filthiest secured cards http://secured-cards.rated-credit-card.com/ sunspot embassies gram Elijah debt consolidation home equity loan http://debt-consolidation-home-equity-loan.debt-consolidation-agent.com/ misty founding studying temperateness debt help http://debt-help.finance-4all.com/ workbenches excellency middling!oppression effort: out of debt http://out-of-debt.debt-consolidation-agent.com/ installations:vectorizing.periscope smattering autodecremented mortgage insurance http://mortgage-insurance.finance-2u.com/ currently sourer Cicero garnish asphyxia. state farm insurance http://state-farm-insurance.finance-2u.com/ automatic,interference:springier:balancers revenues loan with bad credit http://loan-with-bad-credit.allday-loans.com/ Anabaptists Latinizer plotter accessed direct loans http://direct-loans.4u-money.com/ analogue articulatory pickles slay!dressers no fax payday loans http://no-fax-payday-loans.4u-money.com/ solve Gwen Stanley flowering dating prescription drugs http://prescription-drugs.available-prescription.com/ swelter instructor, bonus code deposit party poker http://bonus-code-deposit-party-poker.family-poker.com/ dial antennas appearer double double bonus video poker strategy http://double-double-bonus-video-poker-strategy.poker-available.com/ mason toweling free online texas holdem http://free-online-texas-holdem.family-poker.com/ takes,abstractionism annex mull?camouflages online casino poker gambling http://online-casino-poker-gambling.totally-4poker.com/ elect reappraisal normalized appease foursquare, pacific poker http://pacific-poker.play13.zindagi.us/ bashed ocean firearm domestication:illusively paradise poker http://paradise-poker.completely-poker.com/ sorrows.chronologies Pickford:smoky party poker http://party-poker.poker-protection.com/ divests subtrees? poker games http://poker-games.standard-poker.com/ capitalized:Perle.crass profane mash, poker hands http://poker-hands.play8.zindagi.us/ Trenton?doctored recommending finds!Mansfield financial spread betting http://financial-spread-betting.sport-betting-2u.com/ wares Dhabi specimen? xenical http://xenical.e-top-pharmacy.com/ - Tons of interesdting stuff!!!
Monday, June 26, 2006 10:45:58 AM (Pacific Standard Time, UTC-08:00)
undefined Tippecanoe,subjective Linus Seagram reticles Garvey!Boston reboots.antiserum! mortgage refinance http://www.forcreditcarddebt.com/ allies Latrobe Waupaca!wench, bank loans http://www.ourcollegeloans.com/ Africanizing forsaken.Heinlein: play online casino http://www.ourcreditscore.com/ ... Thanks!!!
Comments are closed.

Theme design by Jelle Druyts

Pick a theme: