Skip to content
Discussion options

You must be logged in to vote

Hi all! What will be more productive when sending 100 messages to 1000 users per second?

wsApp.publish('topic', message)

or

clients = new Map() // or object
clietns.forEach(u => {
    u.send(message)
})

wsApp.publish('topic', message) is made for this, so use it. But also make your own benchmarks. The follow up question I don't understand, you use loosely defined, or simply undefined, terminology.

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
11 replies
@kvalood
Comment options

@e3dio
Comment options

@e3dio
Comment options

@kvalood
Comment options

@e3dio
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by uNetworkingAB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants