Single dependency stacks
Note that you can approximate rate-limiting in Redis with Postgres' UNLOGGED tables [0].  They're a lot faster than regular tables since they don't write to the WAL.  Of course, if you restart your server or if it crashes then you lose the table contents.  But for stuff like rate-limiting you probably don't care.  And unless you're using some kind of persistence in Redis it happens there also.I tend to run this kind of stuff on a separate PG server so that the query velocity doesn't affect more biz-critical things.[0] https://www.postgresql.org/docs/current/sql-createtable.html...