search
HomePHP FrameworkWorkermanWhat is the use of workerman?

What is the use of workerman?

Dec 05, 2019 am 10:38 AM
workerman

What is the use of workerman?

Workerman is an open source, high-performance PHP socket service framework developed purely in PHP. (Recommended study: workerman tutorial)

Workerman is not reinventing the wheel. It is not an MVC framework, but a lower-level and more general socket service framework. You You can use it to develop tcp agents, ladder agents, game servers, mail servers, 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.

Some application directions of Workerman are as follows:

1. Instant messaging such as web page instant chat, instant message push, WeChat applet, mobile app message push, PC software Message push, etc. [Examples workerman-chat chat room, web message push, tadpole chat room]

2. Internet of Things categories such as Workerman communicating with printers, communicating with microcontrollers, smart bracelets, smart homes, and sharing Bicycles and so on. [Customer cases such as Yilian Cloud, Yibo Times, etc.]

3. Game server categories such as chess and card games, MMORPG games, etc. [Example browserquest-php]

4. SOA service uses Workerman to encapsulate different functional units of existing business and provide a unified interface in the form of services to achieve system loose coupling, easy maintenance, high availability, Easy to stretch. [Example workerman-json-rpc, workerman-thrift]

5. Other server software such as GatewayWorker, PHPSocket.IO, http proxy, sock5 proxy, distributed communication component, distributed variable sharing component, message queue, DNS server, WebServer, CDN server, FTP server, etc.

6. Middleware such as asynchronous MySQL component, asynchronous redis component, asynchronous http component, asynchronous message queue component, asynchronous dns component, file monitoring component, and Many component frameworks developed by third parties, etc.

Obviously it is difficult for the traditional mvc framework to achieve the above functions, so that is why Workerman was born.

The above is the detailed content of What is the use of 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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

Atom editor mac version download

Atom editor mac version download

The most popular open source editor