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

Decoupling Links 'R' Us components from the underlying data stores

Both the link-crawler component that we created in Chapter 7, Data-Processing Pipelines, and the PageRank calculator component that we built in Chapter 8, Graph-Based Data Processing, were designed to work with one of the data store implementations from Chapter 6, Building a Persistence Layer.

To this end, when configuring these components, we are expected to provide suitable concrete data store implementations that satisfy the graph.Graph and index.Indexer interfaces. If we were building a monolithic application, we would normally be performing this bit of initialization inside the main package, as follows:

  1. Import the package with the data store drivers we want to use in ...
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