...

/

Playing With Reactive and Classic Endpoints

Playing With Reactive and Classic Endpoints

Let's test the reactive and classic endpoints and compare their performance.

Let’s test our API endpoints using cURLA command-line tool that supports Server-Sent Events so we can have a look at the blocking and non-blocking alternatives in our application.

On Educative, the execution of the curl command will be automatically handled. However, the commands are still shown so that you may also learn how to perform the testing yourself.

Paged version of the reactive endpoint

First, we will try the paged version of the reactive endpoint. When testing locally, you can use the following command for this purpose.

$ curl
...