3 ms·
Can't speak for Java but it was super easy in Go. I wrote some software for my home weather station and it streams [1] over gRPC to another little Go app [2] t
by chrissnell 9y ago
Can't speak for Java but it was super easy in Go. I wrote some software for my home weather station and it streams [1] over gRPC to another little Go app [2] that runs on my laptop, wherever it may be.
My use is not at all complex but I can't imagine that more involved streaming would be any tougher.
[1] https://github.com/chrissnell/gopherwx/blob/master/storage_grpc.go https://github.com/chrissnell/gopherwx/blob/master/storage_g...
[2] https://github.com/chrissnell/grpc-weather-bar https://github.com/chrissnell/grpc-weather-bar
Edit: here's a simple example protobuf definition for streaming to a client: https://github.com/chrissnell/gopherwx/blob/master/protobuf/grpcweather.proto https://github.com/chrissnell/gopherwx/blob/master/protobuf/...