Checking data streaming possibilities with Spring WebFlux.
The following list presents the software version which the code has been developed. Probably newer versions might work also, but there are no guarantees.
- Maven 3.6.3
- Docker 20.10.8
- Docker Compose 1.25.0
- OpenJDK 16.0.1
- Curl 7.74.0
The following commands assumes that you are on project root directory.
- Create and start a Mongo container through
docker-compose up -d
command. - Compile and build the executable jar with
mvn clean package
command. - Start the program with
java -jar target/*.jar
command. - Open a new terminal and send a request using curl:
curl -is "http://localhost:8080/person"
- The response will be a streaming of JSON objects delimited by newline characters.