nostalgie icon indicating copy to clipboard operation
nostalgie copied to clipboard

Implement streaming Server Function calls

Open ggoodman opened this issue 3 years ago • 2 comments

See the Design Doc

ggoodman avatar Feb 09 '21 03:02 ggoodman

This is very neat! I think actual gains kind of hinges on if you are using http/1.1 or 2 though, since http/2 does everything over a single connection by default and the 6 concurrent request limit doesn't apply there?

https://stackoverflow.com/questions/36835972/is-the-per-host-connection-limit-raised-with-http-2

Ephem avatar Feb 09 '21 08:02 Ephem

@Ephem thanks for taking a look. That is very valuable feedback. As you can imagine, this PR introduces quite a bit of code, each line of which is adding fragility. It is hard to say whether this is being too clever (and complex) or is actually going to be a net win.

I think it will be helpful to put together a sort of degenerate case example app with lots of data fetching and run it in both http/2 and http/1.1. At the same time, such an example will be useful to demonstrate / test the Server Functions features (and meet your podcast challenge 🤣) as the framework evolves.

ggoodman avatar Feb 09 '21 15:02 ggoodman