Home  >  Article  >  PHP Framework  >  What is Workerman?

What is Workerman?

(*-*)浩
(*-*)浩Original
2019-11-22 14:59:284830browse

The following column workerman Getting Started Tutorial will introduce to you what Workerman is. I hope it will be helpful to friends in need!

What is Workerman?

workerman is a high-performance PHP socket server framework. Workerman is based on PHP multi-process and libevent event polling library. PHP developers only need to implement one With two interfaces, you can develop your own network applications.

Workerman's goal is to make it easier for PHP developers to develop high-performance socket-based application services without having to understand the details of PHP sockets and PHP multi-processes.

workerman itself is a PHP multi-process server framework with modules for PHP process management and socket communication, so it can run independently without relying on containers such as php-fpm, nginx or apache.

Workerman is not reinventing the wheel. It is not an MVC framework, but a lower-level and more general socket service framework. You can use it to develop tcp agents, ladder agents, game servers, mail servers, and ftp servers. , and even develop a PHP version of redis, PHP version of database, PHP version of nginx, PHP version of php-fpm, etc.

Workerman can be said to be an innovation in the field of PHP, allowing developers to completely get rid of the constraints of PHP only being able to do WEB.

In fact, Workerman is similar to a PHP version of nginx, and the core is also multi-process Epoll non-blocking IO.

Workerman can maintain tens of thousands of concurrent connections per process. Because it resides in memory, it does not rely on containers such as Apache, nginx, and php-fpm, and has ultra-high performance.

Supports TCP, UDP, UNIXSOCKET, long connections, Websocket, HTTP, WSS, HTTPS and other communication protocols as well as various custom protocols.

It has many high-performance components such as timers, asynchronous socket clients, asynchronous Mysql, asynchronous Redis, asynchronous Http, and asynchronous message queues.

For more Workerman related technical articles, please visit the Workerman Tutorial column to learn!

The above is the detailed content of What is Workerman?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn