You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can’t horizontally scale this solution, so for gigantic scale you might want to distribute the messages over a messaging queue. But I am very interested in how well Go does with a million users. Another option might be to send the message to the client in a goroutine so it doesn’t wait before sending the next one.
I think the right approach to this kind of problem is to build it simply first, and play with it, test it, benchmark etc. to see if it’s fit for purpose. Most projects won’t get a million users, so there’s no point investing the time building it up for that kind of scale. For those lucky projects that do reach that level of success, you won’t mind rearchitecting pieces of the solution if you have to.
In
room.go
line 58, what happens if you have 1Mi users?The text was updated successfully, but these errors were encountered: