Learn Micrometer and Prometheus in Spring Boot by building a Kafka Burger Orders app that emits metrics. Step-by-step guide with code and takeaways.
-
Explore Spring Framework 7 Features—API Versioning
Table of Contents What is API versioning?API Versioning In ActionImport the Project into your IntelliJ IDEAAnnotation-Based Approach In my previous article, I outlined a comprehensive list of features introduced in Spring Framework 7 and Spring Boot 4. In this series …
-
Transactions and ThreadLocal in Spring
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