Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building Distributed Applications in Gin

You're reading from   Building Distributed Applications in Gin A hands-on guide for Go developers to build and deploy distributed web apps with the Gin framework

Arrow left icon
Product type Paperback
Published in Jul 2021
Publisher Packt
ISBN-13 9781801074858
Length 482 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Mohamed Labouardy Mohamed Labouardy
Author Profile Icon Mohamed Labouardy
Mohamed Labouardy
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Preface 1. Section 1: Inside the Gin Framework
2. Chapter 1: Getting Started with Gin FREE CHAPTER 3. Section 2: Distributed Microservices
4. Chapter 2: Setting Up API Endpoints 5. Chapter 3: Managing Data Persistence with MongoDB 6. Chapter 4: Building API Authentication 7. Chapter 5: Serving Static HTML in Gin 8. Chapter 6: Scaling a Gin Application 9. Section 3: Beyond the Basics
10. Chapter 7: Testing Gin HTTP Routes 11. Chapter 8: Deploying the Application on AWS 12. Chapter 9: Implementing a CI/CD Pipeline 13. Chapter 10: Capturing Gin Application Metrics 14. Assessments 15. Other Books You May Enjoy

What this book covers

Chapter 1, Getting Started with Gin, gives a foundational understanding of what the Gin framework is, how it works, and what its features are. It also supplies guidelines for setting up the Go runtime and a Gin "Hello World" example.

Chapter 2, Setting up API Endpoints, covers how to build a complete RESTful API from scratch and how to generate its documentation with OpenAPI.

Chapter 3, Managing Data Persistence with MongoDB, illustrates how to store and retrieve data at scale with a NoSQL database such as MongoDB. It also covers how to optimize the API response time with Redis.

Chapter 4, Building API Authentication, is dedicated to the best practices and recommendations to follow to secure API endpoints. It demonstrates the usage of authentication protocols, including JWT, Auth0, and session cookies.

Chapter 5, Serving Static HTML in Gin, demonstrates how to build a single-page application (SPA) with a REST backend backed by a Gin RESTful API. It also shows how to render HTML templates with Gin and how to build a self-contained web application.

Chapter 6, Scaling a Gin Application, shows how to improve the performance and scalability of a Gin distributed web application with Docker and RabbitMQ.

Chapter 7, Testing Gin HTTP Routes, explores how to run automated tests with Docker. This involves running Go unit tests and integration tests, and inspecting security vulnerabilities with Snyk.

Chapter 8, Deploying the Application on AWS, demonstrates how to deploy the Gin distributed application on a server backed by AWS EC2 and how to scale it for a heavy workload on Kubernetes.

Chapter 9, Implementing a CI/CD Pipeline, introduces the CI/CD practices we should follow to automate the build, test, and deployment of a Gin application. It also covers how to implement the practices with CircleCI using a Pipeline as Code approach.

Chapter 10, Capturing Gin Application Metrics, goes a step further in order to show you how to troubleshoot and monitor with ease a running Gin application in production.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime