-
Notifications
You must be signed in to change notification settings - Fork 226
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
Sharding #213
Comments
I think it is a really useful thing, and it doesn't need to be binded with runtime itself. It can be used by users of all types of runtimes. |
I would love to work on it with you. Although I don't know what direction to take when you say you don't think sharding needs to be bound to the runtime itself. Could you expand on your thoughts on this, and maybe give some guidance on what you think this would look like? I agree |
Some of my thoughts:
|
I look forward this too, it would be really helpful. I did not look into it yet, but would it be possible if instead of sharding with spsc, we have something like: -> A TcpListener which accept a connection on one thread EDIT: If someone is looking, you should be able to build a lb strategy & a full mesh by using https://github.com/Miaxos/sharded-thread |
This is what I had in mind, but it seems we are missing some implementation on monoio to be able to do something like that: It would need to pub some of the method of (ugly, but well, this is the idea) |
@Miaxos that looks awesome! |
Is your feature request related to a problem? Please describe.
In many cases it would be good to shard a request to a particular based on some data within a server request. This would allow me to ensure any state related to that merchant can be processed on the same core/thread.
Here's a few scenarios where this would make sense
Describe the solution you'd like
A similar implementation to sharing like glommio has https://github.com/DataDog/glommio/blob/master/examples/sharding.rs
Describe alternatives you've considered
I haven't considered any
Additional context
None
The text was updated successfully, but these errors were encountered: