、
Question one: Why is it also divided into server side and client side? Do you need to run the server file before you want to use the Swoole feature?
This is the feature of Swoole expansion?
Question two: Swoole application scenario:: A lot of people say swoole is suitable for chat room, why? Because asynchronous, multi-threaded? (FPM is a multi-process single-threaded bar?) )
Question three: To what extent can into the Swoole pit?
At present I belong to be able to skillfully apply lamp/lnmp (perennial under the development of Linux, so in Linux under the expansion, development what is still familiar with), NoSQL (MEMCACHED,REDIS,MANGODB), data structure +c some understanding of the dish chicken. Fit into the pit?
Question four: What is the connection between the Swoole framework and the Swoole expansion?
Reply content:
、
Question one: Why is it also divided into server side and client side? Do you need to run the server file before you want to use the Swoole feature?
This is the feature of Swoole expansion?
Question two: Swoole application scenario:: A lot of people say swoole is suitable for chat room, why? Because asynchronous, multi-threaded? (FPM is a multi-process single-threaded bar?) )
Question three: To what extent can into the Swoole pit?
At present I belong to be able to skillfully apply lamp/lnmp (perennial under the development of Linux, so in Linux under the expansion, development what is still familiar with), NoSQL (MEMCACHED,REDIS,MANGODB), data structure +c some understanding of the dish chicken. Fit into the pit?
Question four: What is the connection between the Swoole framework and the Swoole expansion?
Swoole
is PHP
a framework that is implemented on a basis that 网络通讯
does not Apache
work through or in Ngnix
this category Web服务器
, but is a self TCP/UDP
-fulfilling communication.
It is mainly aimed at the need for long-connected scenes, such as Web push, instant messaging system.
Swoole
is still a server program, the author of the main or implement its Server端
code. Client端
not commonly used, just for testing or for two PHP
programs to communicate.
Familiar with the PHP
Foundation can be very convenient to use Swoole
, it is only based on PHP
language operation, in addition to some mechanisms and common Web服务器
differences, there is no big difference.
There's a workman frame in the country. You can actually run a demo to see if you understand.
Problem one: Swoole's client is mainly used for testing! Using Swoole is generally an asynchronous task, and you will need to start Swoole to create the server first.
Problem two: In fact, support asynchronous TCP programming can be written chat room, if you learn Nodejs words to write chat room easier. Swoole supports both synchronous and asynchronous approaches, as well as multi-threading, which allows for better support on concurrency.
Problem three: PHP can go into the pit. It's true.
Question four: Do not want to fight this problem, the Swoole framework is an extension of the swoole extension, Swoole Framework relies on swoole extension.