I'll Do It Later — Lazy and Non-Blocking API Design

Eric Wilhelm (Cisco, Inc.)
Location: Portland 256
Average rating: ***..
(3.15, 13 ratings)

Is it done yet? An API call has taken the control flow and gone to do who-knows-what. Whether you are a component in a distributed system or a human sitting at a GUI application, you want some indication of progress or even the chance to do other work while you wait.

In the age of web APIs and cloud computing, latency and blocking operations have become increasingly important. Both servers and clients need to look for breaks in the control flow and smart ways to defer computation. Open flows and lazy evaluation make applications more responsive and easier to integrate in complex use-cases.

Your straight-line, simple procedure might be a network operation or a long-running computation, but translating either into a lazy form is a similarly easy task. Framing the problem with open and interruptible flows gives you the flexibility to multi-task and distribute work without testing and maintenance complications.

Whether you are publishing modules on the CPAN or designing an in-house system, this presentation will show you simple techniques to make your code more reusable and responsive. Learn how to partition your own algorithms and wrap third-party components to get a handle on the control flow.

Photo of Eric Wilhelm

Eric Wilhelm

Cisco, Inc.

Eric Wilhelm is a software and systems consultant, leader of the Portland Perl Mongers, and author of many CPAN modules. Eric is a contributor to several open source projects and founder of a few others.

  • Intel
  • Microsoft
  • Google
  • Facebook
  • Rackspace Hosting
  • (mt) Media Temple, Inc.
  • ActiveState
  • CommonPlaces
  • DB Relay
  • FireHost
  • GoDaddy
  • HP
  • HTSQL by Prometheus Research
  • Impetus Technologies Inc.
  • Infobright, Inc
  • JasperSoft
  • Kaltura
  • Marvell
  • Mashery
  • NorthScale, Inc.
  • Open Invention Network
  • OpSource
  • Oracle
  • Parallels
  • PayPal
  • Percona
  • Qualcomm Innovation Center, Inc.
  • Rhomobile
  • Schooner Information Technology
  • Silicon Mechanics
  • SourceGear
  • Symbian
  • VoltDB
  • WSO2
  • Linux Pro Magazine

Sponsorship Opportunities

For information on exhibition and sponsorship opportunities at the conference, contact Sharon Cordesse at scordesse@oreilly.com

Download the OSCON Sponsor/Exhibitor Prospectus

Media Partner Opportunities

Download the Media & Promotional Partner Brochure (PDF) for information on trade opportunities with O'Reilly conferences or contact mediapartners@ oreilly.com

Press and Media

For media-related inquiries, contact Maureen Jennings at maureen@oreilly.com

OSCON Newsletter

To stay abreast of conference news and to receive email notification when registration opens, please sign up for the OSCON Newsletter (login required)

OSCON 2.0 Ideas

Have an idea for OSCON to share? oscon-idea@oreilly.com

Contact Us

View a complete list of OSCON contacts