Building Distributed HTTP Sessions with Spring Session MongoDB
Table of Contents PrerequisitesProject DependenciesSpring WebSpring Data MongoDBMongoDB Spring SessionApplication ConfigurationBootstrapping the ApplicationEnabling MongoDB HTTP SessionsBuilding the Theme APIRunning the ApplicationTesting Session Behavior with curlReusing the SessionInspecting the Session in MongoDBWhy This MattersConclusion Spring Session MongoDB is a library that ...
-
Thread-Safe Native Memory in Java: VarHandle Access Modes Explained
Table of Contents What is Memory Order and Why Does It Matter for Native Memory?Why do you need all of this?Testing it using JCStressPlain Access (Get/Set)Opaque AccessAcquire/ReleaseVolatileTL;DRConclusionBonus: Word Tearing What is Memory Order and Why Does It Matter for Native …
-
From Zero to Full Observability with Dash0
Table of Contents Before: A Service with No ObservabilityPart 1: Build the ApplicationPart 2: Containerize and PublishPart 3: Deploy to KubernetesPart 4: Generate Traffic (the Before State)After: Adding Observability with the Dash0 OperatorPart 5: Install the Dash0 OperatorPart 6: Configure …
-
Introducing Floci: A High-Performance, GraalVM-Powered AWS Emulator
Table of Contents The Motivation: Why Another AWS Emulator?Technical Edge: Built with Java and GraalVMFeature CoverageGetting StartedJoin the Floci Community The Motivation: Why Another AWS Emulator? As Java developers, we are used to local-first development. Tools that emulate the cloud …
-
Does Java Really Use Too Much Memory? Let’s Look at the Facts (JEPs)
Table of Contents The reputation didn’t come out of nowhere.Modern Java: What Actually Changed?1. Garbage Collection Is Not What It Used to Be2. Threads Got Lighter (Much Lighter)3. Java Objects Are Literally Getting Smaller4. The JVM Learned to Share (CDS)5. …
-
Java Faceted Full-Text Search API Using MongoDB Atlas Search
Table of Contents Let’s build!Prerequisites1. Project setup2. COCO dataData modelRunning MongoDB AtlasData ingest into MongoDB AtlasCreating an Atlas Search indexExample search3. Java service implementation4. Java searchPagingFilter clausesFacetsSearch(Optional) Refactoring to a better structureWrapping up This is going to be a fun, …
-
Atlas Search Score Breakdown
Table of Contents Relevancy riddleScore detailsLucene insideLucene indexingLucene scoringBest matchesBreaking down the score detailsPretty printing the score detailsMystery solved!Compound is kingBoosting clausesRelevancy tuning: a delicate balance Full-text search powers all of our digital lives — googling for this and that; …
-
Modeling One-to-Many Relationships in Java with MongoDB
Table of Contents What You’ll LearnPrerequisitesProject SetupConfiguring the MongoClient with POJO SupportWhat Is a One-to-Many Relationship in Java?How Does MongoDB Store Documents Differently Than a Relational Database?Pattern 1: Embedded DocumentsWhen Should You Embed?Modeling Embedded Documents in JavaInserting and Querying Embedded …
-
Spring Boot Actuator Health for MicroProfile Developers
Table of Contents The Conceptual BridgeThe Conceptual BridgeEndpoint MappingWriting Health ChecksWriting Health ChecksAuto-Configured Health IndicatorsResponse Format and Status CodesSecurity ConsiderationsActuator’s Extended CapabilitiesPractical Migration TipsConclusions If you worked with MicroProfile Health, you already understand the value of exposing application health information …
-
Does Language Still Matter in the Age of AI? Yes — But the Tradeoff Has Changed
Table of Contents The Bottleneck Has MovedAI Produces Code Faster Than Teams Can Review ItWhy Verbose Languages Are Making a ComebackBoilerplate Is Now SignalThe research backs this upWhat this means in practiceThe Other Half: Runtime PerformanceThe benchmarks tell the storyWhere …
-
How We Built a Java AI Agent by Connecting the Dots the Ecosystem Already Had
Table of Contents What does an AI agent need?Spring AI: the LLM layerSpring Events: instant multi-channel supportJobRunr: the piece nobody thinks aboutSpring Modulith: keeping it extensibleWhat ClawRunr can do todayTry it Everyone assumes you need Python to build AI agents. …