Skip to content

Performance with --count 1, or IPC #80

Answered by ioquatix
danhealy asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, that's correct, the decision to use --count 1 is to allow the example to focus on WebSockets rather than IPC.

There are many options for IPC - depending on your requirements for persistence etc.

I think we tend to underestimate the raw performance of modern computers, so I think the impact of IPC is minimal in practice compared to application code. For example, using async-redis as a shared message bus is totally fine.

As an alternative consideration, you could also start an instance of falcon per "game instance" and connect a limited number of players, or use an instance of falcon per area of the game, etc. There are different ways to shard with different trade offs, but per-game in…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by danhealy
Comment options

You must be logged in to vote
1 reply
@ioquatix
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants