Table of Contents IndexHow It Works1. Define a Window Interval2. Track Requests3. Reset Counter:4. Rate Limit Check:How to Implement It with Redis and Java1. Use the INCR command to increment the counter in Redis each time a request is allowed2. …
-
The slow Death of the onjcmd Debugger Feature
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 …
-
Make the Life of your Developer Client’s Easier with Smart Object Builders
Table of Contents The scenario: The complex objectThe traditional approach: Telescoping constructorsFavor Static Factory Methods over Class ConstructorsMany parameters? Use the Builder patternRestricts the order of method calls in the Builder patternConclusionKey TakeawaysFinal Thoughts We often hear the phrase: “Make …
-
Integrating Google Analytics With Vaadin Flow: A Step-By-Step Guide
Table of Contents PrerequisitesCreating the Analytics ComponentUsing the ComponentStep 1: Add To Main LayoutStep 2: Track Custom EventsHow It WorksBest PracticesCommon Use CasesConclusion Want to track how users interact with your Vaadin Flow application? Learn how to integrate Google Analytics …
-
The Proper Way to Define Configuration Properties in Spring
Upgrading from Spring Boot 2 to 3 forced me to define my configuration properties in a better way.
-
AI-powered Chat Application using IBM watsonx.ai and Spring AI
Table of Contents PricingIBM watsonx.aiCreating IBM watsonx.ai Chat-based ApplicationPrerequisitesConfigurationsChatbotChat ApplicationBasic ChatStreaming Chat Generative Artificial Intelligence (Gen AI) disrupted enterprises with the introduction of GPT-4 foundation model by Open AI in the late 2022 to early 2023 triggering big tech to …
-
Pseudorandom Number Generator – The Secret Behind Santa’s Gift Bag
Table of Contents Random Numbers and Why They MatterRandom Number GeneratorsPseudorandom Number Generators in JavaConclusion On a snowy Christmas Eve, Santa sets off on his journey around the world, gliding through the night sky on his sleigh to deliver presents …
-
Issues with old GlassFish server? Upgrade to Eclipse GlassFish!
Table of Contents Jakarta EE Standardization and FlexibilityCompatibility with new Java versionsEnhanced Security with Modern ProtocolsSupport for HTTP/2, REST and JSON EnhancementsCloud-Native Readiness and ContainerizationConclusion Rely on hardened and production-ready Eclipse GlassFish 7 or newer. Benefit from key feature updates and …
-
Foojay Podcast #64: Interviews at JFall about open source, OpenJDK evolutions, Project Loom, JVM, and more!
Table of Contents VideoPodcast (audio only)GuestsContent Let’s wrap up this year with more interviews from the JFall conference. In this episode you’ll learn more about Foojay, JVM internals and writing your own programming language, Project Loom and structured concurrency, learning …
-
Foojay Podcast #63: How do we keep our Java applications up to date and secure?
Table of Contents Last month, I published a Foojay article about the risks in systems that are stuck on old or outdated Java versions and got a lot of feedback from developers. Most of them want to move on but …
-
Run a Java Lambda Function From a Docker image
Table of Contents PrerequisitesDevelopmentMaven ArchetypeLambdaDockerBuilding the projectDeploymentSupporting AWS InfrastructureUpload DockerLambda DeploymentSAM Deployment (Alternative)TestingLocal TestingRemote TestingReferences Have you ever wanted to deploy a Java Serverless function, but package it with a Docker Image? That is possible now with AWS new Container …