by orf · 2y ago · 0 comments
If you’re invoking a heavy-duty, long running function then you’re likely doing something bespoke. Why use HTTP at all? Wouldn’t GRPC be a better fit, because that seems to be what is being reinvented here.
The selling point of HTTP is that it’s ubiquitous and simple. But you’re coupling it with an offering that is specific and complex. Is using a GRPC library such a burden that makes this effort worthwhile?
Which is exactly what you seem to want.
https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2....