Jump to ratings and reviews
Rate this book

Building Distributed Applications in Gin: A hands-on guide for Go developers to build and deploy distributed web apps with the Gin framework

Rate this book
An effective guide to learning how to build a large-scale distributed application using the wide range of functionalities in Gin

Key FeaturesExplore the commonly used functionalities of Gin to build web applicationsBecome well-versed with rendering HTML templates with the Gin engineSolve commonly occurring challenges such as scaling, caching, and deploymentBook DescriptionGin is a high-performance HTTP web framework used to build web applications and microservices in Go. This book is designed to teach you the ins and outs of the Gin framework with the help of practical examples.

You'll start by exploring the basics of the Gin framework, before progressing to build a real-world RESTful API. Along the way, you'll learn how to write custom middleware and understand the routing mechanism, as well as how to bind user data and validate incoming HTTP requests. The book also demonstrates how to store and retrieve data at scale with a NoSQL database such as MongoDB, and how to implement a caching layer with Redis. Next, you'll understand how to secure and test your API endpoints with authentication protocols such as OAuth 2 and JWT. Later chapters will guide you through rendering HTML templates on the server-side and building a frontend application with the React web framework to consume API responses. Finally, you'll deploy your application on Amazon Web Services (AWS) and learn how to automate the deployment process with a continuous integration/continuous delivery (CI/CD) pipeline.

By the end of this Gin book, you will be able to design, build, and deploy a production-ready distributed application from scratch using the Gin framework.

What you will learnBuild a production-ready REST API with the Gin frameworkScale web applications with event-driven architectureUse NoSQL databases for data persistenceSet up authentication middleware with JWT and Auth0Deploy a Gin-based RESTful API on AWS with Docker and KubernetesImplement a CI/CD workflow for Gin web appsWho this book is forThis book is for Go developers who are comfortable with the Go language and seeking to learn REST API design and development with the Gin framework. Beginner-level knowledge of the Go programming language is required to make the most of this book.

Table of ContentsGetting Started with GinSetting up API EndpointsManaging Data Persistence with MongoDBBuilding API authentication.Serving Static HTML in GinScaling a Gin applicationTesting Gin HTTP RoutesDeploying the application on AWSImplementing a CI/CD PipelineCapturing Gin application metrics

482 pages, Kindle Edition

Published July 23, 2021

9 people are currently reading
13 people want to read

About the author

Mohamed Labouardy

3 books6 followers
Tech entrepreneur with a profound experience building distributed applications, author and well-known speaker. I have unwavering passion for cloud, fintech and startups.

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
5 (38%)
4 stars
4 (30%)
3 stars
4 (30%)
2 stars
0 (0%)
1 star
0 (0%)
Displaying 1 - 3 of 3 reviews
Profile Image for Bogdan Raț.
161 reviews58 followers
July 25, 2021
Not actually about the Gin Framework (not going in depth with it, at least), nor about distributed web applications and microservices. Rather, the application developed throughout the book is a monolith on the backend side. However, a good book for beginners in modern backend web development, which brings together a multitude of topics: Docker, K8s, AWS, CICD w. CircleCI, Event Driven with RabbitMQ, Persistence w. MongoDB & Caching w. Redis, Monitoring w. Prometheus & Grafana, and a little bit of React for the frontend, all of this at a starter level. Could be a proof of concept in how to work together with these tools, but does not go to a production level.
Profile Image for Mohannad Hassan.
193 reviews62 followers
May 14, 2023
It's a beginner's guide to building distributed applications in Gin. It goes through many of the topics you need to get into to build such applications, without going deep into any of them. The application is a simple CRUD-based application. The following topics were touched:
- Implementing APIs with Gin
- Connecting to a MongoDB instance
- Building and serving static and template-based pages with Gin
- Building and deploying a front end app with React
- Caching with Redis
- Building a reverse-proxy with Nginx
- Containerizing your whole stack with Docker
- Authentication
- Deploying using several AWS solutions
- Testing, monitoring & CI-CD

As said, the author doesn't go into much details into any topic; just enough to allow the reader to be able to implement and code along. Therefore, it's a great book for a beginner who wishes to explore many of these topics.
Displaying 1 - 3 of 3 reviews

Can't find what you're looking for?

Get help and learn more about the design.