APIs With GRPC
APIs With GRPC
TO
MICROSERVICE
Modernizing legacy codebases with grpc + go
(or gRPC for dummies)
Hi, I’m
Cecy Correa
@cecycorrea
Software Engineer,
Context.IO
gRPC to break up your monolith!
what is gRPC?
gRPC Remote Procedure Calls
oh ok
what is RPC?
Data exchange between 2
processes
so an API?
RPC or REST?
The “RPC” part stands for “remote
procedure call,” and it’s essentially
the same as calling a function in
JavaScript, PHP, Python and so on,
taking a method name and
arguments.
└── python
└── ...
Step 3. Create a gRPC server
Sample proto file
Step 4: Write some clients!
*Note: you will need to install some stuff to get started
in PHP
path/to/your_service.pb.gw.go
What does our API look like now?
Monolith -> Monorepo
[CODE]
github.com/cecyc/dad-joke-service
Questions?
Happy to talk in the hall!
or ping @cecycorrea on
Twitter