Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to configure Elsa to have several sockets? #94

Open
fxn opened this issue Nov 3, 2020 · 0 comments
Open

How to configure Elsa to have several sockets? #94

fxn opened this issue Nov 3, 2020 · 0 comments

Comments

@fxn
Copy link
Contributor

fxn commented Nov 3, 2020

I am working on an application that produces messages to a single topic that has 100 partitions. The workload is high, I think we would have better performance if there were a few more sockets.

Would it be possible somehow to have 10 sockets? I thought about launching 10 supervisors with respective connection names, and then in Elsa.produce select the connection according to the partition. Each connection would be responsible for 10 partitions (disjoint). That way we guarantee order. So, while all supervisors would spawn 100 processes, effectively 90% of them would be idle (this seems a bit weird, but it is a practical consequence).

Makes sense? Do you have a different recommendation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant