Question 1: why are there two types of clients? Do you need to run the server File before using the swoole function? This is the characteristic of swoole's expansion? Question 2: swoole Application Scenario: Many people say swoole is suitable for chatting rooms. Why? Is it asynchronous or multithreading...
,
Question 1: why are there Server and client? Do you need to run the server File before using the swoole function?
This is the characteristic of swoole's expansion?
Question 2: swoole Application Scenario: Many people say swoole is suitable for chatting rooms. Why? Is it asynchronous or multithreading? (Is FPM a multi-process, single thread ?)
Question 3: to what extent can swoole be entered?
Currently, I am proficient in LAMP/LNMP (developed in linux all the year round, so I am familiar with development and development in linux), nosql (memcached, redis, mangodb ), data Structure + C. Is it suitable for pitfall?
Question 4: What is the relationship between the swoole framework and swoole expansion?
Reply content:
,
Question 1: why are there Server and client? Do you need to run the server File before using the swoole function?
This is the characteristic of swoole's expansion?
Question 2: swoole Application Scenario: Many people say swoole is suitable for chatting rooms. Why? Is it asynchronous or multithreading? (Is FPM a multi-process, single thread ?)
Question 3: to what extent can swoole be entered?
Currently, I am proficient in LAMP/LNMP (developed in linux all the year round, so I am familiar with development and development in linux), nosql (memcached, redis, mangodb ), data Structure + C. Is it suitable for pitfall?
Question 4: What is the relationship between the swoole framework and swoole expansion?
Swoole
YesPHP
Based onNetwork Communication
Framework, which does not passApache
OrNgnix
SuchWeb Server
Complete the work on your own.TCP/UDP
Communication.
It mainly targets scenarios requiring persistent connections, such as webpage push and instant messaging systems.
Swoole
It is still a server program. The programmer mainly implements it.Server
.Client
Not commonly used, but mainly used for testing or requires twoPHP
Program for communication.
FamiliarPHP
Easy to useSwoole
, It is only based onPHP
Language running, in addition to some mechanisms and commonWeb Server
There is no big difference.
There is a workman framework in China. You can compare it with a demo to understand it.
Question 1: The swoole Client is mainly used for testing! Swoole is generally an asynchronous task. You must first start swoole to create a server.
Question 2: in fact, all TCP programming that supports asynchronous programming can be used to write chat rooms. If you learn NodeJS, it is easier to write chat rooms. Swoole supports both synchronous and asynchronous methods, and also supports multithreading, so that you can get better support for concurrency.
Question 3: PHP can be used in a pitfall. True.
Question 4: I don't want to solve this problem. The swoole framework is an extension of the swoole extension, and the swoole framework depends on the swoole extension.