Skip to main content
  1. Backend Landing Page/

PGMQ-SQLAlchemy 0.2.0 Release: Support ACID Transactions and FastAPI Integration

·2 mins· ·
Table of Contents

PGMQ (PostgreSQL Message Queue)
#

https://github.com/pgmq/pgmq
PGMQ is a lightweight message queue based on PostgreSQL.
It is implemented using a PostgreSQL Extension.

Since it relies solely on PostgreSQL, it is highly suitable for lightweight business requirements that need a message queue.

Currently, we use it in a scenario with an existing API Server + PGMQ + consumer
to handle asynchronous tasks and retry mechanisms for third-party services.

More broadly,
especially in scenarios where your infrastructure currently only includes PostgreSQL and you wish to avoid introducing RabbitMQ or major cloud messaging solutions, yet still require Pub/Sub or SQS-like functionality,
PGMQ is a compelling choice.

For more detailed comparisons with other message queues and usage examples, please refer to the following article:
Why Choose PGMQ? Implementing ACID Transactional Message Queues in PostgreSQL

PGMQ-SQLAlchemy 0.2.0 New Features
#

GitHub Coding Agent
#

A primary motivation for maintaining this package is to evaluate the effectiveness of GitHub Coding Agent. Here are some PRs demonstrating impressive results:

  • Leveraged libCST to parse and modify the Python AST to generate corresponding async methods (#36)
  • Migrated dependency management from Poetry to uv (#14)
  • Added support for Dark Theme (#47)
  • Resolved an ambiguous error in pgmq function overloading (#25)

Related