I want to write some logic to have retry mechanism and catch exception. I want to make a http call to our service with transactions. What\'s the best practice to write retry