Best of Spring BootNovember 2024

  1. 1
    Article
    Avatar of foojayioFoojay.io·1y

    Task Schedulers in Java: Modern Alternatives to Quartz Scheduler

    Quartz has been a long-standing job scheduling library in Java, but several modern alternatives like JobRunr and db-scheduler offer more developer-friendly APIs, better performance, and enhanced support for distributed environments. JobRunr stands out for its ease of use and built-in dashboard, while db-scheduler is appreciated for its simpler configuration. For broader workflow management, solutions like Temporal and Kestra are noteworthy for their resilient and low-code features.

  2. 2
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    How to Build Multi-Module Projects in Spring Boot for Scalable Microservices

    The post provides a detailed guide on building a multi-module project in Spring Boot, emphasizing modularity, scalability, and manageability. Key topics include setting up modules, configuring inter-module communication using REST APIs and message brokers like Kafka, implementing JWT-based security, and deploying with Docker. It also covers common pitfalls and solutions, testing strategies, and best practices for maintaining and scaling a multi-module architecture.

  3. 3
    Article
    Avatar of foojayioFoojay.io·2y

    Spring Boot: Java Template Engine (JTE)

    The Java Template Engine (JTE) is a new addition to the Spring Initializer Ecosystem, designed for developing user interface applications using Java syntax within Spring Boot applications. JTE provides a user-friendly syntax, supports plain Java or Kotlin expressions, and performs context-aware HTML escaping at compile time. It integrates with frameworks like Spring MVC, Ktor, Micronaut, and more. Instructions for Maven and Gradle integration, along with a practical Spring Boot example, are included to demonstrate JTE's implementation.

  4. 4
    Article
    Avatar of springSpring·1y

    Bootiful Spring Boot 3.4: Spring Batch

    Spring Batch 5.2 introduces various new features to enhance batch processing. Notable additions include multiple job repository implementations, such as a MongoDB-backed JobRepository and a resource-less JobRepository. The release improves support for Spring Data JPA and item readers/writers, including new Kotlin data class support and concurrent steps using blocking queues. The new features like CompositeItemReader and BlockingQueueItemWriter promise more robust and scalable batch processing by leveraging staged event-driven architecture and virtual threads in Java 21.

  5. 5
    Article
    Avatar of java_libhuntAwesome Java Newsletter·2y

    Z Garbage Collector in Java

    Java applications have diverse performance requirements, such as throughput, latency, and scalability. The Z Garbage Collector (ZGC) is designed to minimize pause times while efficiently managing large heap sizes. Unlike traditional garbage collectors that can cause significant application pauses, ZGC performs most of its work concurrently with the application, achieving minimal interruptions. This makes it ideal for high-demand environments like financial systems and large-scale cloud applications. The article includes a practical comparison between ZGC and G1 GC, showcasing ZGC's superior performance in maintaining low latency.

  6. 6
    Article
    Avatar of baeldungBaeldung·1y

    Testing the Main Class of a Spring Boot Application

    Testing the main class of a Spring Boot application is crucial to ensure the application starts correctly. The post covers different strategies for testing, from basic context loading tests to mocking SpringApplication.run(), and explains how to handle application arguments and exclude the main class from code coverage. These methods help catch potential issues early and improve the reliability of the application startup process.

  7. 7
    Article
    Avatar of java_libhuntAwesome Java Newsletter·1y

    Spring Boot 3.4.0 available now

    Spring Boot 3.4.0 has been released. It includes various updates and features, improving the overall performance and user experience. By continuing to use their site, you consent to the use of cookies in accordance with the Cookie Notice.

  8. 8
    Article
    Avatar of baeldungBaeldung·1y

    Streaming Real-Time Log to Splunk From Spring Boot

    This post provides a comprehensive guide for streaming real-time logs from a Spring Boot application to Splunk using its HTTP Event Collector (HEC). It covers setting up and configuring Splunk, adding necessary Maven dependencies, creating controller and service classes, and setting up a logging configuration file with log4j2. The guide also explains how to verify the log ingestion in Splunk with specific queries.