Frequently Asked Questions
Everything you need to know about MARZ.
What is MARZ?
MARZ (Memory Adaptive Runtime Zone) is a Spring Boot annotation library that enables runtime configuration hot-swap without JVM restarts. Add @Marz to a field, point it at a config file, and the value updates live when you edit the file.
How is MARZ different from Spring @RefreshScope?
@RefreshScope works at the bean level — it tears down and reconstructs the entire Spring bean when you call /actuator/refresh. This requires Spring Cloud Config Server, often a message bus (RabbitMQ/Kafka), and introduces brief disruption during the bean rebuild.
MARZ works at the field level. It writes directly to a volatile field via reflection. No bean rebuild, no Config Server, no message bus. Read performance is ~5ns (volatile access) vs ~50ns (CGLIB proxy with @RefreshScope).