Table of Contents A story about legacyEvaluating SpEL expressionsImplementing the audit adviceTesting the audit aspectImprovementsFootnotes In this article, we’ll implement a declarative API to perform tasks belonging to cross-cutting concerns, using auditing as an example. We’ll see how SpEL and …
-
Foojay Podcast #66: Let’s Talk About Java Code! Diving into a few Foojay blog posts…
Table of Contents VideoPodcast (audio only)GuestsLinksContent In this Foojay podcast, we dive into a few articles that were published recently and focus on code. Video Podcast (audio only) Guests Links Content 00:00 Introduction of the topics and guests 00:55 Wim …
-
Spring Data Neo4j: How to update an entity
Table of Contents Spring save() methodPatch YearCustom CypherProjectionsProjection as MovieMovie entity as projectionWrapping Up!Resources After working on a new online Spring Data Neo4j course, I learned a couple more things about updating an entity. The course required a different set …
-
Sliding Window Log Rate Limiter (Redis & Java)
Table of Contents IndexHow 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 IndexHow 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 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 …