Jump to ratings and reviews
Rate this book

Node Cookbook: Practical Solutions to Server-Side JavaScript Problems

Rate this book
Over 60 high-quality recipes covering debugging, security, performance, microservices, web frameworks, databases, deployment and more; rewritten for Node.js 8, Node.js 6, and Node.js 4

Key FeaturesActionable recipes across the full spectrum of Node.js developmentCutting edge techniques and tools for measuring and improving performanceBest practices for creating readily-scalable production systemsBook DescriptionToday's web demands efficient real-time applications and scalability. Asynchronous event-driven programming is ideal for this, and this is where Node.js comes in. Server-side JavaScript has been here since the 90s, but Node got it right.

With Node for tooling and server-side logic, and a browser-based client-side UI, everything is JavaScript. This leads to rapid, fluid development cycles. The full-stack, single language experience means less context-switching between languages for developers, architects and whole teams.

This book shows you how to build fast, efficient, and scalable client-server solutions using the latest versions of Node.

The book begins with debugging tips and tricks of the trade, and how to write your own modules. Then you'll learn the fundamentals of streams in Node.js, discover I/O control, and how to implement the different web protocols.

You'll find recipes for integrating databases such as MongoDB, MySQL/MariaDB, Postgres, Redis, and LevelDB. We also cover the options for building web application with Express, Hapi and Koa.

You will then learn about security essentials in Node.js and advanced optimization tools and techniques.

By the end of the book you will have acquired the level of expertise to build production-ready and scalable Node.js systems.

The techniques and skills you will learn in this book are based on the best practices developed by nearForm, one of the leaders in Node implementations, who supported the work of the authors on this book.

What you will learnDebug Node.js programsWrite and publish your own Node.js modulesDetailed coverage of Node.js core API'sUse web frameworks such as Express, Hapi and Koa for accelerated web application developmentApply Node.js streams for low-footprint data processingFast-track performance knowledge and optimization abilitiesPersistence strategies, including database integrations with MongoDB, MySQL/MariaDB, Postgres, Redis, and LevelDBApply critical, essential security conceptsUse Node with best-of-breed deployment Docker, Kubernetes and AWSTable of ContentsDebugging processWriting ModulesCoordinating I/OUsing StreamsWielding Web ProtocolsPersisting to DatabasesWorking with Web FrameworksDealing with SecurityOptimizing PerformanceBuilding Microservice SystemsDeploying Node.js

658 pages, Kindle Edition

First published January 1, 2012

50 people are currently reading
89 people want to read

About the author

David Mark Clements

1 book1 follower

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
14 (35%)
4 stars
12 (30%)
3 stars
12 (30%)
2 stars
0 (0%)
1 star
1 (2%)
Displaying 1 - 4 of 4 reviews
7 reviews
July 30, 2014
Node Cookbook is that. A book with a lot of recipes useful for node programmers to improve his/her skills and find better solutions to day by day work.
It covers a lot of interesting stuff like managing stream of files, creating a server, a http request client tool, serialize data in JSON and XML, etc; but not only for web serving pages, but Network paradigms integration, computer background services and tasks.
The author guides us by a top down approach, creating a web server from scratch showing litle by little best practices with node, and finally revealing modules and tools that acomplish that work and are the best suited and most used by the node community.
However this is not a book for a beginner in node, neither a non Javascript skilled developer; a must know issue to not fail buying a node book. Nevertheless, for windows user could be confused sometimes when things don't come up like it's explained, despite the author advises and shows a solution. Not frequenly but accountable issue. An excellent book, well written and a good point to leverage our stater node's skills, though.
Profile Image for Maryam.
44 reviews9 followers
May 25, 2022
I first picked up the book because I wanted to learn about node js file system and streams but I ended up with more than that, the variety of topics added a lot to my knowledge even though it scratched the surface but at least I know where to start, it was simplified, well explained and informative.
Profile Image for Hector.
7 reviews
July 31, 2014
This is an interesting book if you want develop applications in a javascript enviroment, NodeJS is right now a programming environment that is used increasingly in developing all types of web applications, and consists of executing javascript on the server side.

The book is very well structured, talking about how to create a server, to how to create your own modules in node, through HTTP calls, data serialization, use of database, sockets at real-time communications, the express framework for web pages, and security settings on the server.
It's especially suitable for senior profiles in javascript but with the amount of code snippets any developer could create their own applications with nodejs framework.

Highly recommended, now I'll start developing my new website with nodejs, express and mongoDB with the help of the book!
1 review
September 25, 2014
I had the chance of going through Node Cookbook. I was trying my hands on Node.js (with around 1 month of juggling with the paradims of Node.js). I found this book to be useful. It had ample examples for the topics covered and I liked the sections relating to Encryption and Socket.io. Helped me in my project. Overall its a good read.
Displaying 1 - 4 of 4 reviews

Can't find what you're looking for?

Get help and learn more about the design.