Skip to content
docs.
WORKSPACE

Your documentation

Explore the project catalog
Localzet ServerАсинхронный PHP-сервер✓TriangleФреймворк и компонентыMIX IDИдентификация и интеграцииHack APIПубличные API хакатонаACNПроект и компонентыUserlay / UserNetПроект и компонентыAxiomПроект и компонентыМесседжинг через почтуПроект и компонентыLWT / JWT / JOSEПроект и компонентыФинансовая аналитика KimaiПроект и компонентыМультипарадигмальная БДПроект и компонентыZorin PlatformПроект и компонентыZorin TrustПроект и компонентыFloraScope / VegwatchПроект и компонентыaegis-qДокументация проектаaevumdbДокументация проектаauditДокументация проектаauto-invest-managerАвтотрейдерcaine-companionДокументация проектаcertbot-cloudflareДокументация проектаClusterLocalzet Server / ClustercmdveilДокументация проектаConsolePHP CLICronБиблиотеки Localzet Serverdata-connectorДокументация проектаdevice-controlDevice Controlenn-projectДокументация проектаEventsБиблиотеки Localzet ServerflowsintДокументация проектаforgeДокументация проектаHttpClientБиблиотеки Localzet ServerinterpreterСобственный языкinvariaДокументация проектаkeynotesДокументация проектаknotrouteKnotroutelaravel-personal-analyticsДокументация проектаlocalzet-osДокументация проектаmeridianДокументация проектаMQTTБиблиотеки Localzet Servernano-kernelСобственная ОСNoterДокументация проектаpersonal-analyticsДокументация проектаProxyБиблиотеки Localzet ServerPSRБиблиотеки Localzet ServerPSR-7Библиотеки Localzet Serverrschs-monitorДокументация проектаsemsealДокументация проектаshardsealДокументация проектаSocketIOБиблиотеки Localzet ServerSOCKS5Библиотеки Localzet Serverstandalone-analyticsДокументация проектаstatic-php-cliДокументация проектаStorageБиблиотеки Localzet ServersutureДокументация проектаtempoweaveДокументация проектаttsСинтез речиTunnelБиблиотеки Localzet Serverui-kitUI KitvesperДокументация проектаWebAnalyzerWebAnalyzerzorin-access-brokerДокументация проектаzorin-authority-brokerДокументация проектаzorin-authority-sdk-phpДокументация проектаzorin-authority-sdk-pythonДокументация проектаzorin-authority-sdk-tsДокументация проектаzorin-client-intelДокументация проектаzorin-device-core-aospДокументация проектаzorin-host-agentДокументация проектаzorin-native-labДокументация проектаzorin-nodeДокументация проектаzorin-opsДокументация проектаdonstu-python-sdkДокументация проектаfloortraceFloortraceserver-rsLocalzet Server / Cluster
Catalog
Documentation/Localzet Server

Event loops and supported backends

EventLoopFactory accepts auto, linux, select, windows, revolt/fiber, event, ev, swoole, swow or an EventInterface implementation class. An explicitly requested unavailable backend throws RuntimeException; it is not silently replaced.

Automatic selection on Unix is event → ev → Revolt/Fiber → Select. Windows selects its Windows loop. Auto selection does not enable Swoole/Swow coroutine hooks globally; those require explicit selection. This order is a capability preference, not measured performance ranking.

BackendRequired capability
SelectBuilt-in stream-based fallback
eventext-event and EventBase
evext-ev and Ev
Revolt/Fiberrevolt/event-loop package
Swooleext-swoole and Swoole Event
Swowext-swow and Swow Coroutine

There is no ext-uv backend in this factory. Installing uv does not select a supported backend and does not prove performance. Old libuv-first diagrams/recommendations have been retired.

Окно терминала
php server.php capabilities --json

Run through the same entry point and PHP configuration as the service. EventLoopFactory::capabilities() reports backend availability, while Server capabilities also cover runtime process/upgrade support. Availability does not prove production limits or a complete backend test matrix.

The loop owns readable/writable watchers, timers and supported signals. Register work and let it run; callbacks must return promptly. Blocking filesystem, HTTP or SQL remains blocking unless its implementation/runtime supplies async behavior. Timer::sleep only suspends with a suspension-capable backend in a supported context; the normal fallback uses usleep.

Use explicit lifetime ownership: remove watchers/timers and close resources when their owner ends. Test callback errors, cancellation, slow consumers and shutdown. See Timer and runnable recipes.

Ivan Zorin, creator@localzet.com. Copyright © 2026 Localzet Group. Guide AGPL-3.0-or-later; source licenses retained.