I am studying swoole recently. I have a few questions about cainiao.

Source: Internet
Author: User
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?

SwooleYesPHPBased onNetwork CommunicationFramework, which does not passApacheOrNgnixSuchWeb ServerComplete the work on your own.TCP/UDPCommunication.
It mainly targets scenarios requiring persistent connections, such as webpage push and instant messaging systems.
SwooleIt is still a server program. The programmer mainly implements it.Server.ClientNot commonly used, but mainly used for testing or requires twoPHPProgram for communication.
FamiliarPHPEasy to useSwoole, It is only based onPHPLanguage running, in addition to some mechanisms and commonWeb ServerThere 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.