paluch.biz paluch.biz paluch.biz
  • Home
  • Blog
  • About me
  • Conferences
  • Impressum
  •  
  •  
  •  

Introducing Code to reduce Code

Details
Created: 26 January 2021

How adding a functional utility helps to avoid code duplications and leads to more readable code.

In Spring Data Redis, we support multiple Redis clients – Jedis and Lettuce.
Commands can be invoked either directly, in a transaction, or using pipelining.

Direct commands get invoked – as the name probably reveals – directly by calling a client method and returning the result. In some cases, results require post-processing because the Redis driver reports a Long while Spring Data Redis would like to return Boolean or the driver returns a driver-specific type that requires conversion in a Spring Data type.

Read more ...

Carrier Kernel Thread Pinning of Virtual Threads (Project Loom)

Details
Created: 28 September 2020

In my previous blog post I started an experiment with using Project Loom. The post outlined the first steps to make use of virtual Threads on a best-effort basis (i.e., without rewriting the entire libraries involved, instead fixing issue by issue until it works™).

Read more ...

Experimenting with Project Loom EAP and Spring WebMVC

Details
Created: 25 September 2020

This article walks you through a experiment that uses a Spring Boot application with Virtual Threads. Having access to early access builds is the perfect opportunity to take a look what it takes to use virtual threads as worker threads. With all customizations in place, we issue a few request to verify that our application is running. Finally, we put a bit of load onto the application to see how memory consumption and the number of kernel threads develop over time.

Follow-up post: Carrier Kernel Thread Pinning of Virtual Threads (Project Loom).

Read more ...

Data Classes Considered Harmful

Details
Created: 03 July 2019

This blog post explains the motivation behind removing Project Lombok from one of the projects to which I contribute. It reflects my personal opinion and is not discouraging particular technologies.

About three years ago, I got to know Project Lombok, a library that spices up Java code. I liked it from the beginning as it contributes so much useful functionality. I work a lot with entities (data classes) and value objects, so it does not come as a surprise that @Data or Kotlins data class are very convenient. You get more bang for the buck – literally.
I’m mentioning Kotlin here because it shares some of the properties that we also get from Lombok.

Read more ...

News

  • Introducing Code to reduce Code
  • Carrier Kernel Thread Pinning of Virtual Threads (Project Loom)
  • Experimenting with Project Loom EAP and Spring WebMVC
  • Data Classes Considered Harmful
  • Reactive Relational Database Transactions

Links

Maven Configurator Plugin
Logstash/Gelf Loggers
lettuce Redis Client
Resume/Kurzprofil

 
Mastodon mp911de Community Profil