{"full_name":"dobyte/due","owner":"dobyte","name":"due","shard":"1","url":"https://github.com/dobyte/due","description":"A High-Performance Distributed Game Server Framework in Go","homepage":"https://dobyte.github.io/due-docs/","topics":["distributed-game-framework","distributed-systems","game-framework","game-server","go","go-framework","distributed-framework","game","game-engine","grpc","due","actor","actor-framework","tcp","websocket"],"tag_pages":["actor","distributed-systems","game","game-engine","game-server","go","grpc","tcp","websocket"],"language":"Go","license":"MIT","avatar":"https://avatars.githubusercontent.com/u/42379346?u=a8970e393f7c5842ce4906dbf886b1a713501341&v=4","created_at":"2022-08-26T06:05:04Z","pushed_at":"2026-11-16T09:02:13Z","metrics":{"stars":990,"forks":177,"watchers":23,"issues":71,"prs":20,"releases":60,"issues_open":21,"issues_closed":50,"prs_open":1,"prs_closed":15,"prs_merged":4,"discussions":0},"growth":{"day":{"stars":0,"forks":0,"base_day":"2026-11-15"}},"history":{"dates":["2026-11-15","2026-11-16"],"stars":[990,990],"forks":[177,177],"watchers":[null,23],"issues_open":[null,21],"prs_open":[null,1]},"boards":{"daily_watchers":7,"debut":89},"same_owner":[],"issues":[{"number":4,"title":"讨论组","comments":9,"created_at":"2023-02-03T16:45:56Z"},{"number":55,"title":"请教下 是否支持自定义codec.","comments":5,"created_at":"2025-08-21T05:53:36Z"},{"number":93,"title":"grpc 地址未回填","comments":3,"created_at":"2026-10-22T08:53:15Z"},{"number":35,"title":"你好，请教一个问题，这个框架写逻辑用map都要加锁吗","comments":3,"created_at":"2025-03-25T11:41:42Z"},{"number":72,"title":"希望网关能加入限流功能","comments":2,"created_at":"2026-01-07T13:29:19Z"},{"number":68,"title":"新手学习，项目是否要用bitnami/etcd,似乎镜像拉不到了。该怎么办","comments":2,"created_at":"2025-10-25T08:56:22Z"},{"number":51,"title":"能不能增加一个  proto 数据协议的demo呢","comments":2,"created_at":"2025-08-03T14:54:03Z"},{"number":92,"title":"希望actor可以做成组件化，供业务使用。","comments":1,"created_at":"2026-10-18T04:10:28Z"}],"discussions":[],"latest_release":{"name":"v2.6.7","tag":"v2.6.7","published_at":"2026-11-09T05:56:23Z","body":"# v2.6.7\n\n## New Modules\n\n- **limiter**: Introduce the `Maker`/`Limiter` abstraction with rule normalization, result metadata, a global maker and configurable failure policies, so rate limiting can be shared across backends. ([commit](https://github.com/dobyte/due/commit/6c1e2a06))\n- **limiter/memory**: Add a sharded in-process token bucket backend with expired-bucket eviction, bucket pooling and lifecycle management. ([commit](https://github.com/dobyte/due/commit/6c1e2a06))\n- **limiter/redis**: Add a standalone Redis backend that evaluates an atomic Lua token bucket against server time, refreshes key TTLs and supports a configurable timeout with fail-open or fail-closed behavior. ([commit](https://github.com/dobyte/due/commit/6c1e2a06))\n- **core/limiter**: Expose `Take` to report remaining tokens and the retry delay while preserving the existing `Allow` behavior. ([commit](https://github.com/dobyte/due/commit/6c1e2a06))\n\n## New Features\n\n- **cluster/gate**: Add per-connection rate limiting via `cluster.gate.limiter` (`quota`, `period`, `burst`, `closeThreshold`); connections are closed after exceeding the consecutive rejection threshold. ([commit](https://github.com/dobyte/due/commit/60bc77fc))\n- **cluster/gate**: Add a sharded per-IP admission guard via `cluster.gate.guard` that enforces concurrent connection limits, admission rates, whitelist bypass and temporary bans with escalating durations; bans close tracked connections, the entry table is bounded with fail-open behavior, and message limiter strikes feed the ban counters. ([commit](https://github.com/dobyte/due/commit/e0c8bdcf))\n- **network/tcp**, **network/ws**, **network/kcp**, **network/quic**: Support IPv6 dual-stack listeners: `:port` and `[::]:port` accept IPv4 and IPv6 clients, while `0.0.0.0:port` stays IPv4-only; kcp and quic create the UDP packet connection with the selected network and close it on shutdown. ([commit](https://github.com/dobyte/due/commit/530dd99e))\n- **utils/xnet**: Add `IP2Bytes` and `Bytes2IP` for 16-byte IPv4-mapped and IPv6 addresses, keeping `IP2Long` and `Long2IP` on their existing uint32 IPv4 form. ([commit](https://github.com/dobyte/due/commit/530dd99e))\n- **internal/transporter**: Negotiate the GetIP response format: a legacy request keeps the original 4-byte IPv4 payload, while an IPv6 address makes an updated client retry with an extended request for a 16-byte payload, so pre-upgrade peers never receive a payload their decoder rejects. ([commit](https://github.com/dobyte/due/commit/530dd99e))\n- **config/nacos**: Support Nacos 3.x admin authentication through the v3 login endpoint, with token caching, one refresh after an auth rejection, throttled forced re-logins and an actionable credentials-required error when anonymous access is denied and no account is configured. ([commit](https://github.com/dobyte/due/commit/7f117248))\n- **config/nacos**: Export all configurations as a ZIP on the first full load and reuse cached content for unchanged items, invalidating a dataId cache entry when a change is pushed. ([commit](https://github.com/dobyte/due/commit/7f117248))\n- **config/nacos**: List configurations through the Nacos v3 admin API so periodic searches receive metadata without the content of every configuration, falling back to the wrapped client when the endpoint is unavailable or not permitted, and reuse returned content during `Load` unless KMS decryption is enabled. ([commit](https://github.com/dobyte/due/commit/deca1ee0))\n- **cluster/node**: Accept an empty request payload as an empty message instead of rejecting it. ([commit](https://github.com/dobyte/due/commit/c061b84d))\n\n## Fixes\n\n- **cluster/gate**: Harden connection close semantics and gate event ordering, close gate clients during shutdown, serialize registry refresh and stale binding cleanup, and bound stale cleanup. ([commit](https://github.com/dobyte/due/commit/8aedd624)) ([commit](https://github.com/dobyte/due/commit/8b729c7d)) ([commit](https://github.com/dobyte/due","is_prerelease":false},"readme":true,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}