Skip to content

Latest commit

 

History

History

grpc-server

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Docker Hub

Advent of Code gRPC solver server

A gRPC server exposing an API to solve Advent of Code problems.

Solutions are implemented in Rust in the core crate and this crate uses the Tonic library to expose them over gRPC.

The service has gRPC reflection enabled and can be invoked using grpcurl as shown below:

grpcurl \
  -d '{"year": 2019, "day": 1, "part": 1, "input": "12334"}' \
  advent-grpc.fly.dev:443 \
  advent.Solver/Solve

A client UI can be shown using grpcui:

grpcui advent-grpc.fly.dev:443

A fredrikfornwall/advent-of-code-grpc-server Docker image which starts the server on port 50051 is available on Docker Hub:

docker run -p 50051:50051 fredrikfornwall/advent-of-code-grpc-server