News for hackers. Stuff that matters.
Re:Connect-Web: TypeScript library for calling RPC servers f... by biggestlou on Thursday August 04, 2022 @05:36PM (#32348599)
I strongly suggest that you read the post to see why this project is different and specifically intended to place nicely with common web infra.
Re:Connect-Web: TypeScript library for calling RPC servers f... by hamandcheese on Thursday August 04, 2022 @11:29PM (#32351212)
The post says it is a post-only API. I’m not sure if thats to a single URI, like graphql, or if the URI is different depending on the RPC call in use. But either way, it sounds like cacheability might not be great, which is also an issue with graphql.

That said, it’s definitely a step in the right direction, and I personally have never written an API where I even wanted the results to be cached.

Re:Connect-Web: TypeScript library for calling RPC servers f... by bufbuild on Thursday August 04, 2022 @11:45PM (#32351320)
The URI is per-RPC, specifically at /service/method, if that helps.

On cacheability, do check out https://connect.build/docs/protocol#future-extensions - it’s something we continue to put thought into to make sure we get it right.

Re:Connect-Web: TypeScript library for calling RPC servers f... by AtNightWeCode on Friday August 05, 2022 @03:16PM (#32360662)
I understand that is does not come with a proxy which is a leap forward. GETs are often optimized in various ways and gRPC is designed for reusing channels.