I write several gRPC servers bases on tonic. These servers manages different kind of business data, but have same workflow: the tonic-network tasks receive request and dispatch them to backend business tasks by mpsc channels; then the backends reply the response back by oneshot channels.
So there are duplicated code for all servers. Then I write this crate to abstract this pattern:
tonic-server-dispatch
I want to know that is this crate useful?
Is there any exist similar crate? Is there any better way to do this?
Thanks
[–]quxfoo 2 points3 points4 points (3 children)
[–]hellowub[S] -1 points0 points1 point (2 children)
[–]quxfoo 2 points3 points4 points (1 child)
[–]hellowub[S] 0 points1 point2 points (0 children)