How to handle many socket connections

A couple of suggestions:

  • Think long and hard about whether you need every client to be connected to your backend. Consider ways that this could be filtered or grouped. If a viewer is not interacting, do you really want/need a connection?
  • Look long and hard at the data that you want to send from a client to your EBS.
  • Consider the frequency of sending data from clients to your EBS. Consider aggregating data over a period of time.
  • Architect in elasticity into your EBS based upon demand (don’t under/over pay).
  • Pick a tech stack that you are the most comfortable working with/in.
1 Like