Table of Contents Redis as a Vector DatabaseRedis OM SpringDatasetBuilding the Application0. GitHub Repository1. Add the required dependencies2. Define the Movie entity3. Repository Interface4. Search Service5. Movie Service for Data Loading5. Search Controller6. Application Bootstrap7. Sample RequestsWrapping upMore AI ResourcesStay …
-
Improving Maven’s dependency:analyze… or not
Table of Contents The mvn dependency:analyze commandSpring Boot startersBringing the maven-dependency-analyzer into the modern ageConclusion Recently, my good friend Richard Fichtner advised using the mvn dependency:analyze command to get rid of declared but unused dependencies: There is another use case …
-
Pull request testing on Kubernetes: testing locally and on GitHub workflows
Table of Contents Unit testing vs. integration testingTestcontainersUse-case: application with database”Unit” testing”Integration” testingThe GitHub workflowAlternative “Unit testing” on GitHubConclusion Imagine an organization with the following practices: Commits code on GitHub Runs its CI/CD pipelines with GitHub Actions Runs its production …
-
The Proper Way to Define Configuration Properties in Spring
Upgrading from Spring Boot 2 to 3 forced me to define my configuration properties in a better way.
-
Prevent LDAP injection in Java with SpringBoot
In this article, we dive into the basics of LDAP (Lightweight Directory Access Protocol)—a powerful protocol used to manage directory information like user authentication, authorization, and centralized account management in IT systems. 🌐👨💻
We also explore LDAP Injection, a common security vulnerability 🛡️ where attackers manipulate LDAP queries to:
⚠️ Bypass authentication
⚠️ Access unauthorized data
⚠️ Modify directory entriesLearn how these attacks work, the risks they pose, and, most importantly, how to protect your systems with secure coding practices like input sanitization and parameterized queries. ✅💻
Whether you’re an IT professional, developer, or just curious about cybersecurity, this article is your crash course on LDAP and LDAP Injection! 🚀✨
-
Task Schedulers in Java: Modern Alternatives to Quartz Scheduler
Table of Contents Quartz is often considered the standard job scheduling library in Java, which can lead developers to overlook more modern alternatives.Limitations of QuartzQuartz is showing its agePerforms worse than modern alternativesLack of built-in monitoringDistributed scheduling is opt-inSporadic maintenanceAlternatives …
-
Crafting Your Own Railway Display with Java!
Table of Contents BackgroundImplementationConclusionReferences Have you fancied to have your own railway display at home? If you love traveling by public transport and always jump on the train just before the door closes like us, it’s really cool and highly …
-
Health Check Response Format for HTTP APIs
I’m continuing my journey on getting more familiar with HTTP APIs by reading related RFCs.
-
Who instruments the instrumenters?
Have you ever wondered how libraries like Spring and Mockito modify your code at run-time to implement all their advanced features?
-
How to Detect Cache Misses Using Observability
In this article, we’ll examine cache misses and, in general, learn about the caching concept and how to implement it in Spring Boot.
-
Minimize Costs by Utilizing Cloud Storage with Spring-Data-Eclipse-Store
How to save money storing data in Cloud blob-stores instead of expensive databases through the use of the open-source Spring-Data-Eclipse-Store library.