O'Reilly logo

Distributed Computing with Go by V.N. Nikhil Anurag

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Handle multiple Librarians

The core functionality of Goophr Librarian is to update the index and return relevant DocIDs based on the search terms. As we saw while implementing the codebase for Librarian, we need to update the index, retrieve relevant DocIDs, and then, based on relevance, sort them before returning query results. Many operations are involved and a lot of maps are being used for lookups and updates. These operations might seem trivial. However, as the size of the lookup table (map) increases, the performance of operations on the lookup table will start to decline. In order to avoid such a decline in performance, many approaches can be taken.

Our primary goal is to understand distributed systems in the context of Go, and, for ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required