Skip to content
This repository was archived by the owner on May 24, 2024. It is now read-only.
This repository was archived by the owner on May 24, 2024. It is now read-only.

PoC: use of Redis as backend, drop relational database #402

@maxux

Description

@maxux

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions