# SwooleDistributed/SwooleDistributed

swoole 分布式全栈框架

Repository: https://github.com/SwooleDistributed/SwooleDistributed
Canonical: https://ross.abutalabs.com/products/swooledistributed
Language: PHP
License: Apache-2.0
License Family: permissive
Last push: 2022-08-12T03:15:48+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3696, "days_push": 1482, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1371, forks 252 (observed 2026-08-28T04:04:32.146906+00:00)

## What it is
SwooleDistributed (SD) is a full-stack distributed application server framework built on the PHP Swoole extension. It combines mixed-protocol servers (TCP, WebSocket, HTTP, UDP), coroutines, connection pools, clustering, and microservice features in a single MVC framework.

## Use cases
- build a high-performance realtime server with websocket and tcp in php
- deploy a clustered php application server without a single point of failure
- implement microservices with service discovery and circuit breaking in php
- push messages from http to long-connected websocket clients
- run distributed scheduled tasks across a server cluster
- integrate rabbitmq or mqtt into an async php backend
- replace callback-heavy async php code with coroutine-style synchronous syntax

## When to choose
- you need a long-running, high-concurrency PHP server beyond the PHP-FPM request/response model
- you want mixed protocols (TCP/WebSocket/HTTP/UDP) sharing one codebase
- you need cluster deployment, pub/sub, and microservice features in PHP

## When to avoid
- you are building a simple CRUD web app better served by a traditional PHP-FPM framework like Laravel or Symfony
- your team is unfamiliar with Swoole's event-driven, coroutine-based runtime and cannot afford the learning curve
- you need a framework with recent active development and broad community support

## Facets
- artifact type: framework
- maturity: maintenance
- function: web-framework, websocket, http-server, rpc, middleware, routing, message-queue, concurrency, microservices, scheduling, caching
- domain: web-development, backend, microservices, apis
- platform: php, self-hosted
- tags: swoole, distributed, coroutines, async, object-pool, mqtt, amqp, cluster, pub-sub, connection-pool, chinese, messaging, real-time, linux, web-server

## Member repositories
- SwooleDistributed/SwooleDistributed (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:32.146906+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:40:48.843027+00:00, confidence not recorded.
  - readme: https://github.com/SwooleDistributed/SwooleDistributed (fetched 2026-08-28T04:04:32.146906+00:00, sha 8c53c41b3a85)
- Data as of 2026-08-30T08:39:29.467469+00:00.
