New project: OpenWeather gRPC API

Sep 13, 2022 | 1 minute read

Long time, no see! This is the first of three new projects from this summer that I’d like to introduce to you.

Written in Go, this microservice uses protocol buffers to define a highly performant gRPC API.

Compared to other APIs like RESTful APIs, gRPC offers several key benefits, including:

  • Efficient connection management with HTTP/2
  • Simpler server implementation
  • Easily generate client-side code for a variety of programming languages
  • Messages serialized to binary for more efficient payloads

The service is capable of retrieving current forecasts, five day forecasts, and gelocation data from for gRPC clients. A UML sequence diagram and other basic details are available on the project page, and as always the source code is open for inspection as well.