Tim Kelly

Avatar photo

Tim Kelly

Developer Advocate, MongoDB

Do you want your ad here?

Contact us to get your ad seen by thousands of users every day!

[email protected]
Likes 0
Comments 1
Shares 0
Articles 9
Views 77,6K
Latest post

Abstracting Data Access in Java With the DAO Pattern

Table of Contents A simple implementationPrerequisitesThe domain classThe DAO APIThe ProductDao classUsing the DAOUsing MongoDB as the persistence layerSetting up MongoDBThe MongoDBProductDao classConnecting to MongoDBThe application classAdvanced considerationsPreventing business logic leakageAdding custom query methodsError handlingConclusion The Data Access Object (DAO) ...

Best Practices for Deploying MongoDB in Kubernetes

Table of Contents 1. Use the MongoDB Kubernetes Operator2. StatefulSets and persistent volumes: Running MongoDB the right wayExample: Recommended multiple volume configuration3. Set CPU and memory resources for MongoDB and the OperatorMongoDB Kubernetes Operator: Plan for initial spikesMongoDB replica set …

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 …

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, …

Your Complete Guide to Diagnose Slow Queries in MongoDB

Table of Contents 1. MongoDB’s Query ProfilerWhat we’ll needWhat is MongoDB’s Profiler?MongoDB Atlas Query Profiler in the Atlas UIA few important considerationsMongoDB Database ProfilerLet’s make something slow on purpose2. Understanding execution plans with explain()What we’ll needWhat is explain()?Verbosity modesLet’s use …

Understanding BSON: A Beginner’s Guide to MongoDB’s Data Format

Table of Contents What is BSON?Why not just JSON?BSON vs. JSONCommon BSON data types (and their Java equivalents)BSON and MongoDB internalsSetup and project structureBSON data types and document creationNested fields and arraysWhy use nested structures?Raw BSON manipulationQuerying with BSONAggregation with …

Building a Real-Time AI Fraud Detection System with Spring Kafka and MongoDB

Table of Contents What we are buildingPrerequisitesCreate our MongoDB databaseCreate a Vector Search indexCreate a Spring applicationSetting up configurationMongoDB configurationSpring AI configurationKafka configurationGenerate our synthetic customer profilesThe customer modelCustomer seedingHow the sample customers are structuredThe transaction modelGenerating random transactionsHow do …

Join the Community

Be a Part of Our Network

Mastodon

Subscribe to foojay updates:

https://foojay.io/today/author/tim-kelly/feed/
Copied to the clipboard