Home  >  Article  >  PHP Framework  >  How many connections does workerman support?

How many connections does workerman support?

(*-*)浩
(*-*)浩Original
2019-12-02 09:53:203465browse

Workerman is an open source high-performance asynchronous PHP socket instant messaging framework. Supports high concurrency and ultra-high stability, and is widely used in mobile apps, mobile communications, WeChat applets, mobile game servers, online games, PHP chat rooms, hardware communications, smart homes, Internet of Vehicles, Internet of Things and other fields. development.

How many connections does workerman support?

Supports TCP long connections, supports Websocket, HTTP and other protocols, and supports custom protocols. It has many high-performance components such as asynchronous Mysql, asynchronous Redis, asynchronous Http, MQTT IoT client, asynchronous message queue, etc. (Recommended study: workerman tutorial)

Based on the high-performance Epoll event network library, a single machine can support millions of concurrent connections, and the long-term connection throughput is as high as 36W/S. Objects such as PHP databases can reside in memory, reducing parsing, compilation and network overhead.

Its high availability has been confirmed by many companies, including e-commerce companies with a daily turnover of over 100 million for the development of server backends, and well-known online game companies for the development of game backends.

The interface is simple, and there are already many mature network applications. As long as you know PHP, you can quickly develop your own Socket application services based on these applications.

For windows, currently workerman(php) supports up to 255 connections.

For Linux, there is no limit to the number of Workerman connections in theory. It can be tens of thousands, hundreds of thousands or even millions, but the prerequisite is:

【1】The server must have enough memory.

【2】The event extension must be installed.

【3】Linux kernel must be optimized according to the official manual

The above is the detailed content of How many connections does workerman support?. 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