2 ms·
> I think it's better to handle the Jason.decode error, and apply some sort of backoff strategy on re-requests. What's keeping you from implementing a back off
by dnautics 5y ago
> I think it's better to handle the Jason.decode error, and apply some sort of backoff strategy on re-requests.
What's keeping you from implementing a back off strategy in your init? You can return :ignore to the supervisor and try again later.
If you're backing off inside the process itself, you're gonna get some weird shit where your service exists but it's not in a truly available state, and you will have to handle that by basically halfheartedly rewriting logic that already exists in OTP.