Ai Chat

Distributed Task Queue with Rate Limiting for API Scraping

microservices distributed systems web scraping queue management
Prompt
Design a TypeScript microservice using Bull Redis queues that can parallelize web scraping tasks for multiple SaaS product APIs while implementing intelligent rate limiting, exponential backoff, and circuit-breaking mechanisms. The system should handle retries, track detailed error logs, and provide real-time monitoring of scraping job statuses. Include type-safe interfaces for job configurations and demonstrate how to handle different API authentication strategies.
Sign in to see the full prompt and use it directly
Sign In to Unlock
Use This Prompt
0 uses
7 views
Pro
TypeScript
Technology
Mar 3, 2026

How to Use This Prompt

1
Copy the prompt Click "Copy" or "Use This Prompt" above
2
Customize it Replace any placeholders with your own details
3
Generate Paste into Ai Chat and hit generate
Use Cases
  • Manage API scraping tasks without overwhelming the server.
  • Distribute workload evenly among multiple workers.
  • Control data extraction rates for compliance.
Tips for Best Results
  • Monitor task performance to adjust rate limits effectively.
  • Implement error handling to manage failed tasks.
  • Use logging for better visibility into task processing.

Frequently Asked Questions

What is the Distributed Task Queue with Rate Limiting?
It's a system designed for managing and distributing tasks across multiple workers with controlled rates.
How does rate limiting work?
It restricts the number of tasks processed per unit time to avoid overloading APIs.
Is it suitable for large-scale applications?
Yes, it is designed to handle high volumes of tasks efficiently.
Link copied!