Java/Spring Boot/MongoDb - Performance Analysis and Improvements
DZone
FEBRUARY 21, 2022
The AngularAndSpring project runs on startup (@Async + @EventListener) or once a day (@Scheduled) the average calculation of the quotes. It is implemented in the PrepareDataTask class. It gets started on startup by the TaskStarter class. It calculates the averages for newly available quotes. The average quotes for several years of data had to be recalculated so performance became interesting.
Let's personalize your content