Building and Testing REST APIs in Node.js

Accepted Session
Short Form
Scheduled: Wednesday, June 27, 2012 from 4:45 – 5:30pm in B204


Learn about techniques, libraries and patterns useful for building REST APIs using Node.js


A single call to a modern REST API often results in queries against many backend services such as:

  • Authentication
  • Caching
  • Databases
  • Work Queues

Traditional models of dedicating a thread or process to each request can, in some applications, severely limit performance due to memory and processing overhead associated with each thread. In some cases, developers are forced to choose between the improved response times that could be seen by performing backend requests in parallel, and the further resource overhead and complexity of using multiple threads to process a single API request.

Node.js allows developers to more efficiently perform huge numbers of backend queries with relatively little resource overhead by using non-blocking IO. This presentation will introduce developers to techniques, libraries and patterns that that can be used to build and test REST APIs in Node.js

Topics covered will include:

  • Popular Request Handling Frameworks
  • Deserialization, Validation and Serialization
  • Patterns for performing parallel and sequential async operations and error handling
  • Backend client libraries for popular services
  • Documentation
  • Testing

Speaking experience

* Internal tech talks
* OSU "Beaver Bar Camp" talks about Node.js and Twisted Python