<Time-consuming mapping of Flux and Mono into DTO>...
# stackoverflow
u
Time-consuming mapping of Flux and Mono into DTO I've got 2 end-points returning the same data in two different JSON-formats. The first end-point returns a JSON-array, and starts the response right away. @Get("/snapshots-all") fun allSnapshots( @Format("yyyy-MM-dd") cutoffDate: LocalDate ): Flux = snapshotDao.getAllSnapshots(cutoffDate) The next end-point that returns a paged result, is more sluggish. It starts the response when both streams are completed. @Get("/snapshots") fun snapshots( @Format("yyyy-MM-dd") cutoffDate:...