Piattaforma edge cloud di Fastly

In tempo reale senza complessità: Fanout per Edge WebSockets & Pub/Sub

Consegna esperienze in tempo reale in meno di un secondo per chat, aste dal vivo, IoT e altro ancora. Fastly Fanout gestisce le connessioni WebSockets, HTTP e TLS, portando le comunicazioni in tempo reale e i modelli pub/sub all'edge. Connettiti a qualsiasi client da un unico backend, crea applicazioni MQTT, scarica il carico dei WebSocket oppure puoi persino orchestrare eventi nel web, il tutto con la scalabilità di Fastly. 

Dettagli del prodotto l Immagine Fanout

La fondazione basata su eventi per le app moderne in tempo reale

Sfrutta Fanout per gestire la complessità della comunicazione bidirezionale, da WebSockets ai dati dei sensori IoT. Gestendo lo stato delle connessioni e la traduzione dei protocolli ai bordi della rete, minimizzi il carico di origine, assicuri la distribuzione a bassa latenza e aumenti la velocità di sviluppo del tuo team.

  • Riduci drasticamente il carico di origine e i costi di infrastruttura

    Fanout gestisce milioni di connessioni WebSocket o HTTP streaming simultanee e stateful ai bordi della rete, consentendoti di inoltrare facilmente richieste HTTP al tuo server di origine. Questo può ridurre significativamente il carico della domanda sui server, aumentare la resilienza del sistema e garantire un forte ritorno sull'investimento.

  • Accelera la velocità degli sviluppatori e il time-to-market

    Costruisci su una piattaforma flessibile che supporta WebSocket, HTTP e TLS. Concentrati sulla logica aziendale – non sulla gestione delle connessioni – e costruisci soluzioni pub/sub, IoT, MQTT e altre soluzioni in tempo reale.

  • Unifica la comunicazione in tempo reale attraverso i protocolli

    Grazie alla sua solida base HTTP/WebSockets, Fanout consente ai servizi di rispondere alle richieste provenienti dal traffico web, dai WebSockets o persino dai dati IoT in entrata, e persino di effettuare conversioni tra di essi. Fanout può gestire lo stato delle connessioni, coordinandosi con il tuo server di origine tramite semplici richieste HTTP, per alleggerire risorse e complessità.

WebSocket Pass-Through vs. Fanout: scegliere la giusta strategia in tempo reale

La piattaforma di Fastly supporta tutte le esigenze in tempo reale. Il nostro prodotto WebSockets pass-through fornisce un percorso diretto e bidirezionale attraverso il CDN per infrastrutture autogestite. Fanout è la nostra soluzione basata su eventi per costruire applicazioni in tempo reale più robuste, gestire lo stato delle connessioni, tradurre i protocolli e alleggerire drasticamente il tuo server di origine. Usa le informazioni seguenti per stabilire quale soluzione si adatta meglio al tuo caso d'uso.
  • Pass-through WebSockets

    Ideale per: proteggere l'infrastruttura dati esistente in tempo reale.


    • Il modello di connessione primario è 1:1, bidirezionale (Client to Origin)
    • Il server di origine gestisce tutto lo stato della connessione.
    • Nessuna traduzione del protocollo. Richiede che l'origine parli WebSockets.
    • Minimo offload dell'origine e ritorno sull'investimento. L'origine deve mantenere connessioni simultanee.
    • Modello di fatturazione = tempo di connessione.
    • Supporta qualsiasi caso d'uso che richieda l'esecuzione della tua infrastruttura di dati in tempo reale all'origine.

  • Fanout (Invia dati ai bordi della rete)

    Ideale per: alleggerire il carico di gestione dell'infrastruttura dati in tempo reale presso l'origine.


    • Il modello principale di connessione è 1:Many, Push/Pub-Sub (basato su eventi)
    • Fastly Fanout gestisce tutti gli stati di connessione ai bordi della rete.
    • Fastly Fanout si occupa della traduzione dei protocolli (ad esempio, WebSocket per HTTP compatibile con Origin).
    • Massimo offload dell’origine e ritorno sull'investimento. Origin gestisce semplici eventi HTTP e logica aziendale.
    • Modello di fatturazione = tempo di connessione e messaggi.
    • Fornisce dati in tempo reale ai bordi della rete per aste live, risultati sportivi, ticker azionari, notifiche push in tempo reale, coordinamento IoT (MQTT), chat multiutente.

