Java Articles by Foojay.io

January, 2025

  • 22 January

    Challenge yourself with Application Observability Code Challenges

    Author: Cees Bos Original post on Foojay: Read More Table of Contents What are the Application Observability Code Challenges?GoalsWhat do the code challenges look like?Your own stackOnline environment(s)The first challenge How to Get StartedChallenge details Code challenges are a nice way to challenge yourself with programming, resulting in some great challenges like #1brc and the yearly Advent of Code (#AoC). …

    Read More »
  • 21 January

    How JVM handles exceptions

    Author: Nataliia Dziubenko Original post on Foojay: Read More Table of Contents Example Exception table Bytecode instructions Try-catch-finally flow Less nice flow Summarized flow It’s interesting to know how the JVM runs bytecode instructions… But do you know what is going on when an exception is thrown? How does the JVM handle the delegation of control? What does it look …

    Read More »
  • 20 January

    Fixed Window Counter Rate Limiter (Redis & Java)

    Author: Raphael De Lio Original post on Foojay: Read More Table of Contents IndexHow It Works 1. Define a Window Interval 2. Track Requests 3. Reset Counter: 4. Rate Limit Check: How to Implement It with Redis and Java 1. Use the INCR command to increment the counter in Redis each time a request is allowed 2. Set the key …

    Read More »
  • 20 January

    Foojay Podcast #65: Boost Your Career in 2025!

    Author: Frank Delporte Original post on Foojay: Read More Table of Contents VideoPodcast (audio only)GuestsSouJava (JUG Brazil)Content With the first Foojay podcast of 2025, we want to help you to boost your career! By now, you’ve likely had your year-end performance review with your manager and set some goals to advance in the coming year. Are you ready to take …

    Read More »
  • 18 January

    The slow Death of the onjcmd Debugger Feature

    Author: Johannes Bechberger Original post on Foojay: Read More Table of Contents JCmd triggered debuggingSummaryProblemSolutionConclusion Almost to the day, one and a quarter years ago, I published my blog post called Level-up your Java Debugging Skills with on-demand Debugging. In this artucle, I wrote about multiple rarely known and rarely used features of the Java debugging agent, including the onjcmd …

    Read More »
  • 16 January

    Reflections on 2024: A Remarkable Year for OmniFish, GlassFish, Piranha, and Jakarta EE

    Author: Ondro Mihalyi Original post on Foojay: Read More As 2025 slowly gets started, it’s a perfect moment to reflect on what we at OmniFish have achieved this year. It has been a year of growth, innovation, and dedication to the open-source community and the products we’re deeply passionate about. From expanding our team to pushing the boundaries of what …

    Read More »
  • 15 January

    An Example of HACS: Adaptive Lighting

    Author: Nicolas Frankel Original post on Foojay: Read More Table of Contents The Home Assistant Community Store Adaptive Lighting Conclusion In the previous post of this focus, we replaced Philips Hue automation with the one from Home Assistant. One significant gap we noticed was that Home Assistant doesn’t automatically adjust the brightness according to the time of the day, a …

    Read More »
  • 13 January

    Rate limiting with Redis: An essential guide

    Author: Raphael De Lio Original post on Foojay: Read More Table of Contents Why Redis for Rate Limiting?Popular Rate-Limiting Patterns Leaky Bucket Token Bucket Fixed Window Counter Sliding Window Log Sliding Window Counter Choosing the Right Tool for the Job Understand Your Traffic Patterns Assess the Level of Precision Needed Consider Resource Constraints Account User Experience Stay curious! This article …

    Read More »
  • 9 January

    Make the Life of your Developer Client’s Easier with Smart Object Builders

    Author: Maximillian Arruda Original post on Foojay: Read More Table of Contents The scenario: The complex object The traditional approach: Telescoping constructors Favor Static Factory Methods over Class Constructors Many parameters? Use the Builder pattern Restricts the order of method calls in the Builder pattern Conclusion Key Takeaways Final Thoughts We often hear the phrase: “Make the life of your …

    Read More »
  • 8 January

    Integrating Google Analytics With Vaadin Flow: A Step-By-Step Guide

    Author: Simon Martinelli Original post on Foojay: Read More Table of Contents PrerequisitesCreating the Analytics ComponentUsing the Component Step 1: Add To Main Layout Step 2: Track Custom Events How It WorksBest PracticesCommon Use CasesConclusion Want to track how users interact with your Vaadin Flow application? Learn how to integrate Google Analytics with a clean, reusable component. This guide shows …

    Read More »