Best of Spring BootJanuary 2025

  1. 1
    Article
    Avatar of vladmihalceaVlad Mihalcea·1y

    Why you should use compact table columns

    Using compact table columns can significantly enhance database performance by allowing more records and index entries to be stored in memory, thus speeding up SQL queries. This practice is effectively demonstrated by StackOverflow, which uses a highly efficient schema to serve millions of queries per second with minimal hardware. Tips include using smaller data types for keys and enforcing column length limits for VARCHAR fields.

  2. 2
    Article
    Avatar of javarevisitedJavarevisited·1y

    JWT Authentication with Spring 6 Security

    Learn how to implement JWT authentication with Spring 6 Security using best practices. This guide walks through setting up a Spring Boot project, configuring JWT authentication, and integrating MongoDB for user data. It covers creating JWT tokens, adding security configurations, and testing endpoints. The aim is to secure a social media app with user authentication and authorization.

  3. 3
    Article
    Avatar of baeldungBaeldung·1y

    Implement Feature Flags in Java With Unleash

    Feature flags, or feature toggles, enable the activation and deactivation of application functionalities without altering the codebase. Unleash is an open-source tool for managing these flags across multiple environments. This guide walks through setting up Unleash locally, configuring a feature toggle, and integrating them into a Java application using Spring Boot. The setup ensures features can be toggled in real-time, improving development cycles and enabling controlled feature rollouts.

  4. 4
    Article
    Avatar of communityCommunity Picks·1y

    Problems I no longer have by using Server-side rendering

    Server-side rendering (SSR) offers significant advantages over single-page applications (SPAs) by alleviating issues such as versioning complications, duplicated validation logic, and complex state management. SSR ensures that the most recent version of the application is always served to the user, reduces the need for detailed REST API documentation, and minimizes the need for complex frontend frameworks. It also simplifies role-based access and multilingual support. Tools like htmx can enhance server-rendered applications incrementally, providing the benefits of both server and client-side processing without the inherent complexity of SPAs.

  5. 5
    Article
    Avatar of netguruNetguru·1y

    Java Microservices: Essential Strategies for Scalable Application Architecture

    Java microservices provide flexibility and speed for modern applications, allowing developers to create standalone services that communicate independently. Tools like Spring Boot and Spring Cloud simplify the creation and management of microservices. Java's ecosystem supports microservices with libraries for service discovery, load balancing, and fault tolerance. Key strategies for setting up Java microservices include using Spring Initializr for project setup, Docker and Kubernetes for containerization and orchestration, and tools like Eureka and Ribbon for service discovery and load balancing. Comprehensive monitoring, secure communication, and continuous deployment practices are essential for maintaining robust microservices architecture.

  6. 6
    Article
    Avatar of baeldungBaeldung·1y

    A Guide to One-Time Token Login in Spring Security

    One-time token login (OTT) in Spring Boot applications helps balance ease of use and security, ideal for infrequent logins. It simplifies authentication by sending a time-limited token via email or SMS for user login instead of traditional passwords. The tutorial covers implementing OTT with Spring Boot and Spring Security, including necessary configurations, token generation, and delivery methods, concluding with manual and automated testing guidelines.