Latest Posts

Entwicklungspraxis July 10, 2023

Nobody Talks About Project Loom

Hi,

“Why isn’t anyone talking about Project Loom?

On the JVM, one of the largest changes in years is looming over us.

And it will massively influence the way we work.

Asynchrony is difficult. There’s so much to consider:

How do I configure my thread pool? Does the code path have more wait-time, or does it take a long time to calculate? And how large should the queue be in front of the thread pool? Are spikes in the code path to be expected?


Entwicklungspraxis July 5, 2023

Hibernate ORM: Eager or Lazy Loading? When to Use Each

Hibernate is a well-established Object-Relational Mapping (ORM) framework that is widely used in Java development. This framework helps developers optimize the code for database operations such as fetching data. Choosing the right fetching strategy - Eager Loading or Lazy Loading - is crucial for your application’s performance. In this article, we will examine these two strategies and discuss when and how you should use them in your Spring Data project.


Entwicklungspraxis July 3, 2023

Are You a Carpenter?

Hi,

What distinguishes a software developer from a carpenter?

The carpenter produces furniture. The developer creates software.

Imagine you go to a carpenter. You enter the workshop, see various materials, tools, finished and unfinished pieces of furniture. The foreman approaches you.

He asks you about your preferences. You want a table. With an inset plexiglass top. For outdoor use.

Matching your preferences and with his expertise, he selects the right wood. For outdoor use, it needs to be a weather-resistant material. It shouldn’t warp significantly to prevent the inset top from breaking.


Entwicklungspraxis June 29, 2023

Write your own PasswordEncoder. NOT!

Hi,

Have you ever written your own password encoder? I haven’t exactly - but I had to use a homemade one. In a central User-Management-Service, the customer data of all users came together. And in this, the passwords were stored. Thus, when registering a new user, the same encoder had to be used.

In practice - fortunately - it did not blow up in our faces. But it was highly critical. The encoding was not strong. The Salt was still based on MD5. Even at that time, it was no longer a strong hashing algorithm. The trivial solution to make it “safer”: Simply apply it twice. No one will think of that 🤦‍♂️


Entwicklungspraxis June 28, 2023

How to Define an Index with Spring Data JPA

In this article, we will deal with the definition of indexes in Spring Data JPA and the Hibernate Framework. Our focus is on defining an index for a non-primary key and using the @Index annotation.

The proper use of indexes plays a crucial role in optimizing the performance of your database, as they enable faster data queries and overall improve database performance.

Defining an Index with the @Index Annotation

With JPA and Hibernate, you can define indexes on entities and non-entity tables such as @SecondaryTable, @CollectionTable, and @JoinTable using the @Index annotation. This serves to optimize database performance and customization.


Top