2 ms·
Thanks! How does it work? Is it just storing and updating a JSON file without any real DB? My game is running on Heroku (connecting to mLab) so I don't think th
by Kiro 10y ago
Thanks! How does it work? Is it just storing and updating a JSON file without any real DB? My game is running on Heroku (connecting to mLab) so I don't think that would work.
- marknadal 10y agoOh, that is great! We even have an one click instant deploy Heroku gaming server https://github.com/gundb/gaming https://github.com/gundb/gaming ! However, you are right, that will just run "in-memory" (and I think that URL is using an old version of the database). But! No fear, there are adapters that connect to Amazon S3 (or others, you can connect to other storage engines, like Level - which in turn can connect to pretty much anything else). The S3 route is awesome because it means... 1. Multiple Heroku instances will still have persistent data across many reboots. 2. You don't have to worry about any Heroku plugin configuration / buildpack stuff. 3. S3 is ridiculously cheap, and you can even set it to auto-delete stuff after a month (in case you don't want to pay for long term storage). Plus, there is no vendor lock in, so you can easily switch away later.