gRPC (gRPC Remote Procedure Call) - CLIENT

Run gRPC vs. HTTP REST Benchmark

High-performance, open-source Remote Procedure Call (RPC) framework originally developed by Google.
It allows an application to directly call a method on a server application located on a different machine as if it were a local object,
making it a popular choice for microservices architectures. https://grpc.io/

How gRPC Works


GET WEATHER Via gRPC

N.B. Ping the server to see it is alivehttps://container-app-weather.thankfultree-2d5a04b9.uksouth.azurecontainerapps.io/ping.
If it is asleep this HTTP GET endpoint will wake it up.
If it is asleep a gRPC call will not wake it up and will fail.

This form uses javascript to call the WeatherApi - clients HttpGet endpoint: /weather?latitude=53.41&longitude=-2.15
This then calls the WeatherService - server via gRPC to get the weather data
Latitude:
Longitude:
(default coords is Stockport, England)
Get Weather result:

        

Protobuf Hex Deserializer

Paste the raw_protobuf value from "GetWeather" (see above) to see the hexadecimal (i.e. binary) Protobuf message deserialized into the WeatherResponse

Raw Protobuf Hex:
Decoded JSON

        

Draw.io Diagram

Click to open full size in a new tab