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

Resources

Since our frontend and backend are separate, we need to communicate the state and data between the two. In the frontend, we will need to show all available entities for the service we are providing. These entities are called resources.

Consider a server that provides us with a REST interface (REST API) that has a list of books in our personal library. In this case, list of books are resources and we can request information about each of them from the backend at particular endpoints. For our example, the endpoint can be <URL>/api/books. /api prefix is a convention generally used in REST applications to express that we are interacting with the backend URLs. The resources can generally be thought of as a collection of data, like rows ...

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