Stress Test Your Reflexes (And My App)

This ad is not shown to multipass and full ticket holders
React Summit US
React Summit US 2026
November 17 - 20, 2026
New York, US & Online
Upcoming event
React Summit US 2026
React Summit US 2026
November 17 - 20, 2026. New York, US & Online
Bookmark
Rate this content
Sentry
Promoted
Code breaks, fix it faster

Crashes, slowdowns, regressions in prod. Seer by Sentry unifies traces, replays, errors, profiles to find root causes fast.

Get started

What happens when you turn your audience into a live, distributed load test?

We will kick off this session with a high-stakes, multiplayer "Whack-a-Mole" challenge played right from your phone. As you compete for the leaderboard, a live stream of concurrent data will be generated to showcase realtime web capabilities in action across devices.

After playing around, it is time to get serious by digging into the challenges, architecture and technologies used when building such a platform. Discover how helpful or distracting AI can be during this process.

Key takeaways include:

  • AI: The Good & The Glitchy!
  • The Stack: NextJS, Supabase.
  • Realtime: No longer refreshing the page.

Leave the theory behind and see how modern tools and a bit of trial and error handle the chaos of live user interaction.

This talk has been presented at JSNation 2026, check out the latest edition of this JavaScript Conference.

Eddie Jaoude
Eddie Jaoude
32 min
11 Jun, 2026

Comments

Sign in or register to post your comment.
Video Summary and Transcription
Eddie from PayPal introduces a game called Whack-A-Mole but discusses the importance of real-time data and its elimination of constant page refreshing for applications. The evolution from AJAX to Comet to WebSockets marked a transition towards efficient bidirectional data communication, with Socket.IO simplifying complex processes. Postgres changes and Superbase enhance real-time features for better user experience. Real-time event handling, presence tracking, and broadcast events are crucial for scalable and flexible processing. The talk also delves into challenges and solutions in handling real-time data, including managing presence metrics and monitoring event handling.

1. Introduction to Real-time Data and Game

Short description:

Eddie from PayPal introduces a game called Whack-A-Mole but discusses the importance of real-time data. The game involves bonus points with PayPal logos and prizes for participants. Real-time data eliminates the need for constant page refreshing and inefficient polling, crucial for applications like the game Eddie presents.

Thank you, everyone, for the warm welcome. I'm super excited. I'm glad we've got quite a full house here today. So, my name is Eddie, and thank you so much for being here. I'm a dev advocate as part of the PayPal team. And today, I want to talk about realtime data.

But first, let's play a game. I'm super excited to see how this goes. As mentioned, the game is Whack-A-Mole. Who knows the game Whack-A-Mole? Oh, 75%? Yeah, that's really good. Okay, great. I promise you, no moles were hurt in the making or playing of this game. But just to clarify, this talk is not about game development. It is about realtime data with the open source project SuperBase.

The aim of the game is to whack the mole if you haven't played before. But I'm not going to go into that. It seems like you all know how to do it. But the bit that you don't know is, with the moles, there are some PayPal logos where you can get a bonus 10 points. So, do try and get those. And they appear in the second half of the game. Let's play. So, if you scan this QR code. This is a great photo. Can I get a photo with you all? Perfect. Scan the QR code. If you don't want to scan the QR code or your phone doesn't have a camera, you can use the link later on and you can send it to your friends if they're not here as well.

Please use the name on your badge for two reasons. One, it's going to be up on the screen and I don't want anything rude. And two, there are big prizes to be won. There is extra swag that you get for being here, but it is on a first come first serve basis. So, do go to the booth straight afterwards and say you've been here and show them the game on your app. Maybe a photo of me on stage. And also there is an iPad Air. I think it's an Air to be won at 5pm today. So, you'll need to be at the booth at 5pm to see who won.

One last thing. Don't close the browser after the game because we need that for the end of the talk. So, while you're playing, let's just talk about realtime data. So, why is real-time data important? Nobody wants to keep refreshing the page. When I'm showing the leaderboard, I don't want to keep refreshing it and seeing if new data has come in. And polling is not really a good solution because I don't think it really solves anything. It might do in the short term, but every request is going to the server and maybe nothing has changed. So, that wastes compute, wastes bandwidth, and really compounds at scale. And for this game, as I'm going to show you in a minute, I specifically need some real-time features. Like, I can see how many people are playing right now. We'll get to how that probably works shortly. I mean, you use real-time data every day. Slack, Discord, WhatsApp. So, you see it all the time.

2. Exploring Real-time Leaderboard and Game Backstory

Short description:

Eddie explains the real-time leaderboard with ongoing games and total games played. He discusses player achievements and shares a brief backstory about how the game idea originated and evolved.