Un'architettura Push fatta bene

Non c'è bisogno di costruire un tuo "server di streaming". Abbiamo già fatto il lavoro più duro per te.
  • Proxy inverso ibrido e broker di messaggi.

    Amplia la tua API esistente con la funzionalità push.

  • Progettato per l'interoperabilità.

    Qualsiasi backend basato su HTTP, inclusi serverless/FaaS, può gestire flussi di lunga durata.

  • Self-hosted o cloud. Dipende da te.

    Usa la nostra vasta rete con un nome di dominio personalizzato oppure esegui il software sui tuoi server.

Frequently Asked Questions

What is real-time communication and how does it work at the edge?

Real-time communication is the instantaneous data transfer between systems and users, bypassing the delays of traditional request-response cycles. Fastly enables this by moving connection management to the network edge, closer to the end-user. By maintaining persistent connections at the edge, Fastly’s push architecture eliminates the need for constant client polling, significantly reducing origin overhead and ensuring updates reach users with sub-millisecond latency.

How does Fastly support WebSockets and other real-time protocols?

Fastly supports WebSockets and other real-time protocols through two primary solutions: WebSockets Pass-Through and Fastly Fanout. WebSockets Pass-Through allows WebSocket connections to pass directly through the Fastly edge to a customer’s origin. The connection model is 1:1, bi-directional between the client and the origin. Fanout is an event-driven publish/subscribe (pub/sub) message broker integrated into the Fastly platform. The connection model is 1:many with Fastly managing all connection state at the edge. Fanout can translate between protocols at the edge converting stateful WebSocket, SSE, or Long-polling connections into stateless HTTP requests that an origin already understands.

Can Fastly be used as a message broker for real-time applications?

Yes. Fastly functions as a distributed message broker by leveraging a pub/sub (publish/subscribe) architecture at the edge. Developers can publish a single update and Fastly automatically fans that message out to all authorized subscribers instantly. This offloads the intensive work of message distribution from customers servers to our global network, providing a massive boost in concurrency limits and reliability.

What is pub/sub and why is it important for real-time systems?

Pub/Sub (Publish/Subscribe) is critical because it decouples the message sender from the receiver, allowing for a highly efficient, event-driven architecture. Instead of your server tracking every individual user connection, it simply sends one publish event to the edge. This reduces egress costs and prevents customer infrastructure from getting overloaded during high-traffic events.

How does Fastly handle MQTT workloads at the edge?

Fastly supports MQTT (Message Queuing Telemetry Transport) architectures by efficiently routing messages and maintaining persistent connections for IoT messaging. By leveraging Fastly’s edge network, developers can create, broker, and scale MQTT pub/sub messaging, connecting IoT devices to cloud services with low latency and high concurrency.

Is Fastly suitable for multi-user chat and collaboration apps?

Yes. Fastly is well suited for multi-user chat, live collaboration tools, and shared experiences that require constant updates. Using WebSockets and Fanout, messages can be delivered instantly. The platform ensures that as your user base scales from hundreds to millions, the real-time synchronization of your app remains consistent and performant.

What are the benefits of a push architecture compared to polling?

A push architecture is significantly more efficient than HTTP polling because it only sends data when an event actually occurs. Polling can create empty requests that waste CPU cycles and increase billing costs at the origin. By switching to a push model via Fanout, you reduce unnecessary network traffic, lower your infrastructure spend, and provide a better end-user experience.

How does Fastly scale real-time communication workloads?

Fastly’s edge network is built to handle large volumes of concurrent connections. Whether you are managing WebSockets, MQTT, or pub/sub messaging, the platform automatically distributes traffic across its infrastructure. This allows your real-time communication systems to scale without requiring manual intervention or complex capacity planning.

WebSockets e Fanout

Invia dati in tempo reale su qualsiasi dispositivo, ovunque