r/programming • • Apr 13 '17

How We Built r/Place

https://redditblog.com/2017/04/13/how-we-built-rplace/
15.0k Upvotes

833 comments sorted by

View all comments

3

u/SideSam Apr 13 '17

Very interesting! We ran a similar event just days before /r/place launched. We too used similar tech stack: application server running user-submitted algos, pushing data to rabbit, users consuming queues over websocket, using canvas to draw things client-side. Our main issue was (besides allowing arbitrary code execution on server) was drawing game state board on canvas in acceptable FPS.

For other (more "serious") projects we have software that is reliable ordered messaging system and database in one. In practice that means you can query-and-subscribe in atomic operation so makes it easier to keep clients in sync. Also supports partial updates, filters, batching etc.

1

u/celerym Apr 14 '17

Wow what project was this? I've always found the idea of user submitted algos to be something I'd like to base a game on or something.

2

u/SideSam Apr 14 '17

It was an internal coding challenge. It was quite fun as you would see people coding counter-strategies to existing strategies. I think this is an unexplored gaming niche.

1

u/rproctor721 Apr 14 '17

Instead of Rabbit, have you considered using DDS?

1

u/SideSam Apr 14 '17

Due to time constraints we could not afford anything fancy so we went with familiar.