Michael is a pre-sales architect at Azul Systems. He has written software in Turbo Pascal, Fortran, Cobol, Visual Basic, C++ and C before settling on Java in 1998 for good. Working on business integration, business process and lately IoT problems, Michaels perspective is less on software architecture but more on practical concerns of system design, maintainability, useability, process and IT operations. Never skipping a challenge on i18n, data formats, protocols and system scalability limits.
Especially on IoT devices, file corruption on shutdown is a common concern.
This article discusses how to write to disk safely in Java, combining disk sync, shutdown hooks, and atomic renaming of files.M. Roeschter