database icon indicating copy to clipboard operation
database copied to clipboard

Use grpc data store from flutter Web

Open gedw99 opened this issue 5 years ago • 1 comments

. Can this be supported ?

I am using this from flutter mobile and desktop but need to also call the server from Flutter Web

This example works..

Example of echo service https://github.com/sigurdm/grpc_web_flutter_example

Requires envoy running the grpc gateway

gedw99 avatar Jan 08 '20 11:01 gedw99

Hi!

Thanks for the question. The GRPC adapter is not ready for use yet. It will be documented when it's closer to stable.

We definitely want to support GRPC in browser. My understanding is that: 1.Browser-compatibility without something like Envoy requires avoiding streaming GRPC requests. 2.Accomplishing that is straightforward for simple reads, writes, and searches. 3.It's tricky for transactions because HTTP requests during the transaction are not necessarily received by the same process in the server. But for transactions with limited read isolation requirements and a moderate total size, it should be possible by collecting read results and writes until commit and giving them to the server in a single HTTP request.

terrier989 avatar Jan 23 '20 17:01 terrier989