News for hackers. Stuff that matters.
Re:Connect-Web: TypeScript library for calling RPC servers f... by AtNightWeCode on Thursday August 04, 2022 @04:03PM (#32347608)
This is not the first attempt to run gRPC from web. It is still a bad idea since it does not play nice with common web infra. I don’t understand what one even tries to accomplish with this.
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.
Re:Connect-Web: TypeScript library for calling RPC servers f... by qbasic_forever on Thursday August 04, 2022 @10:10PM (#32350690)
What web infrastructure does it not play well with? It's using standard HTTP/1.1 and 2.0 POST requests. Nothing that's in the way of your browser and server, like a proxy or load balancer, should notice, care or fail in any way.
Re:Connect-Web: TypeScript library for calling RPC servers f... by upbeat_general on Thursday August 04, 2022 @07:28PM (#32349612)
Perhaps unifying tooling/infra if you’re already using gRPC for your services.