zlacker

[return to "Postgres is a great pub/sub and job server (2019)"]
1. kpmah+Db1[view] [source] 2021-12-18 11:30:27
>>anonu+(OP)
To spell out good reasons for doing this:

If you're already using Postgres, you can avoid increasing operational complexity by introducing another database. Less operational complexity means better availability.

You can atomically modify jobs and the rest of your database. For example, you can atomically create a row and create a job to do processing on it.

◧◩
2. svdr+7g1[view] [source] 2021-12-18 12:26:24
>>kpmah+Db1
Avoiding increasing operational complexity is really important, but for pub/sub we are using Redis. While this does add complexity, it is very little, because it is incredibly easy to install and maintain.
◧◩◪
3. kpmah+mm1[view] [source] 2021-12-18 13:34:11
>>svdr+7g1
Obviously you're in a better position to evaluate the trade-offs for your application than I am, so I'm not saying your decision is wrong, but this can potentially decrease availability if your application depends on both PostgreSQL AND Redis to be available to function.
[go to top]