Hazelcast cache

Spring Boot 3 with Hazelcast 5 cache

Spring Boot 3 with Hazelcast 5 cacheHazelcast cache

Hazelcast is one of the most popular caches. We would be shocked if it didn't integrate with Spring Boot. Basic integration is quite easy but not as simple as many could expect. One of the famous Hazelcast issues is a lack of good backward compatibility. The developers change the interfaces way too often. See how to integrate Spring Boot 3 with Hazelcast 5 in a simple example.

unchecked input

Fix for Unchecked_Input_for_Loop_Condition reported by Checkmarx

Fix for Unchecked_Input_for_Loop_Condition reported by CheckmarxAI face

When validating vulnerabilities reported by Checkmarx, you may run into Unchecked_Input_for_Loop_Condition. If you are unfamiliar with it, it may look mysterious. You may have an impression, that it appears in random places, but that is why I am here. I will show you what it is and how to deal with it. 

local cache

Caching possibilities

Caching has different faces. It can live long or short, be local or distributed, and use various eviction strategies. Surprisingly, there are many options to choose from. Some can be implemented quickly and some will require adding new technology to the project. What should I choose for my application? Are there any universal solutions?

 

GSON array

GSON build array with newlines

GSON build array with newlinesGSON array

JSON has become a famous data format for exchanging information over the Internet. It is commonly used in REST API and for storing loosely structured data. Compared to XML, it is concise, and unfortunately, less human readable. Beautifiers and pretty printers can easily enhance this. I will show you the different options available in GSON to convert an array of objects to a JSON string.

HashSet for a few elements

Is it worth using HashSet for a few elements?

Is it worth using HashSet for a few elements?loadData

HashSets are known from its efficiency, when it comes to checking, if they contain a particular object. They were designed exactly for doing that in a constant time. Contrary, checking objects existence in an ArrayList has a linear computational complexity, which is less efficient in theory. But is it true for small sets as well?

We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.