current location:Home > Technical Articles > PHP Framework > Swoole
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- How to use task process in swoole to handle time-consuming tasks?
- There are two major processes in swoole, namely the master process and the manager management process. There will be a main reactor thread and multiple reactor threads in the master main process. The main function is to maintain TCP connections, process network IO, and send and receive data.
- Swoole 2438 2020-01-27 21:49:59
-
- Summary of common problems with PHP Swoole long connections
- Among them, the common errors reported by Redis are: Redis can configure how many seconds have elapsed if the client does not send data to the Redis server, then the connection will be closed; the common errors reported by MySQL: Like the Redis server, MySQL will also clean it up regularly. Remove useless connections.
- Swoole 3217 2020-01-26 13:48:34
-
- php Swoole implements millisecond-level scheduled tasks
- During project development, if there are business requirements for scheduled tasks, we will use Linux's crontab to solve them, but its minimum granularity is minute level. If the required granularity is second level, or even millisecond level, crontab cannot meet it, which is fortunate. The most powerful millisecond timer provided by swoole.
- Swoole 4367 2020-01-25 19:14:16
-
- How to exit swoole
- How to exit swoole: Use the "Server->stop" method to exit, where the $waitEvent parameter can control the exit strategy. The default is false to exit immediately, and setting it to true means waiting for the event loop to be empty before exiting.
- Swoole 3047 2020-01-13 14:42:35
-
- How to compile and install swoole
- Method to compile and install swoole: 1. Use the "phpize" command to generate a compilation detection script. 2. Use the "./configure" command to do compilation configuration detection. 3. Use the "make" command to compile. 4. Use the "make install" command to install.
- Swoole 2497 2020-01-13 14:11:39
-
- How to uninstall swoole extension
- How to uninstall the swoole extension: 1. Delete extension=swoole.so in php.ini. 2. Switch to bin in the PHP installation directory, and then use the "./pecl uninstall swoole" command to uninstall the swoole extension.
- Swoole 5758 2020-01-13 13:50:47
-
- How to check if php has swoole installed
- How to check whether swoole is installed in PHP: Enter the "php --ri swoole" command on the command line. If the extended information of swoole is output, it means that your installation is successful.
- Swoole 3387 2020-01-15 10:25:24
-
- How to create a worker in swoole
- The worker/task processes in swoole are all created and managed by the Manager process using the Fork function. When the child process ends running, the manager process is responsible for recycling and creating a new process. The Master process is the main process, which creates the Manager process.
- Swoole 2667 2020-01-13 13:30:52
-
- How to use swoole to create mysql connection pool
- How to use swoole to create a mysql connection pool: 1. The connection pool can be implemented based on swoole's AsyncTask module. It is easy to program and has no data synchronization and locking issues. 2. Use channel to implement connection pool.
- Swoole 2772 2020-01-09 16:07:21
-
- How to connect swoole to the database
- In swoole, you can use the "function swoole_mysql->connect(array $serverConfig, callable $callback);" function to asynchronously connect to the MySQL server.
- Swoole 3174 2020-01-09 15:53:17
-
- How to check swoole version
- How to check the swoole version: 1. Use the "php --ri swoole" command to check the current swoole version. 2. Use phpinfo() to check the current swoole version.
- Swoole 3661 2020-01-09 15:22:20
-
- What threads does swoole have?
- Threads in swoole: 1. MainReactor (main thread), responsible for monitoring the server socket. 2. The Reactor thread group is responsible for maintaining the TCP connection of the client machine, processing network IO, and sending and receiving data in a completely asynchronous and non-blocking mode. 3. Heartbeat packet detection thread. 4. UDP packet receiving thread.
- Swoole 2037 2019-12-30 09:54:10
-
- How to check swoole version
- Check the swoole version command: php --ri swoole. A strict version update record has been established since swoole version 1.5. The current average iteration time is one major version every six months and one minor version every 2-4 weeks.
- Swoole 3986 2019-12-28 10:54:13
-
- Should I learn swoole or golang?
- Learn swoole. Swoole uses PHP language, a dynamic scripting language, which has the best development efficiency and is more suitable for the development of application software. Go's processing of IO events is single-threaded and cannot utilize multiple cores, and its throughput is slightly weaker than swoole.
- Swoole 3178 2019-12-28 10:42:47
-
- What open source projects does swoole have?
- Swoole's open source projects include Hyperf, Swoft, EasySwoole, MixPHP, and Swoolefy. Hyperf is a high-performance, highly flexible PHP coroutine framework based on Swoole 4.4+.
- Swoole 4009 2019-12-28 10:15:41