-
Sliding Window Log Rate Limiter (Redis & Java)
Table of Contents How It Works1. Define a Time Window2. Track Requests3. Remove Expired Entries4. Rate Limit CheckHow to Implement It with Redis and Java1. Log Each Request (If Allowed)2. Remove Expired Entries3. Count Requests in the Time WindowImplementing it …
-
Project Loom: Structured Concurrency – Java
Table of Contents What is Structured Concurrency?How Structured Concurrency Works?Benefits of Strutured ConcurrencyConclusionReferences In today’s era of cloud computing, where high-performance infrastructure is readily available, developers face a complex challenge in achieving efficient concurrency. While modern technological advancements have brought …
-
Token Bucket Rate Limiter (Redis & Java)
Table of Contents How It Works1. Define a Token Refill Rate2. Track Token Consumption3. Refill Tokens4. Rate Limit CheckHow to Implement It with Redis and Java1. Retrieve current token count and last refill time2. Refill tokens if necessary and update …
-
Receiving Mails in Java with IMAP or POP3
Table of Contents Receiving mailsConnecting to the ServerProcessing MailsSanitizing received MailsUsageTesting I was recently in need to write some small demo project which was receiving and processing mails. There is a lot of documentation for sending mails, but gathering information …
-
Challenge yourself with Application Observability Code Challenges
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 …
-
How JVM handles exceptions
Table of Contents ExampleException tableBytecode instructionsTry-catch-finally flowLess nice flowSummarized 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 …
-
Fixed Window Counter Rate Limiter (Redis & Java)
Table of Contents How 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 …