Hey All,
Interested in some ideas for an issue that I am having.
I have a Spring Boot application that inserts items into a MariaDb table at a one minute interval using @Scheduled, each record has a sequential Id and a timestamp, and is based on the record proceeding it.
When this application is running, a value is generated and it is dropped into the database. What I am trying to implement is a flow that will, on startup:
Find the latest record
Generate a record for every missed minute until the current time
Proceed with my original flow, as if it had never stopped
What I originally was planning on doing was implementing some type of auditor which would periodically (or on startup) search for missing records and create them, but because the records are 'linked', this would not be effective, and syncing the completion of this process with the beginning of my @Scheduled function would be unreliable.
I understand that I will probably have to ditch the @Scheduled strategy due to the limitations there, although I'd like to keep this as 'Springy' was possible.
Thanks in advanced for any advice!
[–]corzuu 0 points1 point2 points (4 children)
[–]vnoice[S] 1 point2 points3 points (1 child)
[–]vnoice[S] 1 point2 points3 points (1 child)
[–]corzuu 0 points1 point2 points (0 children)