Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • General Discussion /
avatar image
Question by Dawid Majdanik · Mar 28 at 03:29 PM · Matchmakingmultiplayer

What is the best way to provide co-op sessions?

Hello,

I was wondering what is the best flow to provide co-op sessions in my game?

At this moment I am using RequestMultiplayerServer and players can play on server but I was thinking about using Matchmaking or Party to scale my game.

As I dived in I started to think that is a bit too much for my need but I also saw that RequestMultiplayerServer should not be allowed to use by clients and should be called using Azure Functions, so I think I have to choose one anyways.

My requirements are:

- matches of 2-4 players

- cross-platform support

- creating party and inviting friends

- game logic is calculated on player that created game(so I need server to send and recieve data between players)

There is no rank or any competetive type of the game.

My game flow is pretty simple:

1. Player creates new game with settings(eg. difficulty of AI)

2. Player invites friends/players to play with.

3. They are playing the game for how long they want.

At this point I don't see case where I need to use Matchmaking or Party API, but maybe I should?

Matchmaking provides me queueing players but in co-op case you usually end up with playing with friends or joining random games, which can be provided by Matchmaking, so as for now that is one case where I can use Matchmaking.

On the other side Party provides me cross-platform, local games and lot of functionalities I might use in future.

At this point I have no idea what to use and I would be very thankful for any suggestions or help.

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Tobias Nerg · Mar 28 at 04:16 PM

I'm currently using PlayFab Party together with Mirror and Unity for our studio's upcoming Server Authoritative game. Party doesn't have any sense of "Client" or "Server", so you'd need a thin wrapper around party to make the clients talk only to the server (You can send messages to specific recipients).

From my own perspective Party is great at the cost of a bit more latency for server authoritative architectures because the data first needs to travel to the PlayFab node servers, and then to clients rather than straight to a dedicated server. I haven't done any calculations, but I imagine Party to be much cheaper than the dedicated server solution as well, and if you're targeting XBox Live party is completely free on Xbox consoles!

Is MatchMaking synonymous with the "Lobbies and Matchmaking API" that went to public preview a couple of days ago? All lobbies created can be found with the same API, and once you join a lobby you can provide the connection key to the Party Network as a lobby property as well. That's the most efficient development solution I have at the moment at least. The Lobby ID/Connection string can then be shared in e.g real presence implementations like Steam, Discord etc.

Comment
Dawid Majdanik

People who like this

1 Show 2 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Gosen Gao · Mar 29 at 08:25 AM 1
Share

As @Tobias Nerg says, PlayFab Lobby is now in public preview, and it suits your needs. Here is the official document, you can have a look.

avatar image Dawid Majdanik Gosen Gao · Mar 29 at 03:38 PM 0
Share

@Tobias Nerg @Gosen Gao Thank you for your answers! Last time(it was exactly 03.22) I have found Lobby but it was in a private preview, I didn't know it is public now. I will check this out :)

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    12 People are following this question.

    avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

    Related Questions

    How can Players select their teams when matchmaking? 1 Answer

    How can I prevent players from altering game results? 2 Answers

    Shared Group Data, Matchmaking 1 Answer

    Matchmaking with multiplayer servers costs and design 0 Answers

    About Linear rule 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges