Table of Contents Stage 1: Network Arrival & Task DispatchStage 2: OperationContext & ACL/ParsingStage 3: PlanCache Lookup & Query PlanningStage 4: SBE Execution & Cooperative YieldingStage 5: WiredTiger MVCC, Cache & JournalingStage 6: Index Mastery & Pre-SplitsStage 7: Replication & …
-
Building Java Microservices with the Repository Pattern
Table of Contents What you’ll learnThe Spring standard repositoryCustom repository functionsWhen requirements changeThe double-edged sword of Spring updates in MongoDBIncreased network trafficOplog bloat and replacing documentsWhy schema and indexing matterConclusionFurther reading What you’ll learn The repository pattern is a design …
-
Spring Boot 4 OpenTelemetry Guide: Metrics, Traces, and Logs Explained
Table of Contents Key TerminologyWhy OpenTelemetry?Step-by-Step GuideTesting with Docker ComposeConclusionReferences In my previous article, I outlined a comprehensive list of features introduced in Spring Framework 7 and Spring Boot 4. In this series of articles, we will explore these features in …
-
Optimizing MongoDB Queries in Java Applications
Modern Java applications often struggle with performance bottlenecks that have little to do with the JVM itself. In most cases, the culprit lies deeper in how the application interacts with its database. Slow queries, missing indexes, or inefficient access patterns …
-
Building Systems That Know Why They Exist ~ When Data, Logic, and Intent Finally Align
Every software system begins with intent. A human decision. A statement of what should exist, how it should behave, and why it matters. But somewhere along the way, that intent dies. It’s decomposed into documentation, user stories, and scattered logic. …
-
Atlas Searching with the Java Driver
Table of Contents New to search?Setting up our Atlas environmentOpening network accessIndexing sample dataClick, click, click, … code!Our coding project challengeKnow the $search structureNow back to your regularly scheduled JavaJava $search buildingAnd the results are…For further informationBonus section: relevancy scoringSearching …
-
Navigating the Nuances of GraphRAG vs. RAG
Table of Contents RAG: The Baseline Approach Based on EmbeddingsGraphRAG: Connecting the Dots with Knowledge GraphsTowards Hybrid Approaches and Unified PlatformsBuilding Reliable AI Apps While large language models (LLMs) hold immense promise for building AI applications and agentic systems, ensuring …
-
Service Layer Pattern in Java With Spring Boot
Table of Contents What you’ll learnWhat is the Service Layer pattern?Why use a service layer?How the Service Layer fits with MVCTraditional MVCMVC + Service LayerA real example: User management serviceThe scenarioStep 1: The domain modelStep 2: The repository interfaceStep 3: …
-
Beyond Keywords: Hybrid Search with Atlas And Vector Search (Part 3)
Table of Contents One search might not be enoughMerging the best of both worldsPrerequisitesThe vector searchThe full-text searchImplementing the full-text indexExecuting a basic text queryImproving the experience with fuzzy searchRefining results with score boostingCombining forces with hybrid searchThe $rankFusionHow to …
-
The Cost of Not Knowing MongoDB – Part 3: (appV6R0 to appV6R4)
Table of Contents Application version 6 revision 0 (appV6R0): A dynamic monthly bucket documentSchemaBulk upsertGet reportsIndexesInitial scenario statisticsLoad test resultsIssues and improvementsApplication version 6 revision 1 (appV6R1): A dynamic quarter bucket documentSchemaBulk upsertGet reportsIndexesInitial scenario statisticsLoad test resultsIssues and improvementsApplication …
-
Modeling Relationships With Hibernate ORM and MongoDB
Table of Contents PrerequisitesOne-to-many relationshipApproach 1: Embedding reviews inside booksApproach 2: Moving reviews to a separate collectionApproach 3: Bringing back recent reviews (Subset Pattern)Implementing the Subset PatternTesting the featureWrapping up In the previous article—Getting Started With Hibernate ORM and MongoDB—we …