Increase stability and responsiveness by short-circuiting code

Keep your Web applications running when tasks lock up

From the developerWorks archives

Brian Goodman and James Kebinger

Date archived: January 4, 2017 | First published: October 19, 2004

High volume Web sites often require asynchronous or threaded operations to achieve target performance criteria. While threads in Web containers are considered bad practice, the alternative is for developers to make blocking calls to code they cannot control. It becomes important that dependencies of this nature fail-fast. Goodman and Kebinger present a homegrown short-circuit pattern that ensures threaded execution and completion of a process in a fixed window of time.

This content is no longer being updated or maintained. The full article is provided "as is" in a PDF file. Given the rapid evolution of technology, some steps and illustrations may have changed.



static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Web development
ArticleID=19096
ArticleTitle=Increase stability and responsiveness by short-circuiting code
publish-date=10192004