Using Rebound with NestJS
Rebound integrates seamlessly with NestJS providers.
@Injectable()
export class ExternalApiService {
@Rebound({ attempts: 3 })
async fetchData() {
return axios.get("https://example.com");
}
}
Recommended places to use it:
- Service methods
- Repository operations
- External clients
- Event handlers
- Cron jobs