Free Newsletters
Technology & Business Daily

InfoWorld
Log-in | Register
ENTERPRISE STRATEGIES  

Carry your state

Standard techniques for contingency planning don't map well to service-oriented communications

By Tom Yager  
October 25, 2002
 

CONCEPTS SUCH AS BPM (business process management), federated computing, and Web services would not exist were it not for reliable, low-latency networks. Such service-oriented architectures entail calling out to multiple systems. But what happens when a system or network loses its connection, overloads, or hands back garbled data?

Free IT resource

Open Source Business Conference (OSBC) May 22-23, 2007

Sponsored by OSBC

Free IT resource

Virtualization Insights from Top Experts - Learn how virtualization gets real!

Sponsored by Dell

Standard contingency planning is coarse-grained: an entire site, server, or application is failed over. After fail over, existing sessions (such as database queries and credit card authorizations that were already underway) are usually dropped.

But the coarse-grained contingency model runs aground in a service-oriented design. One server might run five applications that publish a total of 30 Web services interfaces. If three of those interfaces fail, the availability solution may not know the application is in trouble.

Database managers and messaging systems use distributed transactions to guard against data loss. It's one thing to roll back a five-step transaction that fails at step three; but it's quite another to report failure on a 50-step business process that hangs at step 49. The failure-handling models built into the BPM systems I've used are primitive; rollback is not an option, and if the state of the entire process is lost (because the orchestration or directory server goes down, for example), the outcome is unpredictable.

Like the Web itself, Web services should be stateless by design. But already, distributed applications expect servers to save data from one call to the next. I see plenty of Web services apps that use callbacks to make the application less sensitive to latency. A callback says, "I'm not going to wait; you call me back when you're done processing my request." It's great that the application can do other things instead of looping along, awaiting a response, but a Web service can't call you back if the server fails over before it gets a chance to answer. If the client hiccups and loses its state before the return call, it won't know what to do with the callback when it arrives. These are critical issues, but tools, infrastructure, and developers often leave them to chance.

One solution is to use these technologies with their natural limitations in mind. A lengthy BPM workflow should be broken into subprocesses so it doesn't always have to restart at step 1, and each subprocess' business logic should provide the equivalent of rollback in the event of failure. All saved state information must be verifiably replicated across redundant servers; a state-dependent Web service shouldn't report success until replication completes. In other words, applications have to take ownership of contingency planning.

An alternative, which I actually prefer, is to include complete state data -- even the entire process flow -- in every call. A callback would have all the data needed to rebuild the state of a restarted client. If it looks like that's too much data to push around your network, maybe that's a sign that your application is too complex and too dependent on state.





 


 
Tom Yager is technical director of the InfoWorld Test Center. Contact him at tom_yager@infoworld.com.
 

TOP NEWS:


»  Software piracy hurts the open-source community too
Many nations are beginning to see stolen proprietary software as a lost opportunity for open source software, whose development can encourage innovation and job growth

»  Intel readies slew of embedded chips based on Atom core
Intel is trying to increase performance and drop power consumption in more than 15 system-on-chips that use the Atom core

»  Microsoft surprise reorganization aimed at online woes
Microsoft's online troubles hint at larger vulnerability; the company is facing challenges in areas that have been a lock for many years

»  Attack code released for DNS bug
Security experts warn that this attack code may give cybercriminals a way to launch virtually undetectable phishing attacks

»  Parts of San Francisco network still locked out
Administrators are still locked out of the city's VoIP system and LANs within the Sheriff's Department and the Recreation & Park Department

»  Intel says Moblin update coming soon
Open-source effort set for mobile Linux should have an alpha-level release in a few weeks




Are you ready for event-driven business?
"Faster than a speeding bullet" doesn't just refer to superheroes anymore, it's the velocity your business needs to compete. In this webcast you will learn strategies you can implement today that will keep your systems ahead of the increased business velocity. Sponsor: Progress Sonic

»  Click here to view this Webcast
  Zombie PCs Are Attacking Your LAN
A recent study showed that malware-infected zombie PCs are now a bigger threat to ISPs and Web infrastructure than DoS attacks. As this brand new IT Strategy Guide explains, an increased use of peer-to-peer techniques by the attackers has made it harder to fight back. Download now, compliments of Verio:

»  Click here to download now

- Special Advertising Partners -
WHITE PAPERS
 

» Technology White Papers Library

Technology White Papers by Topic

Technology White Papers E-mail Alert

Find out when the latest white paper is available:
 
 
INFOWORLD MARKETPLACE
 
» BUY A LINK NOW
 

FIND PRODUCTS AND COMPANIES
» COMPLETE PRODUCT GUIDE



TECHNOLOGY INDEX
• Applications
• Application Development
• Security
• Networking
• Wireless
• Platforms
• Hardware
• Data Management
• Storage
• Web Services
• Business
• Telecom
• Professional Services
• Standards

TECH WATCH 


What's the 411 on GOOG-411?
Just as Google has become synonymous with "performing a Web search," 411 is understood to mean "information" -- as in "what's the 411?" I was thus surprised to discover, from a billboard, no less, that the king of search is taking on the ...

Apple HTML source reveals 'iPhone Extreme'
"This one's a stretch..." reports AppleInsider. Um, yeah. Reporting on HTML code sightings of product names could be called a stretch, but iPhone Extreme has a ring to it. Now, that sounds like the product Apple should have released first, rather ...

COLUMNISTS

Unified under law
Ephraim Schwartz's Column and Blog (InfoWorld) - In the litigious world we live in, deploying a unified communications platform in your enterprise could...
» MORE COLUMNISTS

MORE INFOWORLD BLOGS


Open Sources 
Product Management
When I joined MySQL four years ago, there was quite a lot of debate about product management. We didn't actually have ...

Zero Day 
Botnet herders tending smaller flocks
New research backs up the theory that botnet operators are keeping their networks smaller in a continued effort to keep ...



• Advice Line
• Database Underground
• The Deep End
• Enterprise Mac
• Geeks in Paradise
• Grid Meter
• The Gripe Line
• InfoWorld Daily
• Inside IT
• IT Troubleshooter
• ITXtreme
• Open Sources
• ProdBlog
• Real World SOA
• Reality Check
• Security Adviser
• SMB IT
• The Storage Network
• Tech Watch
• Virtualization Report
• Zero Day

ADVERTISEMENT


RESOURCE CENTERadvertisement 

GOVERNMENT IT & POLICY
'If you don't go after the network, you're never going to stop these guys. Never.'
From the State Department, All the News for Inquiring Minds
TechPresident, the Internet Citizenry's New Consensus Taker



Sponsored Technology Links

 
 
 HOME  NEWS  BLOGS  PODCASTS  VIDEOS  TECHNOLOGIES  TEST CENTER  EVENTS  CAREERS   About | Advertise | Awards | RSS | Contact Us 

Copyright © 2008, Reprints, Permissions, Licensing, IDG Network, Privacy Policy, Terms of Service.
All Rights reserved. InfoWorld is a leading publisher of technology information and product reviews on topics including viruses,
phishing, worms, firewalls, security, servers, storage, networking, wireless, databases, and web services.

CIO :: ComputerWorld :: CSO :: Demo :: GamePro :: Games.net :: IDG Connect :: IDG World Expo
Industry Standard :: IT World :: JavaWorld :: LinuxWorld :: MacUser :: Macworld :: Network World :: PC World :: Playlist