Hands-On RESTful Web Services with TypeScript 3
上QQ阅读APP看书,第一时间看更新

Working with large datasets

Everything goes smoothly when a dataset is small, even though there is no fixed value definition of what small means. Being agnostic, what happens if a dataset is really big and, for instance, a user decides to perform a GET request on an endpoint? Should we retrieve all resources at the same time? The answer is no, and there are a few possibilities for handling such a situation. In this section, we will take a look at some of the ways to handle these kinds of situations.