Recently in learning Swoole, there are a few rookie questions to ask

Source: Internet
Author: User
Keywords Php c swoole

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?

Swooleis 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.
Swooleis 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.

  • 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.