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 "http://localhost:8080/quotes-reactive-paged?page=0&size=50"

The following widget runs the backend for you and uses the same curl command with a slightly different URL. However, you don’t need to worry about it.

Get hands-on with 1400+ tech skills courses.