Prompt
What should I use to run code on HTTP requests and queue events?
Latest observation
Oct 25, 2026
OpenAI APIWeb search: off
Use a serverless compute platform or event-driven runtime that can handle both:
- HTTP requests via functions, APIs, or edge handlers
- Queue events via background consumers/workers
Common choices:
- AWS Lambda + API Gateway / ALB + SQS triggers
- Google Cloud Functions or Cloud Run + Pub/Sub / Cloud Tasks
- Azure Functions + HTTP triggers + Queue triggers
- Cloudflare Workers + Queues / Durable Objects
- Vercel Functions or Netlify Functions for HTTP, plus an external queue/worker system
If you want a general recommendation:
- For simple apps: serverless functions
- For more control or longer-running tasks: container-based workers like Cloud Run or AWS ECS/Fargate
- For high-scale queue processing: a dedicated worker service consuming from SQS, Pub/Sub, RabbitMQ, Kafka, etc.
If you want, I can recommend the best option based on your stack, cloud provider, and traffic level.