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. …
-
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 …
-
Exploring New Features in JDK 23: Module Design Pattern with JEP-476
Table of Contents Module design pattern before Java 9Pushing modularization forward with JEP-476ConclusionReferences Although the module design pattern can be implemented in many different ways, the main motivation behind using it remains the same. This is the isolation of a …
-
Exploring New Features in JDK 23: Just-Write-And-Run prototyping with JEP-477 not only for beginners
Table of Contents It seems like it’s never been easier to start writing a simple program that can be turned into a more advanced one as development progresses. Let’s explore possibilities delivered by JDK 23 release.Analyzing, Parsing and understanding dataConclusionReferences …
-
Book Review: Mastering the Java Virtual Machine
Table of Contents Part 1: Understanding the JVMPart 2: Memory Management and ExecutionPart 3: Alternative JVMsPart 4: Advanced Java TopicsConclusionRecommendation Otávio Santana’s “Mastering the Java Virtual Machine” takes readers on an insightful journey through the inner workings of the JVM. …
-
Deep dive into bits, bytes, shorts, ints, longs, signed, and unsigned with Java
Table of Contents The Basics: BitsBits to ByteValue Ranges in JavaDifference between Byte, Short, Integer and LongMinimum and maximum values in JavaSigned versus UnsignedUsing MasksUsing Helper MethodsSame Approach for ShortExample use of BitsConclusionRemark On the Pi4J discussion list, someone recently …
-
Exploring New Features in JDK 23: Gatherers upgrades pipeline design pattern JEP-473
Table of Contents Expanding intermediate functions with JEP-461Collection of build-in gatherersConclusionReferences Source-code flexibility goes hand in hand with maintainability and testability. The Java language benefits not only from its maturity but also from the fact that it is strongly typed. …
-
Exploring New Features in JDK 23: Builder Pattern Simplicity with JEP-455 Primitive Types in Patterns, instanceof, and switch (Preview)
Table of Contents Building a vehicleConclusionReferences The runtime initiation of any program requires allocating a given memory and after many additional steps the first object could be created. In a previous post, we explored how to improve maintainability of complex …
-
Get Recognized for your Cloud-Native Java Development Skills with this New Badge
Earn this brand-new badge, recognizing your ability to effectively develop basic cloud-native Java applications ready for the cloud.
-
Creating cloud-native Java applications with the 12-factor app methodology
Learn how you could create cloud-native Java apps that are portable, scalable, and reliable with the 12 factor app methodology.
-
Java: Demystifying The Stream API – Part 3
Dive into the world of Stream API in Java using Lambda Expressions, Method References, and Functional Interfaces.