AI Dictionary › Fondamenti AI
Pub/sub (publish/subscribe) is a communication model where message producers (publishers) publish to thematic channels (topics) without knowing who will receive them, and interested parties (subscribers) subscribe to topics without knowing who publishes. A broker in the middle routes everything. It is the radio model: the station broadcasts, whoever is tuned in receives.
Pub/sub (publish/subscribe) is a communication model where message producers (publishers) publish to thematic channels (topics) without knowing who will receive them, and interested parties (subscribers) subscribe to topics without knowing who publishes. A broker in the middle routes everything. It is the radio model: the station broadcasts, whoever is tuned in receives.
This total decoupling is the pattern's strength: publishers and subscribers evolve, scale and fail independently. Adding a new event consumer requires zero changes to producers. Modern brokers, Apache Kafka, Google Pub/Sub, Redis, NATS, add message persistence, history replay and configurable delivery guarantees.
In AI, pub/sub is the fabric of event-driven architectures: an uploaded document emits an event that the embedding service, the moderation service and the notification service react to in parallel; multi-agent systems use event buses to coordinate without coupling. Beyond AI it moves social network feeds, IoT telemetry and trading systems.
The pattern has roots in 1980s distributed systems: one of the first notable commercial incarnations was The Information Bus by Teknekron (later TIBCO), developed at the end of that decade to distribute market data across Wall Street trading floors, where publishing by subject rather than sending to specific recipients proved revolutionary. The names come from publishing: to publish, and to subscribe, as to a magazine.
Il pub/sub (publish/subscribe) è un modello di comunicazione in cui chi produce messaggi (publisher) li pubblica su canali tematici (topic) senza sapere chi li riceverà, e chi è interessato (subscriber) si abbona ai topic senza sapere chi pubblica. Un broker in mezzo smista tutto. È il modello della radio: l'emittente trasmette, chiunque sintonizzato riceve.
Questo disaccoppiamento totale è la forza del pattern: publisher e subscriber si evolvono, scalano e falliscono in modo indipendente. Aggiungere un nuovo consumatore di eventi richiede zero modifiche a chi li produce. I broker moderni, Apache Kafka, Google Pub/Sub, Redis, NATS, aggiungono persistenza dei messaggi, replay dello storico e garanzie di consegna configurabili.
Nell'AI il pub/sub è il tessuto delle architetture event-driven: un documento caricato genera un evento a cui reagiscono in parallelo il servizio di embedding, quello di moderazione e quello di notifica; i sistemi multi-agente usano bus di eventi per coordinarsi senza accoppiarsi. Fuori dall'AI muove feed di social network, telemetria IoT e sistemi di trading.
Il pattern ha radici nei sistemi distribuiti degli anni '80: una delle prime incarnazioni commerciali di rilievo fu The Information Bus di Teknekron (poi TIBCO), sviluppato sul finire del decennio per distribuire dati di mercato nelle sale di trading di Wall Street, dove l'idea di pubblicare per argomento invece che inviare a destinatari specifici si rivelò rivoluzionaria. I nomi vengono dall'editoria: publish, pubblicare, e subscribe, abbonarsi, come a una rivista.
From our network
Magellano GPS — Fleet Tracking Made Simple
Real-time GPS tracking, remote engine lock, fuel and CO₂ reporting for your fleet.
Visit magellanogps.com →From the Agora Intelligence blog
📱 Download the Android app (beta) iOS coming soon
Say what you mean. Get what you need.
Grace Certified — the AI coach that trains and certifies your prompt engineering — by Agora Intelligence.