Recent Posts

How to Identify the Underlying Causes of Connection Timeout Errors for MongoDB With Java

Author: Rajesh Nair Original post on Foojay: Read More Table of Contents Network Configuration IssuesServer LoadResource Exhaustion App-Side Chaos: Java Threads or Memory Maxed Out, Leaving No Room for New MongoDB Connections Server-Side Crunch: MongoDB Running Out of File Descriptors or Ram on a Shared Host Connection Pool MisconfigurationIncorrect MongoDB URIConclusion Java developers and MongoDB are like Aladdin and the Genie from …

Read More »

Build a Sentiment Analysis API in Java with Quarkus and Local LLMs

Author: Markus Eisele Original post on Foojay: Read More Table of Contents What You’ll Build Prerequisites Bootstrap Your Quarkus Project Configure Ollama and Dev Services Define the Sentiment Enum Create the AI Classification Service Expose the Sentiment API Run It! Test It! Final Thoughts What’s Next? In a world full of opinions, tweets, reviews, chats, emails, understanding the tone behind …

Read More »

Benchmarking and profiling Java with JMH

Author: David Vlijmincx Original post on Foojay: Read More Table of Contents Introduction: Why JMH?DependenciesCreating your first benchmarkBenchmark modesState management Keeping the state correct Using state to create variants. Understanding JMH outputPrevent dead code optimizationsConstant foldingUsing async profiler with JMHBonus: Linux toolsConclusion Introduction: Why JMH? Performance matters in Java applications, but measuring it accurately is harder than you might think. …

Read More »