Basic Preparation

Before using swoft , you need to have some basic theory of server programming, in the traditional php-fpm development mode you basically do not need to worry, resource release, sharing variables and other related issues.

But you don't have to worry. In the 2.x version, you can be php-fpm as simple as the mode development, and if you have Laravel used it, it will be faster because it is DataBase basically consistent with the Redis Laravel use.

Getting Started Tips

In Swoole resident memory development mode, do not share data with hyper-global variables, you can use Context instead, do not use curl extensions, of course, the guzzlehttp bottom layer is also curl driven, curl do not support collaboration, for specific reasons you can refer to swool E Official Documentation

You can use your swoft own with httpClient the guzzlehttp same convenience and speed, but also native support concurrent calls. You don't have to worry anymore, because a http request takes too long, causing the server to go CPU crazy.

However, in the next swoole will support the curl extension, I believe it will not wait too long.

Of course, there are a lot of details in the document are carefully described, in this is not a description.

/docs/2.x/en/ready/index.html
progress-bar