ACCELERATOR
Fabric Racing Game
HTML5 multiplayer racing game for 4 drivers with real-time telemetry streaming
📋 Overview
Race against 3 AI drivers in an HTML5 game while streaming real-time telemetry to Microsoft Fabric. Learn how to build Custom Endpoints, configure JSON mapping, and create live dashboards - all while having fun!
🔧 Workloads
📦 Fabric Items Deployed
Eventhouse
RacingEventhouse
KQL Database
RaceData
Eventstream
RacingStream
Notebook
Racing_Game
Notebook
Race_Simulator
Notebook
Race_Dashboard
🎯 Scenarios
🚀 Quick Start
Open a Fabric Notebook and run:
# Cell 1 - Install
%pip install -q fabric-arcade
# Cell 2 - Deploy
from fabric_arcade import arcade
arcade.install("fabric-racing-game")
That's it! A README notebook with complete instructions will be created automatically.
⚙️ Post-Deploy Configuration
1
Configure Eventstream
Open RacingEventstream in your workspace and click Edit.
- Add a Custom Endpoint Source named
TelemetryInput - Add a KQL Database Destination →
RacingEventhouse→RacingDB→Telemetry - Connect Source to Destination
- Click Publish
2
Copy Eventstream URL
After publishing, click on the Custom Endpoint Source and copy the Ingestion URL.
3
Start the Game
Open the RacingGame_Play notebook, paste the Eventstream URL, and run all cells.
4
Play! 🎮
- WASD or Arrow Keys: Steer and accelerate
- Space: Brake
- Invite up to 4 players for multiplayer races!
✨ What You'll Learn
- 🎮 Build interactive HTML5 games in Fabric notebooks
- 📡 Configure Custom Endpoints for data ingestion
- 🗺️ Set up JSON mapping in Eventstream
- 📊 Create real-time KQL dashboards
- ⚡ Stream events with sub-second latency
🏛️ Architecture
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ HTML5 Racing │────▶│ Eventstream │────▶│ Eventhouse │
│ Game │ │ (Custom EP) │ │ (KQL Database) │
└─────────────────┘ └─────────────────┘ └─────────────────┘
│
▼
┌─────────────────┐
│ Race Dashboard │
│ (KQL Queries) │
└─────────────────┘
📋 Prerequisites
- ✅ Microsoft Fabric workspace (F2+ capacity or Trial)
- ✅ Contributor permissions on the workspace