tetratelabs / proxy-wasm-go-sdk

WebAssembly for Proxies (Go SDK)
Apache License 2.0
686 stars 151 forks source link

gRPC callouts support #14

Closed mathetake closed 1 month ago

mathetake commented 4 years ago

Given that this is going to be a lot of work and the spec is unstable, work on this later

rfyiamcool commented 3 years ago

👍

chrisjpalmer commented 3 years ago

Hello just wondering if there has been any updates on this one? At work we use istio and are looking to make calls from our envoyfilter to a GRPC service that can answer auth questions. The most ideal would be to use GRPC for this. However if its a while off, perhaps the next best thing is http? My understanding is that GRPC would be more efficient because it maintains one active connection per host as opposed to http2 which will eventually retire connections.

Thank you!

mathetake commented 3 years ago

This really depends on the upstream work in TinyGo: https://github.com/tinygo-org/tinygo/issues/1879 stay tuned!

gedw99 commented 3 years ago

@mathetake thanks for raising this as I have been looking for a viable option for using GRPC and GRPC web

GRPC web with WASM in browsers GRPC with envoy proxy WASI.

I am curious if the IO between a wasm browser client and a wasm envoy proxy will work with GRPC Web . In theory it should since envoy is doing the adaption of GRPC web to GRPC and handing it on to the envoy wasm.

Do you think this is viable and advantageous ?

zd9KgA commented 1 year ago

Hi @mathetake!

Just like @gedw99, I'd like to be able to make gRPC calls (e.g., to update permissions in https://github.com/authzed/spicedb) from a custom envoy filter written using this SDK. (The envoy ext_authz filter provides no option to process the response.)

Would you suggest to wait for progress here?

mathetake commented 1 month ago

https://github.com/tetratelabs/proxy-wasm-go-sdk/pull/451