Home / Companies / Neo4j / Blog / Post Details
Content Deep Dive

How We Build a Clone of r/place with GraphQL

Blog post from Neo4j

Post Details
Company
Date Published
Author
Andrés Ortiz Corrales
Word Count
2,721
Company Posts That Month
14
Language
English
Hacker News Points
-
Post removed?
No
Summary

We built a demo of r/place using GraphQL subscriptions with Neo4j Graph Database. We created a collaborative 30x30 canvas where users can paint and their changes are shared in real-time across all connected users through WebSockets. The demo showcases how to create a production-ready real-time service with GraphQL, including scalability and performance considerations. We used Apollo Server, graphql-ws, urql, and CloudAMQP for the server-side implementation. The client-side implementation was built using HTML5 Canvas, JavaScript, and Puppeteer headless browser. We demonstrated how to scale the demo horizontally by using AMQP as a message broker and Neo4jGraphQLSubscriptionsAMQPPlugin. The demo can handle roughly 500 concurrent users painting at the same time, with one bot equivalent to 10 concurrent users in terms of load to the system.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 5 1,345 353 126 +6%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.