Building Java Microservices with gRPC

Building Java Microservices with gRPC

2h 30mAdvanced2021-04-29

Authors

Ketkee Aryamane

Ketkee Aryamane

Software Professional

Course details

Given the increasing trend toward microservices architecture, more and more businesses are adopting gRPC, which helps developers build scalable microservices with a low latency and higher throughput. In this course, Ketkee Aryamane covers the fundamentals of gRPC and its key features. Ketkee starts with the basic theory behind RPC and the HTTP/2 protocol, then shows how to build two gRPC services in Java from scratch using protocol buffers, and connects those services with each other using gRPC. She also covers how to generate clients that can invoke those services. If you’re a developer looking for new ways of developing web services, following along with Ketkee as she builds microservices from scratch is a great way to learn new concepts, while also seeing these concepts put to practical use.

Skills covered

gRPCSoftware ArchitectureJavaOracleProgramming LanguagesOpen SourceSoftware DevelopmentDeep Dive (X:Y)

Concepts

Introduction

  • Microservices with gRPC
  • What you should know

Introduction to gRPC

  • Inter-service communication
  • gRPC framework overview
  • gRPC framework features
  • gRPC foundations
  • HTTP 1 problems
  • How is HTTP 2 better
  • Understand protocol buffers
  • Steps to develop a gRPC service

Building Blocks of gRPC

  • Using protocol buffers
  • Using the gRPC API Download utilities
  • Service definition using protobuffs
  • Generate stubs using protoc
  • Generated classes walk-through
  • Metadata and channels
  • Types of gRPC calls

Build User Service Using RPC

  • Overview of order management services built in the course
  • Create a maven-gRPC project
  • Define user.proto and generate service stubs
  • Database code setup
  • Add database method to get user details
  • Implement service stub
  • Write code to host the user service
  • Test the user service

Build Order Management Service Using gRPC

  • Define order.proto and generate stubs
  • Add database method to get orders
  • Add service method to get order details
  • Write code to host order service
  • Test the order service using the client
  • Recap to connect user and order services
  • Write a client to call order service
  • Call order client from user service
  • Test the full flow of order management
  • Challenge Implement add-to-cart use case

Conclusion

  • Building gRPC microservices in Java Advanced concepts
80,000 Toman