Maximum compression ratio with Zip/Gzip/Deflate

Quite a while ago an issue was reported for Akka HTTP where incoming data, compressed using Content-Type: gzip, was uncompressed without applying any limits, in the worst case leading to an OutOfMemoryException and a shutdown of the server. This can be used for a classical denial of server attack, a…

Base64 vs. Gzip

For personal projects I mostly try to avoid using databases. Instead, I try to use what I call the "JSON repository" pattern. I create a file structure that contains my data in JSON format. I often use the directory structure as an index by placing the JSON data…