Latest Posts

Entwicklungspraxis August 9, 2023

The Optimal Thread-Pool Size in Java: Explaining the Formula

Determining the optimal size of a thread pool in Java is crucial to maximizing CPU and resource utilization. This decision depends on many factors. Here, we’ll show you how to use the famous formula from Brian Goetz’s “Java Concurrency in Practice.” We’ll give you a practical example of how to calculate the ratio of wait time to compute time (W/C).

The Formula

The formula for the optimal size of a thread pool is:


Entwicklungspraxis August 7, 2023

Improvement of Daily Work: The Third Ideal

Hi,

In Chinese, there is a famous saying:

“The best time to plant a tree was 20 years ago. The second best time is now.”

We know this in software development too. We keep complaining about the mistakes we made back then.

“Should do that someday.”

This is a sentence that comes up in every second retrospective.

Technical debt is piling up. “Should do that someday.”

The daily usually takes too long. “Should do that someday.”


Entwicklungspraxis August 2, 2023

Avoid these 5 Common Performance Pitfalls in Spring Data JPA: Practical Solutions and Tips

In the world of JVM backend development, Spring Data JPA is an indispensable tool. It provides a convenient and powerful way to manage and manipulate data. However, like any powerful tool, there are pitfalls that can affect performance. In this article, we will explore five common performance pitfalls in Spring Data JPA and present solutions to avoid them.

1. Index Definition with Spring Data JPA

One commonly overlooked aspect when working with Spring Data JPA is the proper definition of indexes. A well-defined index can significantly speed up data access, while a missing or incorrectly defined index can lead to performance issues. In this article , you will learn how to define an index with Spring Data JPA and the considerations you should keep in mind.


Entwicklungspraxis July 31, 2023

The Second Ideal: Focus, Flow, and Joy

Hi,

When was the last time you lost track of time? Just keep going. Without it being hard. With full concentration. You shut out everything around you. You forget to eat. You delay going to the toilet.

For me, it was the last time I was designing backendhance.com .

I was totally absorbed. And it was so satisfying. I build my website with Hugo. And it’s super fast.

Should the header be a bit larger? font-size adjusted. I click on my browser to view the change and BAM it’s compiled.


Entwicklungspraxis July 26, 2023

Efficient Data Queries with Spring Data JPA Projections

In the world of JVM Backend Development, efficient data processing is a crucial concern. One of the main strengths of Spring Data JPA lies in its ability to simplify and optimize interaction with the persistence layer. A particularly powerful feature provided by Spring Data JPA is the use of projections. They offer an excellent way to make data queries more efficient and improve system performance.

What are Spring Data JPA Projections?

Spring Data JPA projections allow you to create custom Partial Views of your entity classes. This means that instead of retrieving a complete entity, you can only retrieve selected fields, significantly reducing the size of the returned data and thereby improving the overall performance.


Top