更新时间:2021-07-14 11:01:42
封面
版权页
Credits
About the Authors
Acknowledgments
About the Author
About the Reviewers
www.PacktPub.com
eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Welcome to the Node.js Platform
The Node.js philosophy
Introduction to Node.js 6 and ES2015
The reactor pattern
Summary
Chapter 2. Node.js Essential Patterns
The callback pattern
The module system and its patterns
The observer pattern
Chapter 3. Asynchronous Control Flow Patterns with Callbacks
The difficulties of asynchronous programming
Using plain JavaScript
The async library
Chapter 4. Asynchronous Control Flow Patterns with ES2015 and Beyond
Promise
Generators
Async await using Babel
Comparison
Chapter 5. Coding with Streams
Discovering the importance of streams
Getting started with streams
Asynchronous control flow with streams
Piping patterns
Chapter 6. Design Patterns
Factory
Revealing constructor
Proxy
Decorator
Adapter
Strategy
State
Template
Middleware
Command
Chapter 7. Wiring Modules
Modules and dependencies
Patterns for wiring modules
Wiring plugins
Chapter 8. Universal JavaScript for Web Applications
Sharing code with the browser
Introducing Webpack
Fundamentals of cross-platform development
Introducing React
Creating a Universal JavaScript app
Chapter 9. Advanced Asynchronous Recipes
Requiring asynchronously initialized modules
Asynchronous batching and caching
Running CPU-bound tasks
Chapter 10. Scalability and Architectural Patterns
An introduction to application scaling
Cloning and load balancing
Decomposing complex applications
Chapter 11. Messaging and Integration Patterns
Fundamentals of a messaging system
Publish/subscribe pattern
Pipelines and task distribution patterns
Request/reply patterns