Skip to content
@BabelQueue

Babel Queue

🌀 BabelQueue

Polyglot Queues, Simplified.

One strict JSON message envelope that Laravel, Symfony, Go, Python, Java, .NET and Node.js all speak — over the broker you already run.

Website License: MIT Status


The problem

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.

The idea

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
}

A quick taste — Laravel produces, anything consumes

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

Why teams use it

  • 🧩 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, swap by a config line.
  • 🪶 Drop-in & lightweight — reuse your framework's worker; zero heavy dependencies.

Ecosystem

Each language ships a framework-agnostic core plus thin framework adapters, so the wire format stays identical everywhere.

Language Core Framework adapter(s) Registry Status
PHP babelqueue/php-sdk babelqueue/laravel, babelqueue/symfony Packagist ✅ 1.0.0
Python babelqueue [celery], [django] extras PyPI ✅ 1.0.0
Go babelqueue-go …/redis, …/amqp modules Go modules ✅ 1.0.0
Node.js @babelqueue/core @babelqueue/bullmq, @babelqueue/nestjs npm ✅ 1.0.0
Java com.babelqueue:babelqueue-core …:babelqueue-spring Maven Central ✅ 1.0.0
.NET BabelQueue.Core BabelQueue.MassTransit NuGet ✅ 1.0.0

Brokers: Redis · RabbitMQ

Get involved

Status: BabelQueue is 1.0 (GA) — every SDK is published at v1.0.0 with a SemVer-stable public API (breaking changes require a MAJOR, per the deprecation policy). The wire contract is frozen at schema_version: 1.

📄 License

Open source under the MIT License © Muhammet Şafak.

Popular repositories Loading

  1. php-sdk php-sdk Public

    Framework-agnostic PHP core for BabelQueue — the language-neutral JSON envelope codec & contract for polyglot queues. Drop the PHP serialize() lock-in.

    PHP 1

  2. laravel laravel Public

    Drop-in Laravel queue driver for BabelQueue — dispatch polyglot jobs Go, Python, Java, .NET & Node can consume, without disturbing your existing queues.

    PHP 1

  3. symfony symfony Public

    Symfony Messenger adapter for BabelQueue — produce & consume language-neutral JSON envelopes Go, Python, Java, .NET & Node can read. Built on babelqueue/php-sdk.

    PHP 1

  4. babelqueue-python babelqueue-python Public

    Read & write the canonical BabelQueue envelope from Python — exchange messages with Laravel, Symfony, Go, .NET & Node over one strict JSON format. Zero-dependency core.

    Python 1

  5. babelqueue-go babelqueue-go Public

    Read & write the canonical BabelQueue envelope from Go — exchange messages with Laravel, Symfony, Python, .NET & Node over one strict JSON format, on the broker you already run.

    Go 1

  6. babelqueue-node babelqueue-node Public

    Read & write the canonical BabelQueue envelope from Node.js — exchange messages with Laravel, Symfony, Go, Python & .NET over one strict JSON format. Zero-dependency core.

    TypeScript 1

Repositories

Showing 10 of 14 repositories

Top languages

Loading…

Most used topics

Loading…