Wrote a very rough blog post about the question of layering RPC over duplex connections, and how to approach that from a framework-perspective. Would love to hear your input! https://gist.github.com/yoshuawuyts/50e2da1ced9ebe14cdcb0fad558dbc25 …
-
Show this thread
-
What if HTTP servers were expressed as loops, and HTTP/2 servers as loops of loops: fn main () { for await session in Server::listen("8080") { session.push("hello".try_into())?; for await req in session.incoming() { "hii".try_into()?; } } }
2 replies 0 retweets 0 likesShow this thread -
I keep finding myself going back to this idea constantly. I suspect it could be made to perform well, and can't think of many ways this could be simplified further. Big question would be how to structure this further with middleware, routing, etc. But can probably be p. light.
2 replies 0 retweets 1 likeShow this thread
But then again, maybe I have no clue what I'm talking about.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.