Java 8 Stream – The peek() is not working with count()?
Many examples are using the .count() as the terminal operation for .peek(). However, for Java 9 and above, the peek() may print nothing. Since Java 9, if JDK compiler is…
Favourite tutorials for developers
Many examples are using the .count() as the terminal operation for .peek(). However, for Java 9 and above, the peek() may print nothing. Since Java 9, if JDK compiler is…
As title, we can use flatMap to convert it. Similar to convert 2D array to 1D array using Stream.flatMap.
A design that initially looks good may not be the best design to easily solve the problems at hand. Too often, our initial assumptions about our API and microservice designs…
I’m often asked which is the better style of API: REST, GraphQL, or gRPC. My answer is always: “I’m not sure. What does your API model say?” At this point,…
The REST style is particularly suited for synchronous APIs, where requests generally return quickly (less than a few seconds). For operations that take a longer time to complete, it may…
In today's world, users expect applications or websites to be fast, and usually, a latency of around 100 milliseconds is considered reasonable. We can improve the latency of services by…
A salt is added to the hashing process to force their uniqueness, increase their complexity without increasing user requirements, and to mitigate password attacks like hash tables
A strong password storage strategy is critical to mitigating data breaches that put the reputation of any organization in danger. Hashing is the foundation of secure password storage.
Spring Boot is continuously coming with new ways to make the process of building applications easier. Today, it’s one of the most used technology with Java to create web applications.…