Secure Validation Workflows in Spring Batch
Validate Spring Batch data in layers with a parameters validator, Bean Validation, custom rules and a protected reject store.
2,882 posts about Java: questions with answers, tutorials and articles, newest first.
Validate Spring Batch data in layers with a parameters validator, Bean Validation, custom rules and a protected reject store.
Plan capacity from the deadline, project the finish time after every chunk, and scale threads or alert early so Spring Batch jobs meet their SLA.
Configure fault-tolerant Spring Batch steps with retry, skip and listeners, and compose restartable multi-source jobs with conditional flow.
Monitor Spring Batch at job, step, chunk and item level using Micrometer, Actuator and listeners, with low overhead for latency-sensitive datasets.
Detect failures, bad data and stalled jobs in Spring Batch within seconds using listeners, Micrometer metrics, alerts and a watchdog.
Spring Batch has no predictive validation feature, so you compose one. Launch jobs from events, validate items, score anomalies and record rejected rows.
Use Spring Batch partitioning, bounded executors, per-partition step counters and Micrometer metrics to track resources across distributed datasets.
Turn an SLA into throughput targets, then tune chunks, scale with threads or partitions, schedule with headroom and alert on duration before the deadline.
Expose Spring Batch metrics through a secured Actuator, audit job runs with listeners and keep secrets and personal data out of logs and parameters.
Combine retry, skip policies and restartable readers to keep large Spring Batch jobs running through transient failures and bad records.
The RabbitMQ Channel is a lightweight virtual connection used to declare queues, publish and consume messages. See Java examples and thread safety rules.
The Aggregation class builds MongoDB aggregation pipelines in Java. See match, group, project, lookup and unwind stages run through MongoTemplate.
Netflix Hystrix is in maintenance mode and gone from Spring Cloud. See how to build the same circuit breaker and fallback with Resilience4j in Spring Boot 3.
@HystrixCommand added circuit breaking and fallbacks, but Hystrix is retired. See how to migrate to Resilience4j in Spring Boot.
Add spring-boot-starter-actuator, expose only the endpoints you need, secure them, and extend them with custom health indicators and endpoints.
Write an @AutoConfiguration class, register it in the AutoConfiguration.imports file, make it overridable with conditions, and test it with ApplicationContextRunner.
How configuration classes power a custom Spring Boot starter: @AutoConfiguration, conditional beans, properties binding and the AutoConfiguration.imports file.
Build a custom Spring Boot starter with auto-configuration, configuration properties and conditional beans, registered through the AutoConfiguration.imports file.
UserDetailsService loads a user by username so Spring Security can authenticate them. See the flow and a working Spring Security 6 implementation.
SessionManagementConfigurer configures how Spring Security creates and protects HTTP sessions: creation policy, fixation protection and concurrent session limits.