Posts with tag "Java"

Toxiproxy - Spring Boot setup

Kim Pedersen
Reading time: 15 minutes.

This article is the first in a series on Toxiproxy. It covers how to set up Toxiproxy and verify that it works in a Java environment using Spring Boot.

Rate Limited Logging

Kim Pedersen
Reading time: 13 minutes.

Proper logging is an essential part of any production system. For instance, in the case of an exception, you might want to log the state of some variables and the stacktrace.

If you have ever considered adding logging to your code but then decided not to do it because you were afraid that it would log too often / too much data, then this article will be useful to you as it explains how to use a rate limited logger.

Java Microbenchmark Harness (JMH)

Kim Pedersen
Reading time: 10 minutes.

This article dives into the Java Microbenchmark Harness aka. JMH. To keep it simple and focused on JHM, I’ll benchmark two search algorithms: linear and binary search on sorted arrays of different length.