Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Swoole contains modules


May 14, 2021 Swoole


Table of contents


swoole_server

Powerful TCP/UDP Server Framework, Multithreaded, EventLoop, EventLoop, Event Driver, Asynchronous, Worker Process Group, Task Asynchronous Task, Millisecond Timer, SSL/TLS Tunnel Encryption.

  • swoole_http_server is swoole_server class with built-in http support
  • swoole_websocket_server is swoole_http_server class with built-in WebSocket support

swoole_client

TCP/UDP client, supports synchronous and simultaneous calls, and also supports asynchronous event drivers.

swoole_event

The EventLoop API allows users to directly manipulate the underlying event loop and add Linux files such as sockets, streams, pipelines, etc. to the event loop.

The eventloop interface can only be used for socket-type file descriptors and cannot be used for disk file reads and writes

swoole_async

Asynchronous IO interface, provides asynchronous file system IO, asynchronous DNS query, asynchronous MySQL and other APIs. Includes 2 important sub-modules:

  • swoole_timer, asynchronous millisecond timers enable intervals or one-time timed tasks
  • file, an asynchronous interface for file system operation

swoole_process

Process management module, can easily create sub-processes, inter-process communication, process management.

swoole_buffer

Powerful memory area management tools, pointer calculations like C, without having to worry about memory applications and releases, and without worrying about memory oversleed, the underlying layer is all done.

swoole_table

Ultra-high-performance memory tables based on shared memory and spin locks. Complete solution to thread, inter-process data sharing, lock synchronization and other issues.

swoole_table can be up to 50W read and write per second per single thread