Mastering Swoole PHP: Build High Performance Concurrent System with Async and Coroutines
Language: English
Published by Transfon Ltd, 2020
- Softcover
- Used

Seller: Mispah books, Redhill, Surrey, United KingdomMispah books
AbeBooks seller since April 15, 2021
Condition: Used - Very good
£ 95.00
Quantity: 1 available
Add to basketItem description from seller
Very Good. Dust Jacket may NOT BE INCLUDED.CDs may be missing. SHIPS FROM MULTIPLE LOCATIONS.
Seller Inventory # ERICA82918381344096
- Title
- Mastering Swoole PHP: Build High Performance Concurrent System with Async and Coroutines
- Author
- Dou, Bruce
- Publisher
- Transfon Ltd
- Publication year
- 2020
- Condition
- Very Good
- Dust jacket
- Dust Jacket Included
- Book Type
- book
- Binding
- paperback
- Language
- English
- ISBN 10
- 1838134409
- ISBN 13
- 9781838134402
Introduction
Introducing a new execution model of PHP applications, how Swoole PHP works and the pitfalls of new developers coming into the Swoole PHP world.
This book is also about the general concepts behind building a high concurrency and high-performance web system and how these concepts are implemented in Swoole PHP and how advanced PHP works.
This book provides just enough Linux OS kernel knowledges with code samples helping you understand how async I/O, concurrency and coroutine works.
When start learning or using a new framework, people always carry some assumption coming from the previous experience. Some of these experiences are helpful to understand the new system, but some of these experiences may lead to the misunderstanding of the new system. This book introduces the pitfalls to avoid if you are an experienced PHP developer.
This book is for the developers who have already know the basics about how a web system works such as PHP web application or application in the other programming languages such as Node.js, Golang or Java.
After reading this book, you should be able to build a high concurrent Swoole PHP system with confidence.
Reviews from experts
"Swoole is a strategic development in the evolution of PHP, bringing high performance async-IO based apps to the mainstream of the platform. This book is everything you need to unlock that power of your new async-PHP apps!" - Zeev Suraski, co-founder and CTO of Zend Technologies.
"Swoole is a tremendous technology and a game changer for PHP developers. I started to play with it in 2017 and I created the first runtime for Expressive framework. The results have been incredible, huge performance improvement without using a web server, amazing! If you want to design asynchronous applications in PHP the book of Bruce Dou is a must." - Enrico Zimuel, Principal Software Engineer at Elastic
Table of contents
- Stateless PHP-FPM
- Performance problem
- Concurrency problem
- PHP CLI
- Executor and execution containers
- Lifecycle
- Decoupling and layers
- Queue, Buffer, Buffering and Batching
- Pipe and Channel
- Context, stack and context switch
- Singleplex vs multiplexing
- Asynchronous
- State, stateless, stateful and pooling
- File descriptor, I/O stream
- Exceptions
- Protocol
- Concurrency and I/O model
- Event driven and callbacks
- Facts, costs and limitation
- Rate limiting & Concurrency Limiting
- User mode and kernel mode
- Memory management
- Process, Thread and Coroutine
- Socket and Networking I/O
- Blocking IO and Non-blocking IO
- Callbacks, await async vs coroutines
- TCP/UDP Protocol
- HTTP Protocol
- Websocket Protocol
- HTTP2 Protocol and GRPC
- Custom protocol
- Swoole PHP extension
- Variable and states
- Event loop and asynchronous I/O
- Swoole PHP Coroutine
- Multiple execution modes
- Swoole Server
- Swoole Server Workers
- Swoole Process
- Swoole Clients
- Swoole Table
- Swoole Timer
- Swoole Coroutine and Channel
- HTTP services
- Data processing
- HTTP and PHP-FPM proxy
- Sidecar process
- TCP service
- WebSocket Server
- Task Scheduler
- Producer and Consumer
- M:N concurrency mapping
- Connection polling
- Web spider and scraper
- PUBSUB system
- Server-sent events (SSE)
- Integrate with Linux process
- Service Governance: RPC and gRPC
"Synopsis" may belong to another edition of this title.
Mispah books
Redhill, Surrey, United Kingdom
AbeBooks seller since April 15, 2021
Shipping rates from United Kingdom to U.S.A.
| Item | 14 to 15 business days | 9 to 10 business days |
|---|---|---|
| First item | £ 25.00 | £ 27.00 |
Payment methods
Store description
We have collection of General books ,Science Books, Fiction & Academic Books. we ship from multiple location. Delhi, US and UK Return Address Mispah books flat4 , Centenary court, 30 Warwick Road Redhill , SURRE RH1 1FQ United Kingdom
Specialty
Fiction & Academic Books, Science, GeneralSeller's business information
Mispah books
United Kingdom
Terms of sale
We offer excellent customer service & easy return facility.
we ship from Multiple location,UK,India,US
Return address:
Mispah books
flat4 ,
Centenary court, 30 Warwick Road
Redhill , SURRE RH1 1FQ
United Kingdom
Right of withdrawal
If you are a consumer you can withdraw from the contract in accordance with the following. Consumer means any natural person who is acting for purposes which are outside his trade, business, craft or profession.
Information regarding the right of withdrawal
Statutory right to withdraw
You have the right to withdraw from this contract within 14 days without giving any reason.
The withdrawal period will expire after 14 days from the day on which you acquire, or a third party other than the carrier and indicated by you acquires, physical possession of the last good or the last lot or piece.
To exercise the right of withdrawal, electronically fill in and submit a clear statement on our website, under "My Purchases" in "My Account". We will communicate to you an acknowledgement of receipt of such a withdrawal on a durable medium (e.g. by e-mail) without delay.
To meet the withdrawal deadline, it is sufficient for you to send your communication concerning your exercise of the right of withdrawal before the withdrawal period has expired.
Effects of withdrawal
If you withdraw from this contract, we will reimburse to you all payments received from you, including the costs of delivery (except for the supplementary costs arising if you chose a type of delivery other than the least expensive type of standard delivery offered by us).
We may make a deduction from the reimbursement for loss in value of any goods supplied, if the loss is the result of unnecessary handling by you.
We will make the reimbursement without undue delay, and not later than 14 days after the day on which we are informed about your decision to withdraw from this contract.
We will make the reimbursement using the same means of payment as you used for the initial transaction, unless you have expressly agreed otherwise; in any event, you will not incur any fees as a result of such reimbursement.
We may withhold reimbursement until we have received the goods back, or you have supplied evidence of having sent back the goods, whichever is the earliest.
You shall send back the goods or hand them over to Mispah books, Redhill, Surrey, United Kingdom, without undue delay and in any event not later than 14 days from the day on which you communicate your withdrawal from this contract to us. The deadline is met if you send back the goods before the period of 14 days has expired. You will have to bear the direct cost of returning the goods. You are only liable for any diminished value of the goods resulting from the handling other than what is necessary to establish the nature, characteristics and functioning of the goods.
Exceptions to the right of withdrawal
The right of withdrawal does not apply to:
- The delivery of newspapers, journals or magazines with the exception of subscription contracts; and
- The supply of digital content which is not supplied on a tangible medium (e.g. on a CD or DVD) if you accepted when you placed your order that we could start to deliver it, and that you could not withdraw once delivery had started.