Functional Programming in Java: Lambdas, Streams, Records
How to write functional-style Java: first-class functions, lambdas, streams, Optional, immutable records and modern pattern matching, with examples.
2,888 posts about Java: questions with answers, tutorials and articles, newest first.
How to write functional-style Java: first-class functions, lambdas, streams, Optional, immutable records and modern pattern matching, with examples.
Reactive Streams is the standard that lets Java libraries process async data with backpressure. See the core interfaces, a Flow example and how it compares to virtual threads.
Handle errors in Spring WebFlux with onErrorResume, onErrorMap and retry operators, then map them to HTTP responses with ProblemDetail and exception handlers.
Mono emits zero or one value and Flux emits zero to many. Learn how Spring WebFlux uses them for non-blocking controllers, streaming and composition.
Build a non-blocking Spring Boot application with WebFlux, Mono and Flux, reactive data access with R2DBC, error handling and WebClient.
Spring WebFlux is Spring's reactive web framework. See its non-blocking model, Mono and Flux types, backpressure, WebClient, streaming and when to choose it over Spring MVC.
A HealthIndicator reports the status of one component to Spring Boot Actuator. See the built-in indicators, custom and reactive examples, and status aggregation.
Add the Actuator starter and use /actuator/health to report UP or DOWN for your app and its dependencies, with custom indicators and Kubernetes probes.
Spring Boot Actuator exposes health, metrics and operational endpoints for monitoring. Learn how to enable, extend and secure them.
Add spring-boot-devtools and compile on change to get automatic restarts and live reload. This guide also separates DevTools restarts from true JVM hot swapping.
Spring Boot DevTools speeds up local development with automatic restarts and LiveReload. See how to add it and fix common problems.
Use JMS message selectors in Spring Boot to deliver only matching messages. Covers sender properties, @JmsListener selectors, pitfalls and alternatives.
Enable JMS connection pooling in Spring Boot 3 with pooled-jms, choose between pooling and caching, and size the pool for JmsTemplate senders.
JMS has no virtual hosts. Secure tenants with Artemis or ActiveMQ roles, or use RabbitMQ virtual hosts, with Spring Boot configuration for each.
Encrypt JMS traffic in Spring Boot with TLS: keystores and truststores, ActiveMQ and Artemis configuration, mutual TLS, and the RabbitMQ AMQP equivalent.
Use Artemis live/backup pairs for high availability, a cluster connection for load balancing, and a failover URL in Spring Boot so clients reconnect automatically.
Add Actuator and Micrometer, time every JMS listener, publish queue depth as a gauge and alert on backlog, latency and failures.
Control message flow in JMS and Spring Boot with bounded listeners, consumer window limits, safe acknowledgement, broker full policies and pausing consumers.
Spring Cloud Stream has no official JMS binder. This guide shows how to use Spring JMS, Spring Integration or functional bindings in Spring Boot 3.
Convert objects to and from JMS messages in Spring Boot with a Jackson MessageConverter, safe type id mappings and a custom converter. Avoid Java serialization.