Reactive fetching
Reactive fetching refers to the use of a reactive API in combination with jOOQ. Since you are using Spring Boot, there is a big chance that you are already familiar with the Project Reactor reactive library (https://projectreactor.io/) or the Mono
and Flux
APIs. So, without going into further detail, let's take an example of combining Flux
and jOOQ in a controller:
@GetMapping(value = "/employees", produces = MediaType.TEXT_EVENT_STREAM_VALUE) public Flux<String> fetchEmployees() { return Flux.from( ctx.select(EMPLOYEE.FIRST_NAME, EMPLOYEE.LAST_NAME, EMPLOYEE.JOB_TITLE, EMPLOYEE.SALARY) .from(EMPLOYEE)) .map(e -> e.formatHTML()) .delayElements(Duration...