{"data":{"slug":"discovered-5a105051fa2f1a1ba61498b9c5bd52edf75142a1eff22847","title":"Roblox Cross Server Matchmaking Coordination","summary":"Coordinate matchmaking ownership and active match state across Roblox servers using expiring MemoryStore records, fencing tokens, and best-effort messaging.","url":"https:\/\/skillshunter.net\/skills\/discovered-5a105051fa2f1a1ba61498b9c5bd52edf75142a1eff22847","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-5a105051fa2f1a1ba61498b9c5bd52edf75142a1eff22847","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-5a105051fa2f1a1ba61498b9c5bd52edf75142a1eff22847.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-5a105051fa2f1a1ba61498b9c5bd52edf75142a1eff22847\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Implement periodic reconciliation\/polling to handle dropped notifications and ensure no party or match is stranded. Use versioned event types and opaque references in MessagingService messages, avoiding credentials or personal data.","instructions":"---\nname: roblox-cross-server-matchmaking-coordination\ndescription: Coordinate matchmaking ownership and active match state across Roblox servers using expiring MemoryStore records, fencing tokens, and best-effort messaging.\n---\n\n# Cross-server matchmaking coordination\n\n## Goal\nCoordinate queue workers, match assignment, lobby handoff, and match server ownership without assuming that one Roblox server can see another server's memory or that message delivery is guaranteed.\n\n## Select the right service\n- Use `MemoryStoreService` data structures for temporary state shared across live servers, such as queue entries, active match assignments, short-lived party reservations, and lease records.\n- Use `DataStoreService` for durable player progression and records that must survive MemoryStore expiration or server shutdown.\n- Use `MessagingService` for best-effort notifications, cache invalidation hints, or wake-up signals. A message is not an authoritative state transition and must not be the only record that an assignment happened.\n- Use `TeleportService` for player movement, driven by a server-owned assignment that the destination revalidates.\n\n## Lease and fencing contract\nA shared assignment\/worker record should carry an opaque assignment ID, queue ticket IDs, match ID, owning `game.JobId`, creation\/update timestamps, an expiry, a monotonically increasing version, and a fencing token or generation. Do not store secrets or full player profiles in a broadly shared coordination payload.\n\n1. Create or claim the record with an atomic update that checks the expected prior version\/state.\n2. Renew only if both owner server ID and fencing token still match.\n3. Advance the generation\/version when ownership changes. Stale workers must be unable to mutate a newer assignment.\n4. Set a TTL longer than the lease and include a recovery margin. Expiration is expected; design cleanup\/reconciliation for records that disappear.\n5. Treat unknown write outcomes as unknown. Read back by stable key and reconcile before retrying.\n6. Make every transition idempotent using match\/ticket IDs and expected version.\n\n## Messaging rules\n- Subscribe\/publish with `MessagingService` only as a signal to re-read authoritative MemoryStore state.\n- Expect best-effort delivery, duplicates, delayed delivery, or missing notifications. Do not use a publish success as proof the target server acted.\n- Keep messages small and privacy-minimal. Include a versioned event type and opaque reference, not credentials or personal data.\n- Implement periodic reconciliation\/polling so a dropped notification does not strand a party or match.\n\n## Concurrency and cleanup\n- Ensure a ticket cannot be claimed by two matchmakers, a player cannot be in two active matches, and one party cannot be assigned to two destinations.\n- Claim assignment first, then mark\/remove the queue ticket according to the queue acknowledgment protocol.\n- Use fencing\/version checks on renewals, completion, cancellation, and cleanup so an old worker cannot delete a newer record.\n- Use bounded retries and exponential backoff with jitter around transient MemoryStore\/MessagingService errors. Avoid hot retry loops.\n- Keep TTLs bounded and observable. Periodically reconcile orphan assignments, expired leases, partially teleported parties, and tickets whose owner server no longer exists.\n- Define shutdown behavior: stop intake, finish or release in-flight work safely, and let leases expire if ownership cannot be proven.\n\n## Required deliverables\n- Data ownership diagram listing MemoryStore, DataStore, MessagingService, and TeleportService responsibilities.\n- Active assignment record schema, version\/fencing rules, and TTL\/lease policy.\n- Idempotent transition table for queued, claimed, assigned, teleporting, in-match, completed, and recovery states.\n- Reconciliation strategy that does not rely on MessagingService delivery.\n- Failure tests for worker crash, lease expiry, duplicate notification, missing notification, concurrent claim, stale cleanup, and unknown MemoryStore write outcome.\n\n## Non-negotiable safeguards\n- MessagingService is not a database, lock, or guaranteed-delivery queue.\n- MemoryStore data is ephemeral and must not contain the only copy of durable progression.\n- Server ownership is checked through server-issued IDs and fencing\/version tokens, never a client claim.\n- Expired records are handled deliberately; do not treat expiry as evidence that a player has no durable entitlement.\n","use_cases":["Coordinate queue workers and match assignments across multiple Roblox servers","Implement lease and fencing contracts for shared assignment records","Design idempotent transitions for queued, claimed, assigned, and completed states","Ensure reconciliation and cleanup of orphaned assignments and expired leases"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/Aziz24666\/Codex_Roblox_skills\/blob\/eb2be117f63d6442c0f9b6d9d38bbdd7adf9374c\/v41\/skills\/roblox-cross-server-matchmaking-coordination\/SKILL.md","source_commit":"eb2be117f63d6442c0f9b6d9d38bbdd7adf9374c","license":null,"version":null,"listing_approved_at":"2026-11-30","created_at":"2026-11-29T11:08:40.000000Z","updated_at":"2026-11-30T06:52:12.000000Z","seo_title":"Roblox Cross Server Matchmaking Coordination","seo_description":"Coordinate matchmaking ownership and active match state across Roblox servers using expiring MemoryStore records, fencing tokens, and best-effort messaging.","seo_keywords":["Roblox matchmaking","cross-server coordination","MemoryStoreService","fencing tokens","best-effort messaging","lease management","idempotent transitions"]}}