Skip to content

Commit

Permalink
Add notes about psycopg3 and bump version number
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulGilmartin committed Sep 9, 2024
1 parent 20bdb65 commit 3aa099a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ Highlights
- **Lightweight Polling**: we make use of the Postgres ``LISTEN/NOTIFY``
protocol to have achieve notification polling which uses
[no CPU and no database transactions unless there is a message to read.](https://www.psycopg.org/docs/advanced.html#asynchronous-notifications)
(Note: This is true when using the `psycopg2` library, which is the default. `psycopg3` is supported,
but polling incurs a small CPU cost to fetch the notifications.
We hope to fix this in the future once `psycopg3` makes it easier to poll for notifications client side).

- **Exactly-once notification processing**: ``django-pgpubsub`` can be configured so
that notifications are processed exactly once. This is achieved by storing
Expand Down
3 changes: 3 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ Highlights
- **Lightweight Polling**: we make use of the Postgres ``LISTEN/NOTIFY``
protocol to have achieve notification polling which uses
`no CPU and no database transactions unless there is a message to read. <https://www.psycopg.org/docs/advanced.html#asynchronous-notifications>`__
(Note: This is true when using the `psycopg2` library, which is the default. `psycopg3` is supported,
but polling incurs a small CPU cost to fetch the notifications.
We hope to fix this in the future once `psycopg3` makes it easier to poll for notifications client side).

- **Exactly-once notification processing**: ``django-pgpubsub`` can be configured so
that notifications are processed exactly once. This is achieved by storing
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ name = "django-pgpubsub"
packages = [
{ include = "pgpubsub" }
]
version = "1.2.1"
version = "1.3.0"
description = "A distributed task processing framework for Django built on top of the Postgres NOTIFY/LISTEN protocol."
authors = ["Opus 10 Engineering"]
classifiers = [
Expand Down

0 comments on commit 3aa099a

Please sign in to comment.