Prompt
Need async jobs across multiple services and languages
Latest observation
Oct 24, 2026
OpenAI APIWeb search: off
To do async jobs across multiple services and languages, the usual pattern is:
Recommended approach
Use a message broker / event bus rather than direct service-to-service calls.
Common choices:
- RabbitMQ — great for task queues and reliable job delivery
- Kafka — great for event streaming and high throughput
- AWS SQS + SNS — simple managed option
- Redis queues — lightweight, but less durable than the above
Basic architecture
- Producer service creates a job/event
- Publishes it to a queue/topic
- Worker service in any language consumes it
- Worker processes the job and:
- writes result to DB, or
- emits a completion event, or
- calls back a webhook
Language-agnostic design
To support multiple languages, define:
- a shared message schema (JSON, Avro, Protobuf)
- a job type
- a correlation/job ID
- status fields (
pending,running,done,failed) - retry metadata
Example JSON message:
{
"job_id": "abc123",
"type": "generate_report",
"payload": {
"user_id": 42,
"format": "pdf"
},
"correlation_id": "req-789",
"attempt": 1,
"created_at": "2026-10-24T10:00:00Z"
}
Reliability features to include
- Acknowledgements so messages aren’t lost
- Retries with backoff
- Dead-letter queue for failed jobs
- Idempotency so duplicate deliveries are safe
- Timeouts
- Job status store in a DB for tracking progress
If you need request/response async
Use:
- queue for job submission
- DB or event topic for result
- optional webhook/polling for the caller
If you want orchestration
If jobs are multi-step workflows across services, consider:
- Temporal
- Argo Workflows
- AWS Step Functions
- Netflix Conductor
These are better than plain queues for:
- retries
- long-running workflows
- state tracking
- cross-service orchestration
Simple recommendation
- For general async jobs across mixed languages: RabbitMQ or SQS
- For event-driven architecture: Kafka
- For complex workflows: Temporal
If you want, I can sketch:
- a reference architecture,
- message schema, or
- an example in Python + Go + Node.js.