In this edition of the Engineering With Java newsletter, we have hand-picked 10 interesting Java and Spring articles that are worth reading. Consider sharing your love by liking and sharing your feedback in the comment section.
Crack your Java and Spring Developer interview by preparing important topics and mastering key concepts in a guided and structured way in a quick time. ( Affiliated )
1: Java Caching Cheatsheet
Java caching is a technique used to store and manage frequently accessed data in a temporary storage area, known as a cache, to improve application performance. It helps reduce the time and resources needed to fetch or compute data by keeping a copy readily available. Java caching can be implemented at various levels, including memory caching, distributed caching, application-level caching, HTTP caching, and database caching.
2: How do you handle checked exceptions in Stream Pipeline ?
Java streams cannot gracefully handle checked exceptions with lambda expressions. To handle these exceptions, one can wrap the code that throws a checked exception in a separate method and handle it there. This can be done by defining a Functional Interface, creating a wrapper method that converts the checked exception to unchecked, and using that wrapper method in the implementation.
3: Creating PostgreSQL Schema Before Liquibase Execution
In database management, maintaining consistency and traceability of schema changes is crucial for data integrity and application reliability. Liquibase, a popular schema change management tool, streamlines version control and tracking of database changes across different environments. This tutorial focuses on utilizing Liquibase within a custom schema in PostgreSQL, offering better organization and clarity in managing database objects.
4: Creating a Spring Security Key for Signing a JWT Token
The tutorial focuses on implementing JWT authentication in a stateless Spring Boot application using Spring Security. It covers the setup of Maven dependencies, configuration of JWT components, and integration into Spring Security.
5: JDK 22 in Two Minutes! - Sip of Java
JDK 22, scheduled for release, introduces several significant JEPs (JDK Enhancement Proposals) and finalizes features aimed at enhancing Java's functionality and developer experience.
DSA for the Cracking the Coding Interview. Animated Examples for Faster Learning and Deeper Understanding. ( Affiliated )
Java Data Structures & Algorithms + LEETCODE Exercises
Bestseller | Rating: 4.7 ⭐/5 (5k+ ratings) | 36k+ students
6: Beginner’s Guide to Java Regular Expressions (Regex)
Regular expressions (regex) are indispensable tools for text processing in Java, offering the ability to search, manipulate, and edit strings based on specific patterns. The java.util.regex package in Java provides essential classes like Pattern and Matcher for regex operations. This beginner's guide provides comprehensive insights into using regex in Java, employing simple explanations and numerous code examples.
7: Getting Started With NCache Java Edition (Using Docker)
NCache Java Edition offers a distributed caching solution for Java applications, enhancing their speed, scalability, and reliability. In an era where users demand fast and seamless app experiences, leveraging NCache Java Edition is crucial for developers and businesses alike. This article aims to demystify the process of integrating NCache into Java applications, catering to both seasoned developers and newcomers to caching technology.
8: Building a Performant Application Using Netty Framework in Java
Netty is a robust, asynchronous, event-driven networking framework designed for developing high-performance applications. It simplifies network application development by offering an easy-to-use API and powerful abstractions for handling various networking protocols and data formats. Key features of Netty include its asynchronous and event-driven architecture, modularity, protocol agnosticism, support for SSL/TLS encryption, and efficient byte buffer management with zero-copy mechanisms.
9. Implement Two-Level Cache With Spring
The article discusses implementing a two-level caching mechanism in Spring to improve application performance.It also discusses the caching benefits and the need for distributed caching in multi-instance deployments.
10. When database integration beats microservices
The article discusses the unconventional approach of using database integration instead of traditional microservices architecture for solving certain types of problems. It highlights the common belief that database integration is an anti-pattern and explains the problem statement of needing to perform heavy calculations periodically on large amounts of data stored in a database.
That’s a wrap for this week. If you have any feedback, requests, or improvements for this newsletter consider commenting so that we can work on improvements for the next one.
Become Java Spring Boot Full Stack Cloud Developer. Learn AWS, React, Docker, Spring Data JPA & Spring Security. ( Affiliated )
[NEW] Master Spring Boot 3 & Spring Framework 6 with Java
Bestseller | 4.5 ⭐ (6k ratings) | 37,892 students