Best of Spring BootJuly 2024

  1. 1
    Article
    Avatar of baeldungBaeldung·2y

    Apache Kafka Tutorial Series

    This tutorial series covers essential topics about Apache Kafka, including its basics, how to integrate it with Spring Boot, configuring Kafka SSL, and setting up Kafka using Docker. It also explores Kafka consumer groups, retry mechanisms, and message ordering strategies, providing practical guidance for both newcomers and experienced developers.

  2. 2
    Article
    Avatar of faunFaun·2y

    Spring Boot 3.1 JWT Authentication &Authorization: Secure Your APIs Like a Pro🔒

    Learn how to secure your Spring Boot 3.1 applications using JWT authentication and authorization. This guide covers creating a Spring Boot project, setting up dependencies, creating secure endpoints, and configuring JWT tokens for user authentication. Includes practical examples and code snippets to help you implement security measures swiftly.

  3. 3
    Article
    Avatar of substackSubstack·2y

    GraphQL Explained

    GraphQL is a modern query language and server-side runtime that offers a more efficient, powerful, and flexible alternative to traditional REST APIs. It allows clients to request exactly the data they need through a single endpoint, supports real-time updates, and uses a strongly typed schema to ensure predictable and reliable queries. These features make it a popular choice for contemporary web development.

  4. 4
    Article
    Avatar of baeldungBaeldung·2y

    Returning Errors Using ProblemDetail in Spring Boot

    Learn how to use ProblemDetail for standardized error responses in Spring Boot applications. Discover why it's important for API usability, how it streamlines error handling, and explore its implementation in both MVC and reactive applications. Includes setup, configuration, and global exception handling examples, complete with testing methods.

  5. 5
    Article
    Avatar of justjavaJust Java·2y

    Java & Spring Best Practices | Factory Pattern

    The third module of the java-spring-best-practices repository introduces the Factory Pattern, a design pattern for flexible object creation. Learn how to decouple object creation, enhance scalability, and improve maintainability in your codebase. The module includes practical examples, core principles, benefits, and End-to-End tests for validation.

  6. 6
    Article
    Avatar of gcgitconnected·2y

    This should be your first AWS Project if you are a beginner using AWS EC2, VPCs and Spring Boot

    This project is an ideal starting point for beginners in AWS, focusing on deploying a simple Spring Boot app using EC2 instances and custom VPCs. You will learn to configure subnets, an Internet gateway, and route tables, as well as hosting a jar file in AWS S3. The guide emphasizes understanding foundational AWS components like EC2 and VPC for a comprehensive cloud learning experience.

  7. 7
    Article
    Avatar of devgeniusDev Genius·2y

    Kafka Demo Project: Part 1. Producers

    This post introduces a step-by-step guide to a Kafka demo project using Java and Spring Boot. It covers setting up a Kafka cluster on Confluent Cloud, configuring the Confluent Schema Registry, and creating a Producer application to send messages to Kafka topics. Essential configurations for the 'application.properties' and 'application.yml' files, as well as Maven dependencies, are also discussed. The post concludes with an example of sending a POST request to the producer and exploring cluster configurations using Kafka's Admin API.

  8. 8
    Article
    Avatar of communityCommunity Picks·2y

    Top 7 Techniques to Optimize Caching in Spring Boot

    Caching is a recommended technique to improve application performance. The post highlights 7 methods for optimizing caching in Spring Boot applications. Key techniques include identifying ideal caching candidates, setting proper cache expiration policies, implementing conditional caching, choosing between distributed and local caches, customizing key generation strategies, using asynchronous caching, and monitoring cache metrics. The post also mentions how Digma, an observability platform, can help in identifying cache misses and inefficiencies in queries.

  9. 9
    Article
    Avatar of vladmihalceaVlad Mihalcea·2y

    Hibernate SoftDelete annotation

    The post discusses using the `@SoftDelete` annotation introduced in Hibernate 6.4 for implementing soft delete functionality in JPA entities. Examples illustrate how to apply the annotation to various entities and demonstrate the generated SQL updates when entities are soft deleted. This new method simplifies the process compared to traditional custom soft delete mechanisms.

  10. 10
    Article
    Avatar of baeldungBaeldung·2y

    Sending WhatsApp Messages in Spring Boot Using Twilio

    Learn how to send WhatsApp messages using Twilio within a Spring Boot application. Discover the setup process for Twilio and WhatsApp Business Account (WABA), explore the necessary configurations, and implement functionality to send messages and handle user replies. The tutorial also covers sending templated notifications, creating webhook endpoints for handling replies, and testing the integration using MockServer.

  11. 11
    Article
    Avatar of communityCommunity Picks·2y

    Ktor vs. Spring Boot: 5 Key Differences for Kotlin Devs

    Ktor and Spring Boot offer distinct advantages for Kotlin developers. Ktor, built purely with Kotlin, is lightweight, supports asynchronous server-side web apps with fast start-up times, and uses Kotlin Coroutines for concurrency. Spring Boot, while more established with extensive documentation and community support, is more suitable for larger applications with its robust ecosystem. Both frameworks offer great developer experiences, but the choice depends on the project's needs.

  12. 12
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    How to Perform Load Testing in Spring Boot with Gatling

    Learn how to perform load testing in a Spring Boot application using Gatling. The guide covers integrating Gatling into a Maven-based project to run various types of performance tests like load, stress, soak, and spike testing. Detailed instructions are provided for setting up dependencies, implementing a sample load test, and analyzing the test results using Gatling's reporting features.

  13. 13
    Article
    Avatar of shaafShaaf·2y

    Angular TodoMVC with Spring boot backend, deploy to Kubernetes

    The post guides you through building a Spring Boot application with a TodoMVC Angular front-end and deploying it on Kubernetes using the JBoss Web Server Operator. It covers defining the Todo entity with JPA annotations, implementing the TodoController for CRUD operations, and extending JpaRepository for database interactions. Deployment steps include creating a Docker image, configuring H2 and PostgreSQL databases, and deploying on OpenShift. Detailed instructions for running the app locally, building the Docker image, and pushing it to a repository are provided.