When being Lazy pays off: Kotlin Objects and NoClassDefFoundError

One of my favorite concepts in Kotlin is the "Object" class. A quick refresh: A normal "class": class ExampleClass(arg1: String) An "object" is very similar in syntax as can be seen below, but comes with a crucial difference: it is a singleton. object ExampleObject There's a lot of debate around Singletons being evil or not... … Continue reading When being Lazy pays off: Kotlin Objects and NoClassDefFoundError

Advertisement
Privacy Settings

Rate Limiting Spring Reactive Web APIs (Bucket4J)

Based on a couple of other good guides out there - see reference [1]. Updated for Spring Reactive Webflux Goal Rate limiting within Reactive Spring Web can be achieved in a number of ways so to expand on a couple of different scenarios we define the following goals: Rate limit all API calls by session … Continue reading Rate Limiting Spring Reactive Web APIs (Bucket4J)