Build a Microservice with Go

Build a Microservice with Go

1h 40mIntermediate2023-07-21

Authors

Frank P Moley III

Frank P Moley III

Senior Principal Engineer at Catch&Release

Course details

Go has risen as a powerful language selection for programs that rely on concurrency and speed, making it a great option for the development of GRPC- or REST-based web services. Because of its popularity, patterns have arisen that make building web services using Go much easier. These patterns include the two most common abstractions: HTTP request response handling and data access. In this course, software architect and developer Frank Moley guides you through the process of building microservices with Go. Get started in Go by preparing and setting up your environment, project, and clients. Go through the full process of building a service, including multiple challenges and solutions to check your understanding. Plus, learn how to use GORM to read and write data to a database and how to use the Echo middleware framework.

Skills covered

GoSoftware ArchitectureGoogleProgramming LanguagesSoftware DevelopmentOne-Off

Concepts

Introduction

  • Get going with Go
  • What you should know

Starting with Go

  • Go for microservices
  • Prepare your environment
  • Set up your project
  • Set up the database client
  • Set up the echo client
  • Wire the service

Building the Service

  • GetAll operations
  • Challenge - GetAll
  • Solution - GetAll
  • Create operations
  • Challenge - Create
  • Solution - Create
  • GetOne operations
  • Challenge - GetOne
  • Solution - GetOne
  • Update operations
  • Challenge - Update
  • Solution - Update
  • Delete operations
  • Challenge - Delete
  • Solution - Delete

Other Topics

  • Build a Docker image
  • Middleware
  • Testing

Conclusion

  • Next steps
40,000 Toman