Chapter 14. Building Node.js clients and servers

This chapter covers

  • Building Node.js RPC clients and servers with Apache Thrift
  • Building HTTP[S] clients with Node.js
  • Using Q with RPC clients
  • Multiplexing multiple services over a single connection

In the following pages, we focus on the Node.js implementation of Apache Thrift, examining basic Node.js client and server operations and working our way through most of the Node.js-specific Apache Thrift features. Complementary to this chapter is chapter 15, “Apache Thrift and the JavaScript,” which explores browser-based JavaScript clients and using Node.js for building Apache Thrift web servers.

14.1. A simple client and server

Each chapter in part 3 of this book begins by creating the same ...

Get Programmer’s Guide to Apache Thrift now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.