by twic · 9y ago · 0 comments
The idea that you would add a dependency to avoid writing a try-catch in a loop is absolutely bewildering to me. What next, Spring Pad? I can see it now:
@LeftPad(width = 50)
public String getNameForDisplay() {
return name;
}Reliable retry is very important in some cases, and it's easier to test a retry-agnostic unit of code.
Edit: and I also rather like that it's declarative, rather than needing to infer intention or write my own boilerplate to explicate intention.
Not as simple as you might think. And if you're gonna be writing microservices you're going to be intimately familiar with retries.