Can matchmaking event notifications of type PotentialMatchCreated and AcceptMatchCompleted be sent after those of type MatchmakingSucceeded?

0

A while ago, I made a Lambda function that subscribed to a SNS topic for GameLift event notifications. The lambda function would store relevant information into DynamoDb. There was one incident where an event of type MatchmakingSucceeded came before an event of type PotentialMatchCreated. There was no player acceptance in this case, so I assumed that perhaps because the the actual match was made so quickly that the events came out of order? This is pretty rare as I have again only experienced this once, and since then, I have ignored storing information about events of type PotentialMatchCreated into DynamoDb. I am not 100% sure if I should ignore PotentialMatchCreated events so definitely let me know if I shouldn't or if these events can contain important information that I am not seeing.

So this got me thinking, in cases where there is player acceptance, could events of type AcceptMatchCompleted be sent to the SNS topic after events of type MatchmakingSucceeded for the same match/ticket? Is the order of GameLift events being sent to SNS always guaranteed?

Right now when I make the clients poll DynamoDb for the latest status of their matchmaking tickets, I usually grab the latest entry in the table with the corresponding ticket id. However, now I'm wondering if I should account for this very rare case of events coming out of order and start having the clients check for each state of the matchmaking process one at a time. Hope this question made sense, thanks in advance!

已提問 4 年前檢視次數 277 次
1 個回答
0
已接受的答案

Have attached this to your other Matchmaking Event issue with GameLift team

Its worth noting that SNS does not guarantee event ordering.

Q: Will messages be delivered to me in the exact order they were published?

The Amazon SNS service will attempt to deliver messages from the publisher in the order they were published into the topic. However, network issues could potentially result in out-of-order messages at the subscriber end. https://aws.amazon.com/sns/faqs/

已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南