Table of Contents What is Liquibase?What is MongoDB?Setting up a local MongoDB instance on WindowsUse Liquibase with MongoDBPrerequisitesInstall supporting driversConnection configurationConnection testHands-on execution steps detailed1. Create project and add files2. Project structure in VS Code3. Lifecycle of Liquibase4. Verify the …
-
Domain-Driven Design in Java: A Practical Guide
Table of Contents Understanding the “Airport” domainModeling the core Airport domain in JavaIdentifying aggregates and entitiesImplementing entities and value objectsBounded contexts and modularizationRepositories, domain services, and factoriesRepositoriesDomain servicesFactoriesApplication layer and integrationTesting and evolving the modelComplete DDD implementation source codeTesting scenarios …
-
Enforcing Governance in MongoDB Atlas with Resource Policies
Table of Contents What Are Resource Policies?Why Use Them?Available CapabilitiesApplying Resource Policies with Terraform🔐 Example 1: Allow clusters only on AWS🌐 Example 2: Block public IPs (0.0.0.0/0)🔒 Example 3: Enforce TLS 1.2 or higherValidation and Testing🚫 Attempt to create a …
-
Why Mirroring Production in Dev Helps You Avoid Costly Mistakes
Table of Contents The setup: A realistic aggregation scenarioThe application behind the testTesting on M0: The hidden riskTaking it to production: Same query, different outcomeReal-time metrics: Detecting the bottleneckQuery insights: The detective toolDon’t guess, let Performance Advisor show the wayResilience …
-
MongoDB ACID Transactions With Java
Table of Contents What are MongoDB ACID transactions and when should you use them?But do you really need a transaction?Transaction APIs: Callback vs coreWhen to use the callback APIWhen to use the core APISetting up: A simple banking examplePrerequisitesConnecting and …
-
How to Make a RAG Application With LangChain4j
Table of Contents Why use RAG?Use cases for RAGLangChain4J for RAGMongoDB for RAGPrerequisitesOur dependenciesSetting up MongoDB and our embedding storeMongoDB setupConfiguring the embedding storeCreating our embedding modelConfiguring our chat modelHow to load our dataParametersCreating our content retrieverAsking questionsConclusion Retrieval-augmented generation, …
-
The Great Data Reimagination: From Static to Agile in the AI Era
Table of Contents The Data Architecture Identity CrisisThe Adaptive Approach: Prioritizing Developer SpeedAI-Native Platforms Are the Future We’re in the middle of a fundamental change in how enterprise software works. In the next decade, your database will become your AI. …
-
Building a Spring Boot CRUD Application Using MongoDB’s Relational Migrator
Table of Contents Pre-requisitesRelational MigratorMigrating the data from the PostgreSQL schema to MongoDBAnalysing the Postgres schemaCreating mappings to generate the equivalent MongoDB schemaMigrating the data into MongoDBCode generation with Relational MigratorBuilding Spring Boot applicationExamples of aggregation pipelinesConclusion Imagine this: You’re …
-
Data Modeling for Java Developers: Structuring With PostgreSQL and MongoDB
Table of Contents Relationships in databasesOne-to-one relationshipOne-to-many relationshipMany-to-many relationshipRelational vs. document databasesPostgres implementation with JavaMongoDB implementation with JavaScalability and performanceMigration considerationsRethinking schema designReplacing joins with aggregationsConclusion Application and system designs have always been considered the most essential step in application …
-
Java Virtual Threads in Action: Optimizing MongoDB Operation
Table of Contents PrerequisitesStep 1: Create the Product entityStep 2: Create the ServiceStep 3: Expose the Camera APIStep 4: Build and run the applicationStep 5: Test the APIConclusion Virtual threads have become one of the most popular resources in Java …
-
How to Identify the Underlying Causes of Connection Timeout Errors for MongoDB With Java
Table of Contents Network Configuration IssuesServer LoadResource ExhaustionApp-Side Chaos: Java Threads or Memory Maxed Out, Leaving No Room for New MongoDB ConnectionsServer-Side Crunch: MongoDB Running Out of File Descriptors or Ram on a Shared HostConnection Pool MisconfigurationIncorrect MongoDB URIConclusion Java …