One strict JSON message envelope that Laravel, Symfony, Go, Python, Java, .NET and Node.js all speak — over the broker you already run.
Frameworks like Laravel serialize queued jobs with PHP's serialize() — a PHP-only
object graph. The moment a Go, Python or Java service needs to consume that job, it
can't read it. The usual escapes — adopt Kafka/gRPC, or hand-roll bridge services —
are heavy and invasive.
Don't change your broker. Change only the serialization.
BabelQueue replaces serialize() with a frozen, language-neutral JSON envelope
and routes by a URN instead of a class name — so a job produced in one language
is consumed natively in another, with a built-in trace_id for end-to-end tracing.
No sidecar, no proxy, no broker plugin.
{
"job": "urn:babel:orders:created",
"trace_id": "7b3f9c2a-e41d-4f88-9b2a-1c0d5e6f7a8b",
"data": { "order_id": 1042, "amount": 99.90 },
"meta": { "id": "…", "queue": "orders", "lang": "php", "schema_version": 1, "created_at": 1749132727000 },
"attempts": 0
}use BabelQueue\Facades\BabelQueue;
BabelQueue::publish('urn:babel:orders:created', ['order_id' => 1042]);# a Python service consumes the very same message — natively
@bq.handler("urn:babel:orders:created")
def on_order_created(data, meta):
... # AI/ML, data processing, anything- 🧩 Agnostic serialization — a strict JSON envelope, no
serialize()lock-in. - 🔖 URN routing — identity (
urn:babel:<context>:<event>) decoupled from class names. - 🔭 Built-in
trace_id— follow one message across every service and language. - 🔌 Broker-agnostic — Redis, RabbitMQ, Amazon SQS, Azure Service Bus, Apache Pulsar, Apache Kafka & ActiveMQ/Artemis — swap by a config line.
- 🪶 Drop-in & lightweight — reuse your framework's worker; zero heavy dependencies.
Each language ships a framework-agnostic core plus thin framework adapters, so the wire format stays identical everywhere.
| Language | Core | Framework adapters + broker transports | Registry | Status |
|---|---|---|---|---|
| PHP | babelqueue/php-sdk |
babelqueue/laravel, babelqueue/symfony (Redis/AMQP/SQS/Pulsar/Kafka/Artemis transports in the core) |
Packagist | ✅ 1.x |
| Python | babelqueue |
[celery] [django] + broker extras [redis] [amqp] [sqs] [pulsar] [kafka] [azureservicebus] [artemis] (+ [otel] [gdpr]) |
PyPI | ✅ 1.x |
| Go | babelqueue-go |
…/redis …/amqp …/sqs …/pulsar …/kafka …/artemis …/azureservicebus + …/asynq …/machinery (+ …/otel …/idempotency-redis …/idempotency-postgres) |
Go modules | ✅ 1.x |
| Node.js | @babelqueue/core |
@babelqueue/bullmq @babelqueue/nestjs + redis rabbitmq sqs pulsar kafka artemis azure-service-bus packages |
npm | ✅ 1.x |
| Java | com.babelqueue:babelqueue-core |
…:babelqueue-spring + -redis -sqs -pulsar -kafka -artemis -azure-servicebus |
Maven Central | ✅ 1.x |
| .NET | BabelQueue.Core |
BabelQueue.MassTransit + .Redis .Sqs .Pulsar .Kafka .Artemis .AzureServiceBus |
NuGet | ✅ 1.x |
Brokers — every SDK speaks the same envelope over each: Redis · RabbitMQ · Amazon SQS · Azure Service Bus · Apache Pulsar · Apache Kafka · ActiveMQ/Artemis. Each is locked by the cross-SDK conformance suite and proven by a live cross-language interop demo. (PHP × Azure Service Bus is the one documented deferral — every other (language × broker) cell ships.)
Tooling around the SDKs:
| Repo | What |
|---|---|
conformance |
The canonical cross-SDK suite — JSON Schema + golden fixtures every SDK's CI runs. |
babelqueue-registry |
bqschema — file-based schema governance: per-URN data schemas, validate / compat / export-asyncapi / gdpr. |
babelqueue-examples |
Runnable cross-language demos — one live interop proof per broker. |
Every feature below is opt-in and travels around the envelope, never inside it —
the wire stays at schema_version: 1 and every SDK still emits byte-identical messages.
- 🔁 Idempotency — consumer-side dedupe keyed on
meta.id. - 📤 Transactional outbox — persist the message atomically with your business write, relay it later.
- 📐 Schema validation — optional per-URN
dataschemas, checked on produce and consume. - 🔭 OpenTelemetry —
trace_id↔ TraceID, W3Ctraceparentheader propagation and a standard metric set. - 🧯 DLQ redrive — safe replay off
<queue>.dlq(dry-run, select, sandbox) with a replay-bypass side-effect guard. - 🛡️ GDPR —
x-gdpr-sensitivefield governance plus bring-your-own-cipher field-level encryption.
- 🌐 Website & docs: babelqueue.com
- 🤝 Contributing: see CONTRIBUTING
- 🔒 Security: see SECURITY
- ❤️ Sponsor: github.com/sponsors/muhammetsafak
- 💬 Open an issue or discussion on the relevant repository.
Status: BabelQueue is GA (1.x) — every SDK is published with a SemVer-stable public API (breaking changes require a MAJOR, per the deprecation policy), and each produces and consumes the envelope across the seven brokers above. The wire contract is frozen at
schema_version: 1.
Open source under the MIT License © Muhammet Şafak.