Node Patterns
Node Patterns
$23.00
Regular Price
$16.00
Bundle Price

Node Patterns

Module Patterns
Flow Control Patterns
Work Queue Patterns
Networking Patterns
Configuration Patterns
Database Patterns

About the Bundle

  • Share this bundle

About the Books

Module Patterns

Module Patterns

Understanding and using the Node module system
  • 3,543

    Readers

  • 37

    Pages

  • 5,206

    Words

  • PDF

  • EPUB

  • MOBI

  • APP

The first short book of this series is a short introduction that sets the foundation of the next books to come. It shows what you can do with JavaScript and the Node module system to create and consume different types of modules: Singletons, Closure-based and prototype-based pseudo-classes, façades and others.

Flow Control Patterns

Flow Control Patterns

Mastering asynchronous flow control in Node
  • 766

    Readers

  • 44

    Pages

  • 7,369

    Words

  • PDF

  • EPUB

  • MOBI

  • APP

In JavaScript, any operation involving the network or the file system is always asynchronous. Once you start implementing complex logic, coordinating I/O operations can become a challenge in Node. This book will give you basic patterns and tools that will allow you to master and control asynchronous flow in Node. It covers the standard Callback pattern, queues, Event Emitters and Streams.

Work Queue Patterns

Work Queue Patterns

Master Deferred and Distributed Work in Node
  • 771

    Readers

  • PDF

  • EPUB

  • MOBI

  • APP

Most applications have some type of work that can be performed independently from the client request cycle. You can defer these types of work into a memory queue or, to survive crashes, a persisted queue. A distributed queue separates the work producer from the work consumer, allowing you to perform work on a different process.

This book will show you how to create and consume work in a local or distributed environment using Node.

Networking Patterns

Networking Patterns

Learn how to escape the trap of monolithic apps using Node
  • 756

    Readers

  • PDF

  • EPUB

  • MOBI

  • APP

Building an application using a web framework can soon lead to one big chunk of monolithic code. This happens not because of the web framework itself, but mostly because building distributed services can be a hard task. Fortunately, Node makes it easy to build networked services, allowing you to spread your application logic into a set of processes that communicate with each other.

This book shows you how to build and consume TCP-based services like streaming services, multiplexing streams, remote emitters, RPC streams and other types of network-based servers and clients.

Configuration Patterns

Configuration Patterns

  • 756

    Readers

  • 33

    Pages

  • 3,904

    Words

  • PDF

  • EPUB

  • MOBI

  • APP

Any application normally needs some environment-specific configuration details: the hostname and port of the database server, the access token for the mail delivery service API and many others. Once your application starts spanning more than one machine, the distribution of the configuration can start becoming troublesome.This book shows some approaches for managing and distributing the configuration of your Node application.

Database Patterns

Database Patterns

  • 755

    Readers

  • 131

    Pages

  • 23,117

    Words

  • PDF

  • EPUB

  • MOBI

  • APP

Node.js has been designed to do quick and efficient network I/O. It's event-driven streams make it ideal to be used as a kind of smart proxy, often working as the glue between back-end systems and clients. Node was originally designed with that intention in mind, but meanwhile it also has been successfully used to build traditional web applications: an HTTP server that serves HTML pages or replies JSON messages and uses a database to store the data. Even though web frameworks in other platforms and languages have preferred to stick with traditional open-source relational databases like MySQL or PostgreSQL, most of the existing Node web frameworks (like Express, Hapi and others) don't impose any database or even any type of database at all. This bring-your-own-database approach has been in part fed by the explosion in the variety of database servers now available, but also by the ease with which the Node module system and NPM allow you to install and use third-party libraries.

In this book we will analyze some of the existing solutions for interacting with some types of databases and what interesting uses can you give them. This first short book on databases starts with some of my favourites: LevelDB, Redis and CouchDB.

About the Author

Pedro Teixeira
Pedro Teixeira

Geek, programmer, freelancer, and entrepreneur. Author of some Node.js modules, the Node Tuts screencast show, and the Hands-on Node.js e-book and overall fervent proclaimer of the Node.js creed.

Wrote a book for Wiley on Node.js.

Partner of YLD.

Organizer of the Lisbon JavaScript Conference.

The Leanpub Unconditional, No Risk, 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms

Write and Publish on Leanpub

Authors and publishers use Leanpub to publish amazing in-progress and completed ebooks, just like this one. You can use Leanpub to write, publish and sell your book as well! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub