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

Query handler – the REST API endpoint

Similarly, if we consider the case of handling a search query at /api/query, we should be able to take the search terms from the payload, request results from various instances of the Librarian, process them, and then return search results back to the user in the descending order of search relevance. However, since we haven't implemented the Librarian yet, we shall discuss the implementation of this endpoint later in Chapter 8, Deploying Goophr, the distributed search index.

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