Table of Contents 0. GitHub Repository1. Add the required dependencies2. Configure the Semantic Cache Vector Store3. Implement the Semantic Caching Service4. Integrate with the RAG ServiceStep 1: Clone the repositoryStep 2: Configure your environmentStep 3: Start the servicesStep 4: Use …
-
Agent Memory with Spring AI & Redis
Table of Contents You’re building an AI agent with memory using Spring AI and Redis. Unlike traditional chatbots that forget previous interactions, memory-enabled agents can recall past conversations and facts. It works by storing two types of memory in Redis: …
-
Spring Cloud Stream: Event-Driven Architecture – Part 1
Table of Contents The Role of MessageBrokersFrameworks or Binder ImplementationsSpring Cloud Stream: The SolutionKey Features:LightWeight Architecture with Spring Cloud StreamTransition to Spring Cloud Stream:ConclusionReferences Envision operating a successful e-commerce platform where every moment is crucial. Customers make purchases, adjust inventory …
-
Carbon Aware Job Processing With JobRunr v8
Table of Contents What is JobRunr?Carbon Aware Job ProcessingCarbon Aware ConfigurationWhat If There Is No Forecast?Conclusion As we produce, mutate, configure, and consume more and more data in various shapes and forms, think: video on demand, AI ingestion and generation …
-
How to send prompts in bulk with Spring AI and Java Virtual Threads
Table of Contents Here’s the flow:Virtual Threads for Massive ParallelismSpring AI Prompt CallProcessing in BatchesHandling Errors GracefullyProcess Results in BulkFull ImplementationStay curious! TL;DR: You’re building an AI-powered app that needs to send lots of prompts to OpenAI. Instead of sending …
-
How to Deploy a Vaadin Application as a WAR on Tomcat 11
Table of Contents Step 1: Download Tomcat 11Step 2: Create a New Vaadin ProjectStep 3: Adjust the pom.xmlStep 4: Update the Spring Boot Application ClassStep 5: Build the Application for ProductionStep 6: Deploy the WAR to TomcatConclusion If you want to …
-
Building a Real-Time AI Fraud Detection System with Spring Kafka and MongoDB
Table of Contents What we are buildingPrerequisitesCreate our MongoDB databaseCreate a Vector Search indexCreate a Spring applicationSetting up configurationMongoDB configurationSpring AI configurationKafka configurationGenerate our synthetic customer profilesThe customer modelCustomer seedingHow the sample customers are structuredThe transaction modelGenerating random transactionsHow do …
-
Supercharge Your Jakarta EE Skills with These Must-Read Guides
Table of Contents Getting Started with Jakarta EE1. How to Start with Servlets2. How to Build a RESTful Web Service3. How to Store and Retrieve Data Using Jakarta Persistence4. How to Secure a RESTful Web ServiceUnderstand the Specs Behind the Scenes5. …
-
Optimizing the Garbage Collector when Migrating Cloud Workloads
Table of Contents Why GC Tuning Matters on ArmOpenJDK VersionChoosing the Right Garbage CollectorHeap Size and GC Pause TimeAdaptive Heap SizingClosing the feedback loopDeveloper Education for the Java CommunityNeed Assistance from Experts? Introduction to Java on Arm You might associate …
-
Clean your Memory: From Finalize to Cleaner
Table of Contents Why is the finalize() method deprecated/removed?How does Cleaner relate to Java Reference classes?Behind the scenes of CleanerCleaner vs. try-with-resourcesAvoid overusing CleanerConclusionFurther Resources Garbage collection in Java takes care of memory management, but it does not clean up …
-
Extending Java APIs – Add Missing Features Without the Hassle
Table of Contents ExtensionsExtension LibrariesExtending ArraysStructural InterfacesAdding AnnotationsFinal Word The Java API is vast. That’s great, but sometimes a missing method or capability can be frustrating. With Manifold, developers can solve this problem without having to wait for Java to …