Spring is cool when it works. But I am having trouble understanding the best way to approach intermittent failure/retry issues for singletons wired up.
Let me give you two concrete examples:
- SessionFactory being wired up
- Hashicorp Vault being wired up
In both cases we have a remote server, that yes is fairly reliable, but if it happens to hiccup during initialization of a particular container class (say one that holds some Vault secrets or a SessionFactory), then what can one do to have that retried?