Tech stack

Scalable serverless realtime messaging demo

Online now (0)

Group chat

Description and details

This demo shows a fully serverless chat application that can easily scale up due to the SaaS components used in the architecture.

At its core, is the Pub/Sub messaging architecture, powered by Ably.

  ablyRealtimeInstance = new Ably.Realtime({ 
    authUrl: 'your-auth-endpoint',
  }); 

  chatChannelInstance = ablyRealtimeInstance.channels.get(
    '[?rewind=2m]chat' 
  ); 

  chatChannelInstance.subscribe(msg)=> {
    handleNewMsg(msg) 
  }); 

  chatChannelInstance.publish('chat-msg', {
    chatData 
  });