Nginx Lua in Action
Tags
Summary
Editor's review
Who it's for
A good fit for
- 已会写 Nginx 配置、想用 Lua 扩展业务逻辑的后端开发者
- 负责 OpenResty 或网关、接入层开发与维护的工程师
- 需要快速查阅 ngx_lua 配置指令与 API 的运维与研发人员
- 有 C++、Java 等语言基础,想系统补齐 Nginx + Lua 技能栈的转型者
Not a good fit for
- 希望深入 Nginx 源码、事件模型底层实现的高级读者
- 零编程经验、尚不了解 HTTP 与 Linux 基本操作的纯新手
Reading tips
- 把第 27、28 章当工具手册,其余章节按“基础—Lua—机制—实战”顺序通读一遍即可建立地图。
- 边读边搭一台虚拟机或容器,按书中步骤装 Nginx、Redis、MySQL,把示例代码逐条跑通。
- 重点吃透第 10 章的处理阶段划分,理解 content_by_lua 等指令分别挂在请求生命周期的哪个环节。
- 读完 TCP 与 WebSocket 两个实例后,用同样的结构改写一个自己的小服务,比重复抄代码更有收获。
About the publisher
In addition to science and technology and professional publishing, the books in our catalog from China Machine Press also reflect a sustained focus on psychology, computing, management, finance and economics, and social sciences. In psychology, the catalog includes works by C. G. Jung and introductions to analytical psychology, as well as applied topics such as stress and health, and addiction and healing. In computing, it features Structure and Interpretation of Computer Programs (JavaScript Edition). Management and finance titles include Administrative Behavior (4th Edition), The Price of Inequality (Collector's Edition), and This Time Is Different: Eight Centuries of Financial Folly (Commemorative Edition). In the philosophy and history of science, there is The Worldview: The Third Edition. Relevant authors include C. G. Jung, William McGuire, Sonu Shamdasani, and Gabor Maté. Public information is limited; the above summarizes the publisher's profile based solely on the books in our catalog.
Contents
- Preface
- Part One: Nginx Operations Fundamentals
- Chapter 1: Nginx as an Efficient Server
- Chapter 2: Basic Database Operations
- Chapter 3: OpenResty
- Chapter 4: Nginx Core Technologies
- Chapter 5: How Nginx Works
- Part Two: The Lua Scripting Language
- Chapter 6: Lua Tutorial
- Chapter 7: Lua Standard Libraries
- Part Three: Nginx Development Techniques
- Chapter 8: JSON Data Interchange Format
- Chapter 9: Configuring the nginx.conf File
- Chapter 10: Lua Implementation Mechanisms Under Nginx
- Part Four: Nginx Lua Development in Practice
- Chapter 11: Redis Operations
- Chapter 12: MySQL Operations
- Chapter 13: Memcached Operations
- Chapter 14: PostgreSQL Operations
- Chapter 15: MongoDB Operations
- Chapter 16: Using the bit Library
- Chapter 17: Using the lfs Library
- Chapter 18: Using the resty.http Library
- Chapter 19: Using the lcurl Library
- Chapter 20: Extending C Libraries with FFI
- Chapter 21: Using the cjson Library
- Chapter 22: Using the lua-resty-template Class
- Chapter 23: Using WebSocket
- Chapter 24: A Private TCP Server Example
- Chapter 25: Building a WebSocket Access Server in Practice
- Chapter 26: A Brief Overview of Nginx Applications
- Part Five: Development Reference
- Chapter 27: A Detailed Guide to ngx_lua_module Configuration Directives
- Chapter 28: A Detailed Guide to the ngx_lua API
FAQ
这本书是讲 OpenResty 还是原生 Nginx?
零基础能直接读吗?
第 27、28 章的内容和官方文档有何不同?
书中的示例代码能直接用于生产环境吗?
作者的背景可信吗?
Comments
Find this book
This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.