19

I wonder if Firebase's performance (latency, throughput) is good enough to be used real-time MMO games online.

Could someone with enough knowledge share their opinions on this?

Can Firebase be used instead of socket for real time games?

Joon
  • 9,346
  • 8
  • 48
  • 75
  • 1
    I highly doubt this will function properly for an MMO simply because HTTP is not fast enough (it also uses TCP which can lead to terrible latency). – Muli Yulzary Jun 20 '16 at 19:25
  • 2
    Also see http://stackoverflow.com/questions/37926379/firebase-events-with-no-delay where I answered a similar question an hour ago. – Frank van Puffelen Jun 20 '16 at 19:28
  • 1
    We have a number of people using [Ably, our realtime data delivery platform](https://www.ably.io) for MMO and they have not reported any issues. I am not sure I agree that TCP is going to lead to terrible latency, we typically see latencies ranging from 10ms up to around 200ms in some rather remote places. – Matthew O'Riordan Jun 21 '16 at 00:31
  • A potential issue is that you may want to throw away some data after distributing it to the players. If so, you'd need to handle this yourself, because the Firebase database of course keeps the data. Otherwise you'd get a lot of data in the database. That doesn't need to be a problem, but if it provides no value to keep all the data for later it might be something to avoid to keep the potential costs down. – ArneHugo Nov 20 '16 at 18:13
  • @MatthewO'Riordan hi matthew re peak connections: if we have 30K uniques in a month, but at most 50 are ever connected at the same time, we only pay for 50 peak connections? thanks! – Crashalot Feb 12 '17 at 22:03
  • @MuliYulzary TCP can lead to terrible latency? – Jorge Fuentes González Apr 25 '18 at 12:33
  • @JorgeFuentesGonzález check out this discussion its pretty thorough: https://news.ycombinator.com/item?id=13272610 – Muli Yulzary Apr 25 '18 at 13:13
  • Oh well, yeah. The problem is that browsers don't support UDP. Talking about WebSockets I thought about browsers. – Jorge Fuentes González Apr 25 '18 at 15:28

1 Answers1

2

Short answer is NO: with firebase you'll get client synchronised after a couple of 100 of milliseconds. You may also find consuming to much network traffic with would make firebase prohibitively expensive.

Seb
  • 500
  • 5
  • 13