tdmalone / slackemon

Inspired by Pokémon Go, now you can catch and battle Pokémon with your teammates on Slack!
GNU General Public License v3.0
10 stars 3 forks source link

Need to set up data cache on AWS #14

Closed tdmalone closed 7 years ago

tdmalone commented 7 years ago

Currently the data cache only works locally, which is not feasible for ephemeral filesystems.

While the image cache functions work whether set on either 'local' or 'aws', the data cache is not yet set up to work on AWS. It will need read and write operations set up, unlike the image cache which only writes and which is accessible publicly.

tdmalone commented 7 years ago

Data cache option for AWS is now live, and is the default when Slackemon is deployed on Heroku.

Future enhancements will be required, because AWS is an 'eventually consistent' file system, so there's a chance we might run into issues with regularly changing data like player and battle data. There's also the file locking issue. Redis or Postgres services on Heroku could probably solve both of these, but need to consider an easy way to deploy outside of Heroku as well eg. locally thru Docker.

Closing this issue because this has now been solved, but I'll add project/s for the above.