Scheduling using Shedlock distribution
Ensures only one instance of a scheduled job runs in a clustered environment, preventing overlapping tasks across multiple nodes.
Main Benefits
Fail-safe: If one node fails mid-job, another node can acquire the lock after lease expiry.
Database Agnostic: Works with multiple DB types.
Format code
Run tests
Run locally
Using Testcontainers at Development Time
You can run TestApplication.java
from your IDE directly. You can also run the application using Maven as follows:
Useful Links
Swagger UI: http://localhost:8080/swagger-ui.html
Actuator Endpoint: http://localhost:8080/actuator
Last updated