-
Build a Sentiment Analysis API in Java with Quarkus and Local LLMs
Table of Contents What You’ll BuildPrerequisitesBootstrap Your Quarkus ProjectConfigure Ollama and Dev ServicesDefine the Sentiment EnumCreate the AI Classification ServiceExpose the Sentiment APIRun It!Test It!Final ThoughtsWhat’s Next? In a world full of opinions, tweets, reviews, chats, emails, understanding the tone …
-
Benchmarking and profiling Java with JMH
Table of Contents Introduction: Why JMH?DependenciesCreating your first benchmarkBenchmark modesState managementKeeping the state correctUsing 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 …
-
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 …
-
Save Time and Money by Reducing False Positives
Table of Contents The Production Scanning ChallengeHow AVD Architecture WorksDeployment Tagging and ReportingReducing False Positives Through Production ScanningClass-Level Precision for Maximum Efficiency Recently Azul announced that AVD (Azul Vulnerability Detection), which is our solution to scan for security vulnerabilities in …
-
How to Train ReadyNow to Achieve Optimal Java Performance
Table of Contents Understanding ReadyNow generationsTIPWhen using the ReadyNow Orchestrator feature of Optimizer Hub, the creation of a promoted profile is handled automatically. This will be explained in the next blog post in this series.Possible approachesTIPTo reach an optimal profile, …
-
Spring Boot + Kafka Streams: Event Routing & Testing
Learn how to do Kafka Stream with Spring Boot! 🍃 With a city tour visits system…
-
Java, What’s Old? Part I: Collections
Table of Contents OptionalStatisticsLinkedHashMapWeakHashMapBitSet A few weeks ago, I had the honor to present at the Arnhem JUG in the Netherlands about “Java, What’s old?” In this series, I’m focusing on what’s old in the JDK, not that known, and …
-
Foojay Podcast #73: JCON Report, Part 2 – Evolutions in the Java Language and Runtime
Table of Contents VideoPodcast (audio only)Content In the second part of our JCON interviews, recorded at the conference in May, we focuses on general evolutions within the Java world and how they influence how we write code and develop applications. …
-
Java Concurrency Best Practices for MongoDB
Table of Contents Lost updatesDirty readsNon-repeatable readsPhantom readsHow to avoid these issuesIsolationRead concernWrite concern In a multi-threaded, distributed environment like MongoDB, when clients execute queries concurrently, operations interleave with one another if they are not isolated, whether those operations involve …
-
Performance Best Practise No. 1: Optimize Database Operations
Table of Contents How GlassFish helps with improving database performanceConnection pool configurationJDBC batchingJakarta Persistence (JPA) batchingNext Steps Database operations are a very critical part of most applications in regards of performance. There are multiple reasons why database operations can significantly …