You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 24, 2024. It is now read-only.
I forked the repo (https://github.com/maxux/pogom) and replaced (easier) the sql backend with a proof-of-concept with Redis backend.
I actually run this code and I test it, if someone else is interrested by this, it's a way to show it.
Why Redis ?
Redis is a in-memory data structure store. Using Redis dramatically reduce ressource usage and make the pogom query/response lot faster than the SQL version. To make it works, just install redis-server locally and run the version in my fork with your configuration.
I use the expiration key feature of redis to keep only current pokemon visible and save the stats in another hash.
My actual tests runs on 2x 1km radius and I hit about ~2% cpu usage with 30 users simultaneously connected to the website.
Everything is not yet fully ported, but if some guys can test it, it would be nice.