Giter VIP home page Giter VIP logo

Comments (2)

brutasse avatar brutasse commented on May 30, 2024

FeedHQ uses RQ which is redis-only. Redis is also used as a cache backend for sessions and static files. PostgreSQL has listen/notify capabilities but technically FeedHQ is SQL-agnostic so relying on Postgres means ditching SQLite / MySQL / Oracle support provided by the Django ORM.

There is the trick of setting RQ to eager mode by adding ?eager=True to the REDIS_URL environment variable but that would work only if you're able to process tasks very quickly (or if you have few feeds to process). The eager mode makes the async backend synchronous, meaning every time something is enqueue()'d it gets processed immediately.

This would be fine for small loads, when a single worker would be enough. Probably fine for a single user on shared hosting.

There are a couple of places where stuff is made async in the views:

  • OPML import
  • Sending to Readitlater / readability / instapaper
  • Saving a feed object

Eager mode would make these views slow. The worst case being OPML import :)

from feedhq.

brutasse avatar brutasse commented on May 30, 2024

Bad news: the scheduling code now uses Redis instead of the database. It's also much more efficient :). I have very little interest in making the redis dependency optional now, so I'll just close the bug. Postgres and Redis are both hard dependencies.

from feedhq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.