We have an application that constantly write to datalake. The append method below is called about 1000 times a minutes. public class AdlAppender { private static final String datalake = ...
If you're building a string in Java (like in a loop), stop using the + operator! The String class is immutable (it can't be changed), so every time you use +, Java creates a brand new string object.