The shared code includes:
- A command interface super-POJO generator (in version 20241101, it is only compatible with Java 8)
- A library that implements a version of the mapper to translate super-POJOs to POJOs and vice versa.
The super-POJO generator is essential for maintaining consistent business logic across different versions of the same Open API interface.
The shared code includes:
The reflection translation process is slow, and if there are many requests, it can create a bottleneck.
Based on my tests, which involved handling several hundred requests per second, the execution tends to stall during the first few seconds.
After that initial period, the execution becomes significantly faster.
There are a few reasons why this might occur:
Try warming up the execution before opening the listening ports to avoid a lag time at the beginning.
The super pojo generator was born from the need to unify different versions of pojo models, in order to try to offer a common logic to all versions.
You can see more details about the application and the associated library in the superpojo-model project on github