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 …
-
GenAI blood, sweat, and tears: Loading data to Pinecone
Table of Contents Getting startedIssue #1: APIs, SDKs, and rapid changeIssue #2: ConfigIssue #3: JSON formatIssue #4: Loading data to Pinecone1. Metadata keysAlternative embeddings – Book descriptionsWrapping up!Resources As someone who is pretty familiar with relational and graph databases, I …
-
Building FormPilot: My Journey Creating an AI-Powered Form Filler with RAG, LangChain4j, and Ollama
Table of Contents The InspirationThe ArchitectureGetting Started: Setting Up Your EnvironmentPart 1: Installing and Running Ollama LocallyPart 2: Creating the Spring Boot Project via Spring InitializrImplementing RAG with LangChain4jThe Magic of LangChain4j’s @AiServiceIntegrating with OllamaBuilding the Chrome ExtensionSetting up the …
-
Local AI with Spring: Building Privacy-First Agents Using Ollama
Table of Contents IntroductionConfiguring OllamaSpring AI + Ollama: a perfect match!Setting up the projectEnough talk, show me the codeA quick detour on FastMCPConclusion Introduction Building local AI agents with Spring AI and Ollama has emerged as a game-changer for developers …
-
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 …
-
Breaktime Tech Talks (Ep38): Spring AI Debugging + How to Contribute to Open Source
Table of Contents Vector database architectureJSON formattingPinecone configurationConfiguring multiple vector storesWhy and how to participate in open sourceWrapping up! In this episode, I continue my journey with vector databases, integrating Pinecone, Neo4J , and Spring AI. While making some progress, …
-
Breaktime Tech Talks (Ep37): Vector Database Frustration + Microsoft LazyGraphRAG
Table of Contents Devnexus conference shout-outVector database explorationIssues getting up and runningOverall experienceMicrosoft LazyGraphRAGWrapping up! This is episode 37 of the Breaktime Tech Talks. You are listening to the Breaktime Tech Talks podcast, a bite-sized tech podcast for busy developers, …
-
Spring Cloud Stream: Demystifying Event-Driven Architecture
Table of Contents Why Event-Driven Systems?What Are Event-Driven Systems?Key drivers:Why Now?The Architecture of Event-Driven SystemsKey BenefitsCommunication in MicroservicesPopular Message BrokersCloud-Based Messaging SystemsScaling and Fault Tolerance in Event-Driven SystemsFault Tolerance MechanismsReal-Time and Streaming DataStream Processing LibrariesChallenges of Event-Driven ArchitectureCAP Theorem and …
-
Securing Vaadin Applications with Microsoft Entra
Table of Contents Step 1: Create an Application in EntraCreate App RoleAssign UsersCreate Client SecretStep 2: Configure OAuth2 with Entra in our ApplicationAdd DependenciesConfigure the ApplicationEnable Entra SecurityConfigure Role PrefixRoles in ActionStep 3: Setup Karibu TestingSummary Many companies use Microsoft …
-
Building a Declarative API with Spring AOP and SpEL
Table of Contents A story about legacyEvaluating SpEL expressionsImplementing the audit adviceTesting the audit aspectImprovementsFootnotes In this article, we’ll implement a declarative API to perform tasks belonging to cross-cutting concerns, using auditing as an example. We’ll see how SpEL and …