وبلاگ بلیان

Node: Up and Running : Scalable Server-Side Code with JavaScript

معرفی کتاب «Node: Up and Running : Scalable Server-Side Code with JavaScript» نوشتهٔ Hughes-Croucher, Tom;Framework;Wilson, Mike، منتشرشده توسط نشر O'Reilly Media در سال 2012. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است. «Node: Up and Running : Scalable Server-Side Code with JavaScript» در دستهٔ بدون دسته‌بندی قرار دارد.

This book introduces you to Node, the new web development framework written in JavaScript. You'll learn hands-on how Node makes life easier for experienced JavaScript developers: not only can you work on the front end and back end in the same language, you'll also have more flexibility in choosing how to divide application logic between client and server. Written by a core contributor to the framework, __Node: Up and Running__ shows you how Node scales up to support large numbers of simultaneous connections across multiple servers, and scales down to let you create quick one-off applications with minimal infrastructure. Built on the V8 JavaScript engine that runs Google Chrome, Node is already winning the hearts and minds of many companies, including Google and Yahoo! This book shows you why. * Understand Node's event-loop architecture, non-blocking I/O, and event-driven programming * Discover how Node supports a variety of database and data storage tools * Learn best practices for writing easy-to-maintain code for Node * Get concrete examples of how to use the various Node APIs in practice * Take advantage of the book’s complete API reference Table of Contents 5 Foreword by Ryan Dahl 9 Foreword by Brendan Eich 11 Preface 13 Introduction 13 Conventions Used in This Book 13 Using Code Examples 14 Safari庐 Books Online 14 How to Contact Us 15 Acknowledgments 15 Tom鈥檚 Thanks 15 Part聽I.聽Up and Running 17 Chapter聽1.聽A Very Brief Introduction to Node.js 19 Installing Node.js 20 First Steps in Code 23 Node REPL 23 A First Server 25 Why Node? 27 High-Performance Web Servers 27 Professionalism in JavaScript 28 Browser Wars 2.0 29 Chapter聽2.聽Doing Interesting Things 31 Building a Chat Server 31 Let鈥檚 Build Twitter 39 Chapter聽3.聽Building Robust Node Applications 49 The Event Loop 49 Patterns 56 The I/O Problem Space 56 Unordered parallel I/O 57 Ordered serial I/O 58 Writing Code for Production 61 Error Handling 62 Using Multiple Processors 63 Part聽II.聽Deep Dive and API Reference 69 Chapter聽4.聽Core APIs 71 Events 71 EventEmitter 72 Callback Syntax 73 HTTP 75 HTTP Servers 75 HTTP Clients 77 Making HTTP GET requests 78 Uploading data for HTTP POST and PUT 80 The ClientResponse object 81 URL 81 querystring 83 I/O 84 Streams 84 Readable streams 84 Filesystem 85 Buffers 86 A quick primer on binary 87 Binary and strings 89 Using Buffers 89 Working with strings 91 console.log 92 Chapter聽5.聽Helper APIs 93 DNS 93 Crypto 95 Hashing 95 HMAC 97 Public Key Cryptography 98 Encrypting with Cipher 99 Decrypting with Decipher 100 Creating signatures using Sign 101 Verifying signatures with Verify 102 Processes 102 process Module 102 process events 103 Interacting with the current Node process 106 Operating system input/output 107 process.stdin 107 process.stderr 108 Event loop and tickers 109 Child Process 110 child_process.exec( ) 111 child_process.spawn( ) 113 Testing Through assert 117 VM 120 Chapter聽6.聽Data Access 123 NoSQL and Document Stores 123 CouchDB 123 Installation 123 Using CouchDB over HTTP 124 Installing CouchDB 124 Installing CouchDB鈥檚 Node module 124 Using node-couchdb 127 Working with databases 128 Creating documents 128 Reading documents 129 Updating documents 129 Deleting documents 130 Redis 131 Installation 131 Basic usage 131 Installing Redis 131 Installing Redis鈥檚 Node module 131 Hashes 132 Lists 134 Sets 135 Sorted sets 135 Subscriptions 137 Securing Redis 138 MongoDB 139 MongoDB native driver 139 Installation 139 Data types 139 Writing records 140 Mongoose 141 Installation 141 Defining schemas 141 Manipulating collections 142 Relational Databases 143 MySQL 143 Using NodeDB 143 Performance 143 Installation 143 Selection 144 Insertion 145 Updating 145 Deletion 146 Sequelize 147 PostgreSQL 150 Installation 150 Selection 151 Insertion, updates, and deletion 151 Connection Pooling 153 MQ Protocols 155 RabbitMQ 156 Installing RabbitMQ 156 Publish and subscribe 156 Work queues 158 Chapter聽7.聽Important External Modules 161 Express 161 A Basic Express App 161 Setting Up Routes in Express 162 Handling Form Data 167 Template Engines 168 Layouts and partial views 170 Middleware 171 Middleware factories 173 Socket.IO 175 Namespaces 177 Using Socket.IO with Express 179 Chapter聽8.聽Extending Node 185 Modules 185 Package Manager 185 Searching Packages 186 Creating Packages 186 Publishing Packages 187 Linking 187 Add-ons 188 Glossary 189 Index 191 This book introduces you to Node, the new web development framework written in JavaScript. You'll learn hands-on how Node makes life easier for experienced JavaScript developers: not only can you work on the front end and back end in the same language, you'll also have more flexibility in choosing how to divide application logic between client and server.Written by a core contributor to the framework, Node: Up and Running shows you how Node scales up to support large numbers of simultaneous connections across multiple servers, and scales down to let you create quick one-off applications with minimal infrastructure. Built on the V8 JavaScript engine that runs Google Chrome, Node is already winning the hearts and minds of many companies, including Google and Yahoo! This book shows you why.Understand Node's event-loop architecture, non-blocking I/O, and event-driven programmingDiscover how Node supports a variety of database and data storage toolsLearn best practices for writing easy-to-maintain code for NodeGet concrete examples of how to use the various Node APIs in practiceTake advantage of the book’s complete API reference "Get on track quickly with Node.js the dominant player for server-side JavaScript application development. With this hands-on guide, you'll learn how to build highly scalable servers with Node, and discover how its event-loop architecture reduces complexity and makes server programming safe and easy"--Page 4 of cover
دانلود کتاب Node: Up and Running : Scalable Server-Side Code with JavaScript