---
title: "Lessons learnt from building reactive microservices for Canva Live - Canva Engineering Blog"
description: "Canva Live delivers near real-time audience questions to presenters through a hybrid design: presenters receive updates over WebSockets, while audience members use plain request/response APIs, all behind a gateway that multiplexes client sockets onto single connections per RPC node and uses service discovery instead of an ALB."
url: "https://swe.quest/articles/lessons-learnt-from-building-reactive-microservices-for-canva-live-canva-1f351c423d5adf5b"
canonical: "https://www.canva.dev/blog/engineering/lessons-learnt-from-building-reactive-microservices-for-canva-live/"
source: "Canva Engineering"
published: "2020-10-12"
difficulty: "medium"
kind: "Case study"
reading_minutes: 14
tags: ["realtime","caching","microservices","scalability","system-design"]
---

# Lessons learnt from building reactive microservices for Canva Live - Canva Engineering Blog

A post on [Canva Engineering](https://swe.quest/sources/canva.md), published 2020-10-12, 14 min read, Case study. Original: [https://www.canva.dev/blog/engineering/lessons-learnt-from-building-reactive-microservices-for-canva-live/](https://www.canva.dev/blog/engineering/lessons-learnt-from-building-reactive-microservices-for-canva-live/)

## Summary

Canva Live delivers near real-time audience questions to presenters through a hybrid design: presenters receive updates over WebSockets, while audience members use plain request/response APIs, all behind a gateway that multiplexes client sockets onto single connections per RPC node and uses service discovery instead of an ALB. Redis on ElastiCache in cluster mode is the datastore, accessed via the lettuce reactive Java client. Redis Streams carry per-session question events, polled with XRANGE and later moving to blocking XREAD, and a SortedSet with ZADD/ZCOUNT tracks participants active in the last 10 seconds. Practical lessons include building for scale from day one, pushing filtering into Redis data structures, using hash tags so transactional keys share a shard (Redis transactions don't roll back), and reserving streaming connections for chatty interactions.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Real-time systems](https://swe.quest/tags/realtime.md) (Backend & APIs)
- [Caching](https://swe.quest/tags/caching.md) (Backend & APIs)
- [Microservices](https://swe.quest/tags/microservices.md) (Backend & APIs)
- [Scaling](https://swe.quest/tags/scalability.md) (Distributed systems)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)

## Prerequisites

- Redis data structures ([easy posts on Caching](https://swe.quest/tags/caching.md?difficulty=easy))
- WebSockets ([easy posts on Real-time systems](https://swe.quest/tags/realtime.md?difficulty=easy))
- microservice architecture ([easy posts on System design](https://swe.quest/tags/system-design.md?difficulty=easy))

## Keywords

Canva Live, Redis Streams, AWS ElastiCache, lettuce, WebSockets, Redis SortedSet, Reactive Streams

## Related posts

- [More Reliable Connections to Your Repls](https://swe.quest/articles/more-reliable-connections-to-your-repls-07578bd14f5efb1d.md): Replit · 2024-03-18 · Medium · 5 min read · Load balancing, System design, Resilience, SRE, Real-time systems
  Replit split reverse WebSocket proxying out of Conman, its container manager on GCE VMs, into a dedicated service called Eval that sits between clients and Conman VMs.
- [Real-time Messaging](https://swe.quest/articles/real-time-messaging-63eff1981479ebae.md): Slack Engineering · 2023-04-11 · Medium · 6 min read · Real-time systems, System design, Distributed systems, Communications, Scaling
  Slack's real-time messaging runs on four Java services: stateful in-memory Channel Servers sharded by consistent hashing, regionally deployed Gateway Servers holding websocket subscriptions, stateless Admin Servers bridging the Webapp backend, and Presence Servers tracking online users.
- [From Event-Driven Chaos to a Blazingly Fast Serving API](https://swe.quest/articles/from-event-driven-chaos-to-a-blazingly-fast-serving-api-515d5b06058dbe2a.md): Zalando Engineering · 2025-03-06 · Medium · 8 min read · Caching, Load balancing, Event-driven architecture, Performance engineering, E-commerce
  Zalando replaced an event-driven pipeline that merged Product, Price and Stock events with a central Product Read API (PRAPI).
- [Scaling Shopify's BFCM Live Map: An Apache Flink Redesign](https://swe.quest/articles/scaling-shopify-s-bfcm-live-map-an-apache-flink-redesign-bcbe156fa7990bd0.md): Shopify Engineering · 2021-12-10 · Medium · 9 min read · Stream processing, Scaling, System design, Real-time systems
  Shopify scaled its Black Friday/Cyber Monday live sales map by putting Apache Flink in front of Cricket, its home-grown Go stateful streaming service.
- [Bringing serverless functions closer to the speed of wire](https://swe.quest/articles/bringing-serverless-functions-closer-to-the-speed-of-wire-4593ae513494961f.md): Modal · 2026-08-04 · Medium · 5 min read · Serverless, Performance engineering, System design, Go, Queues & messaging
  Modal rebuilt its serverless I/O plane, which queues Function inputs and outputs, and now runs it in at least four regions.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
