Reading YAML configurations in Java

How can I use YAML for my Java application? YAML is human-readable and a cool datat interchange format. It’s lean appearance make it special e.g. for configuration files or when humans view or edit data structures. It’s well suited for hierachical data presentation and you can easily map common data structures. Jackson and SnakeYaml Here I […]

Initializing HashMaps in Java

How can I initialize a HashMap with some pre-defined entries? In this article I’ll show you how you create a HashMap with values. Java doesn’t provide a method like Array.asList(). For initializing a map you have to implement something like that: So this is the double brace initialization idom. I don’t like this way. It’s not very readable, it’s creates a […]

Stability Patterns: Use Timeouts

„A resilient system keeps processing transactions, even when there are transient impulses, persistent stresses, or component failure disrupting normal processing.“ This is Michael Nygards definition of stability. In his book „Release it!“ he describes design and architectures patterns, which stop cracks from propagating and preserve at least partial functionality instead of total crashes. So, what are […]

Release It!

Design and Deploy Production-Ready Software Michael Nygard erzählt wirklich spannende Geschichten, die sich wie ein Krimi lesen lassen. Er gibt Tipps, was man alles beachten muss, wenn man Software in Produktion bringen möchte. Das Buch fängt mit dem Thema Stabilität an, dann kommt Kapazität, gefolgt von allgemeinen Design Richtlinien und Operation, also Dingen die beim Betrieb […]