Ideas for scaling chat in AWS?

前端 未结 6 2314
温柔的废话
温柔的废话 2020-12-13 10:29

I\'m trying to come up with the best solution for scaling a chat service in AWS. I\'ve come up with a couple potential solutions:

  1. Redis Pub/Sub - When a use

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-13 11:15

    HI realtime chat doesn't work well with SNS. It's designed for email/SMS or service 1 or a few seconds latency is acceptable. In realtime chat, 1 or a few seconds are not acceptable.

    check this link

    Latency (i.e. “Realtime”) for PubNub vs SNS
    

    Amazon SNS provides no latency guarantees, and the vast majority of latencies are measured over 1 second, and often many seconds slower. Again, this is somewhat irrelevant; Amazon SNS is designed for server-to-server (or email/SMS) notifications, where a latency of many seconds is often acceptable and expected.

    Because PubNub delivers data via an existing, established open network socket, latencies are under 0.25 seconds from publish to subscribe in the 95% percentile of the subscribed devices. Most humans perceive something as “realtime” if the event is perceived within 0.6 – 0.7 seconds.

提交回复
热议问题