Skip to content

Add distributed group state and member updates#31

Closed
VG-prog wants to merge 6 commits into
walkline:masterfrom
VG-prog:vg/tc9-groups
Closed

Add distributed group state and member updates#31
VG-prog wants to merge 6 commits into
walkline:masterfrom
VG-prog:vg/tc9-groups

Conversation

@VG-prog

@VG-prog VG-prog commented May 22, 2026

Copy link
Copy Markdown

Summary

This PR adds the ToCloud9 groupserver side of distributed group state.

The groupserver becomes responsible for clustered membership, realm-scoped identity, native LFG materialized groups, latest member-state caching, freshness checks, catch-up, receiver-aware fanout, and cleanup. Gateway can then render party and raid updates from group-scoped events without requiring worldserver tick-based fanout.

What changed

  • Added persistent crossrealm group identity support.
  • Added distributed group membership and native LFG materialized group registration.
  • Added latest member-state storage for HP, power, aura, online, map, zone, class, level, and freshness data.
  • Added stale update rejection and receiver-aware fanout suppression.
  • Added catch-up so newly interested receivers get current member state without waiting for the next full transition.
  • Added offline cleanup and group-state debug trace support.

Why this matters

Party and raid frames need timely remote state, but that state should not come from worldserver hot-loop polling. This PR lets gateway publish compact snapshots and lets groupserver decide who should receive them.

Validation

  • git diff --check origin/master..HEAD
  • env GOCACHE=/tmp/tc9-go-build GOFLAGS=-buildvcs=false go build ./...
  • env GOCACHE=/tmp/tc9-go-build GOFLAGS=-buildvcs=false make install

VG-prog added 6 commits May 22, 2026 21:49
Add the shared protobuf, generated runtime code, events, GUID helpers, auth identity helpers, and configuration contracts used by clustered gateway, registry, group, guild, matchmaking, and sidecar flows.

Tests, local tooling, and broad documentation are intentionally excluded from this upstream-focused scope.
Wire service discovery, map readiness, stale-safe health and metrics observers, degraded game-server health handling, gateway-scoped cleanup, and shared GUID allocation support.

Registry and health code now distinguish world-loop degraded state from process or transport death while preserving live map ownership.
Keep world-loop degraded game servers registered for ownership and existing lookups, but mark them as non-admitting so new player placement skips them. Clear the drain state on successful health recovery and fall back to healthy all-map nodes when an assigned owner is degraded.
Route gateway sessions through cluster-aware worldserver selection, native transport handoff, bounded retry/backoff, cross-service event listeners, and client-facing packet rendering for social, group, guild, guild bank, LFG, battleground, arena, mail, channel, and player-state flows.
Extend character, chat, and mail services for clustered realm identity, Real ID/account lookups, channel membership and moderation, crossrealm whisper policy, online-state broadcasts, and arena-team persistence used by gateway routing.
Add clustered group authority for realm-scoped membership, native LFG materialized groups, member-state freshness, latest-state catch-up, receiver-aware fanout, offline cleanup, debug tracing, and persistent group identity support.
@VG-prog

VG-prog commented May 22, 2026

Copy link
Copy Markdown
Author

Closing this draft because it was opened from a stacked branch while targeting master, so the GitHub diff includes earlier slices and is not an isolated review target.

Replacement: #37 (#37)

That replacement PR presents the current integration honestly as one review surface. Sorry for the review noise.

@VG-prog VG-prog closed this May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant