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 ...
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.
Read now
Unlock full access