top | item 29544512

(no title)

jastr | 4 years ago

This is quite a bit of infrastructure for an app that hasn't launched yet. If it's not too late, consider simplifying by removing RabbitMQ or Redis. Perhaps even getting rid of both, and only using MySQL. Maybe your workers could become cron-jobs or threads.

For hosting, consider Heroku and Heroku add-ons for MySQL, Redis, and RabbitMQ. You could run workers in Heroku as well.

It would be possible to run this entirely in a VPS as well and fairly straightforward. I've also had success running the web app (with postgres and redis) in Heroku but the workers on a VPS.

discuss

order

JoeOfTexas|4 years ago

Hmm, it may be tricky to redo the infrastructure to remove Redis. I use a triple storage system of Local Cache => Redis => MySQL, where each is a fallback for it's previous. I also use Redis for other things that can be done quicker than sql, like a real-time leaderboard.

RabbitMQ is also integrated heavily between the different services.

Looking at Heroku, it seems a bit overpriced for MySQL and Redis, the cheaper offerings don't offer much RAM.

I might look at VPS/Bare metal to host all the infrastructure. Thanks!