Home > Web Front-end > JS Tutorial > We launched a game… and Reddit BROKE it

We launched a game… and Reddit BROKE it

Susan Sarandon
Release: 2025-01-05 10:00:39
Original
321 people have browsed it

In the end of 2024 we built cohesion, a game that allows you to create custom connections games, as part of SvelteHack. We wanted to launch this project fr this time, unlike our other projects with 0 users

We launched a game… and Reddit BROKE it

We decided to launch on multiple subreddits, and it did work we got 300 visitors on the first day racking in over 200 upvotes on the posts. But there was a catch, we hit our Upstash limit of 10k commands, and we were down for over two hours.

We launched a game… and Reddit BROKE it

Our primary database was Redis and which we used for Auth and as a database for games. On our home page we rendered title and the plays and for this to work we needed to fetch all the games, causing every game to fetch.
After the outage we faced, we worked on a more optimised approach to fetching data using sorted sets, we created a set with plays as key and object of title and id as value. The optimisations worked!(hopefully), we haven't gotten as many users as we did on the first day, but at least the commands usage has reduced significantly.

We are releasing Cohesion on Product Hunt today and I hope this will allow us to see our optimisations in action. Which btw you can upvote on:
https://www.producthunt.com/posts/cohesion-game

We aim with this launch was to get a community going for our game which we think is doable in the near future. Until then we will keep shipping new updates.

The above is the detailed content of We launched a game… and Reddit BROKE it. For more information, please follow other related articles on the PHP Chinese website!

source:dev.to
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template