When RESTful architecture isn't enough...

November 14 2023, 7:00am

REST has always been my preferred interface architecture, but it doesn't always fit every use case. Some times, it's better to use an RPC interface instead.

gRPC has brought with it some awesome features and tooling, and is often a better solution for RPC.

This video was sponsored by Acorn Labs. You can deploy your own version of the calculator API using the URL below.

https://acorn.io/run/docker.io/dreamsofcode/grpcalculator:acorn?ref=dreamsofcode

Video Links: Github Repository: https://github.com/dreamsofcode-io/grpc Acorn: https://acorn.io grpcui: https://github.com/fullstorydev/grpcui grpcurl: https://github.com/fullstorydev/grpcurl

Become a better developer in 4 minutes: https://bit.ly/45C7a29 👈

Join this channel to get access to perks: https://www.youtube.com/channel/UCWQaM7SpSECp9FELz-cHzuQ/join

Join Discord: https://discord.com/invite/eMjRTvscyt Join Twitter: https://twitter.com/dreamsofcode_io

00:00 Intro 00:27 What is RPC 02:32 gRPC & Protocol Buffers 05:46 Building a gRPC server 12:54 Error handling 15:47 Repeated 17:07 Building a gRPC Client 18:59 One last thing