Inter-Service Communication with Go: Mastering protocols, queues, and event-driven architectures in Go

  • 1h 49m
  • Dušan Stojanović
  • BPB Publications
  • 2024

This book will cover different concepts of inter-service communication. They will be demonstrated through the Go programming language, its standard library, and popular third-party packages for concepts.

Begin by understanding basic concepts such as clients, servers, and communication methods. Explore RESTful APIs and HTTP, the backbone of many systems. Learn about protocol buffers and gRPC for efficient data exchange. For asynchronous communication, discover message queuing with RabbitMQ and event-driven patterns with Redis. Lastly, explore event-driven architecture (EDA) and Apache Kafka for implementing this style of communication.

After reading this book, a reader can determine which communication concept is most suitable for the software solution based on software solution requirements.

Key Features

  • Understand the core concepts related to inter-service communication.
  • Learn and understand different inter-service communication approaches through practical examples.
  • Recognize the most suitable communication concept for your software solution.

What you will learn

  • Decide which inter-service communication concept is most suitable for a particular software solution.
  • Implement different communication approaches with the Go programming language.
  • Utilize implementations from the Go’s standard library and third-party packages.
  • Use API design best practices.
  • Avoid issues that can arise from the wrong choice of communication concept.

Who this book is for

It caters to developers, software engineers, and architects looking to master inter-service communication for their Go projects.

About the Author

Dušan Stojanović was born on May 27, 1989 in Smederevo, Serbia and raised in Baničina. He attended the University of Belgrade and received a Master’s degree in computer science in 2013. Since then, he has been working in software development, playing central roles in numerous projects, such as user administration, online school platforms, e-commerce solutions, video-streaming platforms, advertising solutions, and AI chat applications as a software engineer.

His first book, Building Server-side and Microservices with Go, was published in 2021. Furthermore, he has published and written several technical articles on microservice development with Go and related topics.

He founded a small start-up company that tries to solve the parking problem in large cities. He lives in Belgrade (Serbia) and is a senior software developer.

In this Book

  • Code Bundle and Coloured Images
  • Fundamentals of Inter-Service Communication
  • RESTful Communication
  • HTTP
  • Protocol Buffers
  • Message Queuing Protocols
  • Publisher/Subscriber
  • Event-Driven Architecture
  • Final Observations