Ricardo Mello

Avatar photo

Ricardo Mello

Ricardo is a Senior Software Engineer, focused on Java, Kotlin, and MongoDB, helping developers build secure, scalable, and cloud-native applications.

Do you want your ad here?

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

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

MongoDB Sharding: What to Know Before You Shard

Table of Contents Sharding as a horizontal scaling strategyUnderstanding a sharded cluster architectureShardsConfig serversMongosDistributing data in a sharded clusterWhen should you shard a collection?Vertical limits or costLarge datasetsFaster backup and restore timesHigh write or throughput requirementsZonal or regional data requirementsChoosing ...

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 …

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 …

Getting Started With Hibernate ORM and MongoDB

Table of Contents How MongoDB fits inPrerequisitesTag your Atlas clusterProject overviewSetting up the projectConfigure HibernateThe Book entityCreating the SessionFactoryImplementing the Book serviceRunning the applicationCurrent limitations (Public Preview)Wrapping up For years, Hibernate ORM has been one of the most popular frameworks …

Beyond Keywords: Optimizing Vector Search With Filters and Caching (Part 2)

Table of Contents Adding filters: From story to codeFirst try: Add a post-filter in MovieServiceSecond try: Use a pre-filterRefining the search with extra filtersApplying toCriteria() in the searchReducing embedding costs with cachingStrategy with @CacheableA minimal frontendStep 1: HTMLStep 2: JavaScriptStep …

Beyond Keywords: Implementing Semantic Search in Java With Spring Data (Part 1)

Table of Contents The magic behind vector searchPrerequisitesTag your Atlas ClusterEmbeddings 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 …

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 …

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 …

Clean and Modular Java: A Hexagonal Architecture Approach

One of the discussions that always leaves me with both doubts and excitement is the one about system architecture. Ever since I started diving deeper into programming, I’ve encountered questions like how to separate packages and modules: is it really …

MongoDB Aggregation Framework: A Beginner’s Guide

Table of Contents Aggregation pipelineAggregation stages$Match$Project$Unwind$Group$Sort$AddFieldsCombining stagesWrapping up Finding exactly the data we need isn’t always a simple task. You’ve probably faced situations where you needed to filter information, group it, and even perform calculations to produce a final result. …

Join the Community

Be a Part of Our Network

Mastodon

Subscribe to foojay updates:

https://foojay.io/today/author/ricardo-mello/feed/
Copied to the clipboard