Table of Contents Finding usage of ThreadLocalThe TransactionSynchronizationManager classHow transactions use TransactionSynchronizationManagerWhat about Reactive transaction management?Discussion Two years ago, my friend José Paumard held the talk “Concurrent and Asynchronous Programming : Loom” at the Geneva Java User Group. In his …
-
Beyond Keywords: Implementing Semantic Search in Java With Spring Data (Part 1)
Table of Contents The magic behind vector searchPrerequisitesEmbeddings with Voyage AIPreparing the datasetMongoDB Atlas Vector Search (index and retrieval)Building the movie search appConfiguring the applicationThe document modelWire the request DTOCommunicating with Voyage AIThe EmbeddingServiceQuerying with Spring Data Vector Search operationThe …
-
Building REST APIs in Java with Spring Boot
Table of Contents How can Spring help?PrerequisitesCreating our appConnecting our databaseOur Book modelBook repositoryOur REST controllerCreateReadUpdateDeleteAdding DTOs and validationBookRequestBookResponseUpdating the controllerTesting the APIRun the APICreateReadUpdateDeleteConclusion REST has become the default choice for building web services, and for good reason. It’s …
-
Queryable Encryption With Spring Data MongoDB: How to Query Encrypted Fields
Table of Contents Why Queryable Encryption?A quick look at Spring Data MongoDBUse case: HR system with encrypted fieldsSetting up the projectConfiguring dependencies and propertiesAdding mongodb-cryptApplication.yml configurationAccessing properties in the codeBuilding the application layersThe domain modelThe repositoryThe serviceThe controllerSetting up encryptionConfiguring …
-
OpenTelemetry Tracing on the JVM
Table of Contents CommonalitiesRunning the OpenTelemetry AgentMicrometer Tracing on Spring BootOpenTelemetry Spring Boot StarterQuarkusDiscussion You may know I’m a big fan of OpenTelemetry. I recently finished developing a master class for the YOW! conference at the end of the year. …
-
Preparing for Spring Framework 7 and Spring Boot 4
Table of Contents 1. Built-in Resilience Feature2. Fluent JMS Client API3. Robust Api Versioning4. Unified Message Conversion5. Faster and Smarter Testing6. Modern Ecosystem Integration7. Hibernate ORM and JPA Upgrades8. Overhauled HttpHeaders API9. Support for Jackson 3.x10. Null Safety using JSpecify1. …
-
Agent Long-term 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 …
-
🚀 Document Your Spring Boot APIs with Redocusaurus in Minutes 🦕
Document Your Spring Boot APIs with Redocusaurus in Minutes
-
Spring Boot + Kafka Streams: Event Routing & Testing
Learn how to do Kafka Stream with Spring Boot! 🍃 With a city tour visits system…
-
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 …