googleforgames / googleforgames/open-match

How to communicate Assignments result to the Game Frontend

Open
#1,353 1 comment 3 reactions 0 assignees View on GitHub
area/feature
Dominant language
Go
Stars
3.4k
Forks
359
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

I find below descrition "Under production environment, polling each Ticket for Assignment is not recommended. We recommend using event handlers/listeners to communicate Assignments result to the Game Frontend." in https://open-match.dev/site/docs/tutorials/matchmaker101/frontend/.

Is there plan to support a notifiction/event handlers/listeners mechanism in Open Match to communicate Assignments result to the Game Frontend instead of polling tickets? Or is this expected to be implemented by game logic?

Another related question is whether game logic should still call AssignTickets to Open Match Backend to trigger the logic to delete those assigned tickets even the Game Frontend no longer polls those tickets to get Assignments?

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

It will be great that Open Match can provide an official notifiction/event handlers/listeners mechanism to notify Game Frontend when Assignments happens, so that Game Frontend does not need to poll ticket to get related information for performance reason.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

If Open Match has no plan to provide an official notifiction/event handlers/listeners mechanism to notify Game Frontend, do you feel using notification from redis (https://redis.io/topics/notifications) a good way to implement this? My concern is that Redis is an implementation details of Open Match. I am not sure whether game logic should use it directly, which bypasses Open Match.

It also relates to another Feature Issue I raised before: https://github.com/googleforgames/open-match/issues/1312. Should we get the information from Redis if Open Match has no plan to support the new API?

**Additional context**
Add any other context or screenshots about the feature request here.

Contributor guide

Open the contributing guide

Research direction

Start by reading the Matchmaker 101 frontend tutorial section referenced in the issue and the related issue #1312. Determine whether assignment notifications should be an Open Match API, game-logic responsibility, or Redis-based integration, and clarify how AssignTickets should be used when the frontend does not poll tickets; done requires a decided mechanism and documented behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
redis
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.