Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Redis dependence #501

Open
aumetra opened this issue Mar 15, 2024 · 2 comments
Open

Remove Redis dependence #501

aumetra opened this issue Mar 15, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@aumetra
Copy link
Member

aumetra commented Mar 15, 2024

Is your feature request related to a problem? Please describe.
Kitsune right now is dependent on Redis even though it really doesn't need to be. All of its functionality can be replaced by PostgreSQL with maybe 1 or 2 extensions (where pg-trunks is an excellent way to install them)

Describe the solution you'd like
Add a mode for the job scheduler where it can run without Redis and instead with something like a combination of pgmq and pg_cron. Not sure about the choice of plugins yet, it's subject to bikeshedding.

@aumetra aumetra added the enhancement New feature or request label Mar 15, 2024
@perillamint
Copy link
Contributor

perillamint commented Apr 2, 2024

Used similar solution in my previous job, so I can implement similar solution without extension (my previous implementation was implemented purely using PL/PGSQL, which does not require any extension)

However, I'm a little bit worried about performance, because PostgreSQL is not designed to be used like Redis (so some benchmarking should be done I guess)

@aumetra
Copy link
Member Author

aumetra commented Apr 2, 2024

Yeah, exactly. That performance concern was the original reason why I removed the old queue in the first place.

The idea right now is to implement it as a secondary mode.

Leave the redis functionality as-is and add a second database mode, so that you don't have to use redis, but can if you want higher performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants