How to transfer a big data

Options
afrokick
edited December 2013 in Photon Server
Hi. I have a question about transfer big amount of data. It is loading from the server once for any map(~500kb).

How I should do it?

Thanks

Comments

  • chvetsov
    Options
    Hi, afrokick.

    You can do it part by part. This is the only way for Photon.
    Or you may use another service, for instance some http server
  • Thank you, chvetsov.

    Can photon split large UDP packet into smaller portions and unite it together on an end point "under the hood"?
  • chvetsov
    chvetsov mod
    edited December 2013
    Options
    yes, it does it automaticly.
  • Tobias
    Options
    While you can send more data through Photon (there is no fixed message size limit), you better avoid it for several reasons:
    We don't adjust our Max Transfer Unit, so we split your data into UDP packages of 1200 bytes each and reassemble.
    There is some overhead per package for ACKs and no other message in the same channel will arrive.
    You don't have access to the data until it's fully there and there is no info about how much more is in transit or how long it might take to arrive (the lib doesn't expose these values).
    And: If you have to distribute more data, a HTTP-based content delivery network is easier to load balance and handle.
  • chvetsov, Tobias, Thanks guys. The http-backend for this task is looking good.