I definitely don’t want to write @Retry as an annotation; for sure, that part should be in the code, like many more use-cases of annotations, should be in the ‘main’ code. I get the impression that we are close to agreement here.

I’m not so sure we would agree on the approach to configuration, but that’s yet another topic. While configuration should be externalised, and the appropriate aspects managed by e.g. operations, you don’t need annotations to implement that, and going further, I think you can implement that batter without annotations. But, as I said, that’s probably another topic :)

Scala software engineer, Functional Programming enthusiast, SoftwareMill co-founder

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store