Skip to Content
Hands-On Software Engineering with Golang
book

Hands-On Software Engineering with Golang

by Achilleas Anagnostopoulos
January 2020
Intermediate to advanced
640 pages
16h 56m
English
Packt Publishing
Content preview from Hands-On Software Engineering with Golang

Breaking down the monolith into distinct services

In this section, we will extract the individual services from the Links 'R' Us monolith and build a standalone service binary for each one. This is also the point where you will probably realize that our clean, interface-based design that we have been preaching about since the beginning of this book finally begins to pay off.

As it turns out, we can take the service-specific code from Chapter 10, Building, Packaging, and Deploying Software, and use it as is with a few minor changes. For each service, we will create a main package that performs the following set of tasks:

  • Creates a logger instance for each service
  • Exposes the pprof debug endpoints on a configurable port
  • Instantiates the gRPC ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Software Architecture with Golang

Hands-On Software Architecture with Golang

Jyotiswarup Raiturkar

Publisher Resources

ISBN: 9781838554491Supplemental Content