00 kun 00 soat 00 daqiqa 00 sekund

Sizning oxirgi imkoniyatingiz! 'Lituz' promokodi bilan 30% chegirmadan foydalaning!

Build Your Own Web Server From Scratch in Node.JS: Learn network programming, HTTP, and WebSocket by coding a Web Server – James Smith

19990 UZS

-Do'stlaringizga tafsiya etish!

Tasnif

«Build Your Own Web Server From Scratch in Node.JS: Learn network programming, HTTP, and WebSocket by coding a Web Server» by James Smith is a comprehensive guide designed to help readers master the fundamentals of web server development using Node.js.

Through hands-on coding examples and clear explanations, this book equips readers with the knowledge and skills necessary to understand network programming, HTTP, and WebSocket protocols. Starting from the basics, readers will learn how to set up a simple web server and gradually advance to more complex topics such as handling HTTP requests, implementing WebSocket communication, and managing server-side resources efficiently.

Key features of this book include:

1. **Step-by-step Approach:** The book follows a structured approach, guiding readers through each concept with practical examples and exercises to reinforce learning.

2. **Focus on Node.js:** By leveraging the power of Node.js, readers will gain insights into asynchronous programming and event-driven architecture, which are essential for building scalable and efficient web servers.

3. **Hands-on Projects:** Readers will build their own web server from scratch, gaining practical experience in writing server-side code, handling client requests, and managing server resources effectively.

4. **Comprehensive Coverage:** From understanding the basics of network programming to implementing advanced features like WebSocket communication, the book covers a wide range of topics essential for web server development.

Whether you’re a beginner looking to dive into web development or an experienced developer seeking to enhance your skills in Node.js and network programming, «Build Your Own Web Server From Scratch in Node.JS» offers a comprehensive resource to help you achieve your goals.

Qo'shimcha ma'lumot

Varaqlar soni:

132

Mundarija

Contents
01.Introduction 1
1.1 Why Code a Web Server? ……1
1.2 Build Your Own X From Scratch …..1
1.3 The Book ……..2
02.HTTP Overview 4
2.1 Overview ……..4
2.2 HTTP by Example …….4
2.3 The Evolution of HTTP ……5
2.4 Command Line Tools …….6
03.Code A TCP Server 8
3.1 TCP Quick Review …….8
3.2 Socket Primitives …….10
3.3 Socket API in Node.js …….11
3.4 Discussion: Half-Open Connections …..15
3.5 Discussion: The Event Loop & Concurrency ….15
3.6 Discussion: Asynchronous vs.Synchronous ….16
3.7 Discussion: Promise-Based IO ……18
04.Promises and Events 19
4.1 Introduction to ‘async‘ and ‘await‘ …..19
4.2 Understanding ‘async‘ and ‘await‘ …..20
4.3 From Events To Promises ……21
4.3 Using ‘async‘ and ‘await‘ ……26
4.5 Discussion: Backpressure ……27
4.6 Discussion: Events and Ordered Execution ….29
4.7 Conclusion: Promise vs.Callback …..30
05.A Simple Network Protocol 31
5.1 Message Echo Server …….31
5.2 Dynamic Buffers …….31
5.3 Implementing a Message Protocol …..33
5.4 Discussion: Pipelined Requests ……35
5.5 Discussion: Smarter Buffers ……37
5.6 Conclusion: Network Programming Basics ….38
06.HTTP Semantics and Syntax 39
6.1 High-Level Structures ……39
6.2 Content-Length …….39
6.3 Chunked Transfer Encoding ……40
6.4 Ambiguities in HTTP …….41
6.5 HTTP Message Format ……42
6.6 Common Header Fields ……43
6.7 HTTP Methods …….44
6.8 Discussion: Text vs.Binary ……46
6.9 Discussion: Delimiters ……47
07.Code A Basic HTTP Server 49
7.1 Start Coding ……..49
7.2 Testing ……..58
7.3 Discussion: Nagle's Algorithm ……59
7.4 Discussion: Buffered Writer ……60
08.Dynamic Content and Streaming 62
8.1 Chunked Transfer Encoding ……62
8.2 Generating Chunked Responses …..63
8.3 JS Generators …….64
8.4 Reading Chunked Requests ……66
8.5 Discussion: Debugging with Packet Capture Tools …69
8.6 Discussion: WebSocket ……71
09.File IO & Resource Management 73
9.1 File IO in Node.JS …….73
9.2 Serving Disk Files …….74
9.3 Discussion: Manual Resource Management ….78
9.4 Discussion: Reusing Buffers ……81
10.Range Requests 84
10.1 How Range Requests Work ……84
10.2 Implementing Range Requests …..88
11.HTTP Caching 91
11.1 Cache Validator …….91
11.2 Discussion: Server-Side Cache Control …..93
12.Compression & the Stream API 97
12.1 How HTTP Compression Works …..97
12.2 Data Processing with Pipes ……99
12.3 Exploring the Stream API in Node.JS …..100
12.4 Implementing HTTP Compression …..101
12.5 Discussion: Refactoring to Stream …..106
12.6 Discussion: High Water Mark and Backpressure ….107
13.WebSocket & Concurrency 109
13.1 Establishing WebSockets ……109
13.2 WebSocket Protocol …….111
13.3 Introduction to Concurrent Programming ….113
13.4 Coding a Blocking Queue ……116
13.5 WebSocket Server …….119
13.6 Discussion: WebSocket in the Browser …..125
13.7 Conclusion: What We Have Learned …..126

Fikr-mulohazalar

Baho berilmagan.

“Build Your Own Web Server From Scratch in Node.JS: Learn network programming, HTTP, and WebSocket by coding a Web Server – James Smith&rdquo mahsulotiga birinchilardan bo'lib fikr bildiring;

Email manzilingiz chop etilmaydi. Majburiy bandlar * bilan belgilangan

O'xshash Kitoblar!

Bosh sahifa
E-kitoblar
0
Cart
Mening sahifam