Using PUN cloud with a linux database server

Options
Hey Ive been reading through documentation for the various services photon provides, and i find myself wishing to use a strange combination of features. Id like to ask you about how i might achieve this.

I want to make use of the photon cloud to generate rooms for players to play in, while saving information to a linux database server for some data persistance that would allow players to create rooms with the same state that it was in last time. The room saving out information to the database server. Object positions, Character statistics and things like that, to be reloaded later on.

Is this possable? How would you advise achieving this?

Comments

  • vadim
    Options
    Hi,

    Use PhotonNetwork.WebRpc method and PhotonNetworkingMessage.OnWebRpcResponse message to make http requests to your db server from PUN client.
  • Hakazaba
    Options
    Excellant, thank you very much.
  • Hakazaba
    Options
    Would i need to use photon server on the server side? Or is a mysql server fine?
  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @Hakazaba,

    You can use webhooks or webRPC to send post HTTP requests to your web service where you can make your database logic.