When not to create REST APIs
These days it seems to be fashionable to create REST APIs for things. But does your site really need a REST API? Here are some reasons not to create a REST API for your system.
In this article we examine the difficulty of implementing pagination in a system that uses event sourcing. We assume that the reader is familiar with event sourcing. We explain the concept of pagination and then show how we can accomplish it by using events.