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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则