So, you see it all the time. So, let me bring up the leaderboard and see how the scores are doing. How is everyone doing? Wow. Okay. My computer was asleep and locked. Let me just start everything again. Wow. 160 games in progress. I mean, that's really, really awesome. I hope someone's taking a screenshot of this. I think I need to. Hopefully that worked. A little keyboard shortcut. But, yeah. People are playing. Thank you so much. This is great. So, let me explain to you a bit about the leaderboard and what's real-time. Well, all of it is real-time. But if you look at the games in progress, that's people playing right now. And we're going to talk about how we can achieve that. And then you've got the total games played as well. That will increase as games in progress decrease. So, as the results come in when the game finishes, then total games played will increase. And also, the leaderboard and other sections will also update in real-time.

Okay. I think someone spelled their name wrong. There might be a typo in the first place. How many games have you played? Just one, two? Okay. Perfect. We're ready to move on. Did anyone manage to get the PayPal logo? A few people. One of them, two or three of them? Two? Anyone get three? A few of you. The game is too easy. I need to make it harder next time. Okay. Awesome. I want to give you a very brief back story, not on my 15 years, how I got here, but how I got here today with PayPal. So, I recently joined PayPal, and they said, can you do a fun talk at JS Nation? And I thought, well, I do talk on open source, full-stack development, automated testing. I think that's fun. But maybe that doesn't, you know, count as fun. So, I thought I'd do something a bit different. And I saw Nikki from my team a moment ago, and she gave me the idea of building a game. And I never built a game before, so I thought that'd be fun for me as well. So, I started thinking of what games would work well in the browser and on our phones. And what do we all do in 2026? We ask AI. Interestingly enough, I didn't ask AI for ideas of games. Looking back, that probably would have been a good idea. I did that manually, went old school with that one. But when I found Whack-a-Mole, I thought, right, I'll get AI to MVP a client-side solution that I could play with.

QnA

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

The Whimsical Potential of JavaScript Frameworks
React Summit US 2023React Summit US 2023
28 min
The Whimsical Potential of JavaScript Frameworks
Top Content
The speaker discusses the whimsical and detailed work of Stripe, particularly their interactive and dynamic pages. They explain the use of React for building whimsical details and tracking mouse position. The speaker introduces React Spring for smooth animation and React3 Fiber for creating a 3D egg model. They also mention the use of Framer Motion and React server components for animating CSS properties.
Emotional & Functional UI Animations in React
React Day Berlin 2022React Day Berlin 2022
28 min
Emotional & Functional UI Animations in React
Today's Talk discussed the importance of UI animations in React, both functional and emotional. Examples were given using CSS and Framer Motion, with a focus on user feedback and accessibility. Design guidelines and animation usage were highlighted, as well as the consideration of negative emotions in animations. The Talk also touched on designing 404 error pages and concluded with gratitude to the audience and organizers.
JavaScript Haikus: My Adventures in Tiny Coding
JS GameDev Summit 2023JS GameDev Summit 2023
27 min
JavaScript Haikus: My Adventures in Tiny Coding
This Talk is about writing super tiny JavaScript programs, known as tiny code. It explores the concept of code golf and the use of a live editor for instant feedback. The Talk discusses various ways to share tiny code, including Twitter.net. It also covers creating graphics, games, and sound in a small space. The speaker highlights inspiring tweets and showcases examples of tiny code, including asemic writing. The future of tiny code includes new techniques, better browser support, and AI-assisted programming.
The Hitchiker's Guide to Event Driven Architectures
Node Congress 2025Node Congress 2025
30 min
The Hitchiker's Guide to Event Driven Architectures
Premium
Today's Talk introduced event-driven architectures with Node.js. The event loop in Node.js enables non-blocking interaction between components. The event emitter class is used to handle events synchronously. Redis and Apache Kafka are popular tools for event handling, with Kafka providing scalability and persistence. Kafka.js is a JavaScript library that supports transactions and compression. Server-sent events are used to send events to the client. A plugin and library are used to convert an event emitter to an async iterator. The client displays emojis and updates the vote count.
Hacking an e-Reader with React
React Advanced 2023React Advanced 2023
7 min
Hacking an e-Reader with React
React for eBooks? Learn how to hack an eReader to display a tea menu. Create images and write e-books using React. Use EPUB format to create chapters and include CSS. Use Pandoc and Dino to simplify the process and make quick updates.
Real-Time Robot Control From the Browser With WebRTC
JSNation 2025JSNation 2025
21 min
Real-Time Robot Control From the Browser With WebRTC
Nick Hare, developer advocate at Veeam, learned robotics from open source projects. WebRTC facilitates secure machine connections. Implementing WebRTC involves using Stun, ICE candidates, TURN servers, and signaling. Signaling and Remote Procedure Calls are crucial for peer-to-peer communication. Building a proof of concept with Notify involves PubSub messaging and REST API. Establishing WebRTC connections and data channels enables direct messaging. Video streaming and remote control are demonstrated with a webcam connected to a Raspberry Pi. VM robotics development allows building robots and smart machines with cloud support and SDK.