In this Engineering With Java newsletter edition, we have hand-picked some interesting Java and Spring articles worth reading. These articles include topics such as cache, large file reads, clean API responses, plugins for code quality improvement, etc.
Hope you will like the selections!
๐ Unlock Your Path to Success with the Ultimate Everything Bundle! ๐
Introducing the Everything Bundle โ your one-stop solution to mastering Java, Spring Boot, SQL, acing interviews, and securing certifications!
โค How to Detect Cache Misses Using Observability
Caching is a fundamental concept in system design and software architecture, offering numerous benefits such as improved performance, reliability, reduced latency, scalability, enhanced user experience, reduced server load, and cost-saving. Understanding caching and its various aspects, including cache hits, cache evictions, and cache misses, is essential for optimizing system performance.
โค Memory-Friendly File Reading in Java
this article serves as a valuable resource for Java developers seeking to optimize file reading operations while maintaining memory efficiency. By understanding and implementing the techniques discussed, developers can enhance the performance and scalability of their applications when dealing with large files.
โค Building Clean API Responses with Spring Boot
This article offers best practices for crafting clean API responses, such as defining standardized response structures, embracing meaningful naming conventions, leveraging custom error codes, and thoroughly documenting APIs.
โค Looking at a Java Class and its Methods Through a Kaleidoscope
This article offers valuable insights into understanding large Java classes and their methods from multiple perspectives. The author explores different ways to analyze methods in feature-rich interfaces, focusing on the Java Stream class as an example. The author discusses the potential benefits of user-defined method groupings, akin to Smalltalk's Method Categories, to enhance code understanding and navigation.
โค 7 Best Plugins to Improve Code Quality in Java
The author discusses the importance of maintaining high code quality in software development and introduces seven plugins tailored to enhance code quality in Java projects. These plugins offer tools for static code analysis, enforcing coding standards, and automating code review.
๐ DSA for the Cracking the Coding Interview. Animated Examples for Faster Learning and Deeper Understanding. ๐
Java Data Structures & Algorithms + LEETCODE Exercises
Bestseller | Rating: 4.7 โญ/5 (5k+ ratings) | 36k+ students
โค Logging in Spring Boot With Loki
Grafana Labs developed Loki, an open-source log aggregation system inspired by Prometheus. Its purpose is to store and index log data, facilitating efficient querying and analysis of logs generated by diverse applications and systems.
In this article, the author (which is me :) ) discusses logging with Grafana Loki for a Spring Boot application. Loki will collect and aggregate the application logs, and Grafana will display them.
โค Records for Cleaner and More Expressive Parameterized Tests in JUnit 5
Compared to traditional approaches, such as using ArgumentsSource
with method source, the record-based approach significantly improves code clarity, type safety, and overall maintainability of the test suite. It offers a cleaner and more expressive way to define parameterized tests in JUnit 5.
Adopting Java records for parameterized tests is a valuable practice that enhances the robustness and effectiveness of unit testing in Java applications.
โค Debugging Streams with Peek
The peek()
method in Java streams is a powerful tool for debugging complex stream operations. By providing insights into the state of data at various points in the stream pipeline, peek()
helps developers understand how elements are processed and identify issues more effectively.
โค Intercepting requests using Spring WebClient Filters
This article provides a comprehensive overview of how to utilize WebClient filters in a Spring WebFlux application. By implementing ExchangeFilterFunction interfaces, developers can intercept, analyze, and transform client requests and responses effectively.The article covers various scenarios, including logging client requests and responses, as well as transforming request and response headers.
โค Spring Boot and SLF4J: Crafting the Perfect Logging Solution
Crafting an effective logging solution with Spring Boot and SLF4J involves understanding the underlying mechanisms of SLF4J and configuring logging levels, patterns, and appenders to suit the specific needs of your application. By leveraging SLF4J as the default logging facade and Logback as the default implementation in Spring Boot, developers can achieve a flexible and adaptable logging framework.
๐ Become Java Spring Boot Full Stack Cloud Developer. Learn AWS, React, Docker, Spring Data JPA & Spring Security. ๐
[NEW] Master Spring Boot 3 & Spring Framework 6 with Java
Bestseller | 4.5 โญ (6k ratings) | 37,892 students