News for hackers. Stuff that matters.
Re:Cloud Run – Newest member of our serverless compute stack by lima on Tuesday April 09, 2019 @12:59PM (#19616683)
Serverless with gRPC would be awesome. There's grpc-gateway, but native support would be even better.

Surely it won't take long - the product itself has a gRPC API: https://cloud.google.com/run/docs/reference/rpc/

Re:Cloud Run – Newest member of our serverless compute stack by mrwilliamchang on Tuesday April 09, 2019 @07:17PM (#19619991)
Depending on your use case, there is a way to proxy gRPC to Cloud Run in a slightly hacky way leveraging the fact that outbound gRPC works.

You can run in GCE a gRPC server that whenever it gets a gRPC request, it temporarily stores the gRPC message and associates it with a session ID. It then sends a HTTP request to Cloud Run with that session ID. Then your Cloud Run instance will take that session ID to make a gRPC connection to your gRPC server in GCE. This GCE instance will then take the session ID, retrieve the gRPC request, and forward it to the Cloud Run instance.

This is admittedly hacky, but depending on your use case, may be good enough.

Re:Cloud Run – Newest member of our serverless compute stack by asciimike on Tuesday April 09, 2019 @01:02PM (#19616708)
Streaming HTTP and gRPC support is on our roadmap, but it's still a ways out :(

On the comment about how the control plane APIs support gRPC: the serving infrastructure for the data plane is pretty different from the control plane, so it's unfortunately not a direct map to supporting gRPC on the data plane.

Another possible solution is to run an API gateway that does gRPC to JSON conversion and have that invoke your service.

Re:Cloud Run – Newest member of our serverless compute stack by lima on Tuesday April 09, 2019 @01:07PM (#19616768)
Unary gRPC calls would cover all of my uses cases that would benefit from this product. Is that any closer on the roadmap?
Re:Cloud Run – Newest member of our serverless compute stack by asciimike on Tuesday April 09, 2019 @01:11PM (#19616812)
My understanding is that the major issue we have is with streaming (sticky sessions to backends that are autoscaling is tricky), so I assume that unary would be easier. I admit that I haven't dived too deeply in to this though.

EDIT: looks like we could do unary gRPC if gRPC wasn't only supported on HTTP/2. So the current implementation basically requires we solve sticky sessions/streaming.

Re:Cloud Run – Newest member of our serverless compute stack by charltoons on Tuesday April 09, 2019 @02:53PM (#19617838)
No gRPC support means no server-side Firebase integration, right?
Re:Cloud Run – Newest member of our serverless compute stack by asciimike on Tuesday April 09, 2019 @04:09PM (#19618463)
We don't support inbound gRPC/streaming, but we do support outbound gRPC/streaming, so things like Firestore (or other streaming gRPC products) will work fine.
Re:Cloud Run – Newest member of our serverless compute stack by charltoons on Wednesday April 10, 2019 @09:27AM (#19624394)
Oh, nice. Thanks for the clarification.