PgOutput2Json is a lightweight .NET library that uses PostgreSQL logical replication to stream row-level changes as JSON messages to RabbitMQ, Kafka, Redis, or your own .NET Core application.
https://pg2json.com/ โ// momentum
// why it's here
- Active: last commit today
- Built almost entirely by one person
- Health 99/100 with only 33 stars
- Around since 2021 and still shipping
// how to help
// readme
PgOutput2Json
PgOutput2Json is a .NET library that uses PostgreSQL logical replication to stream JSON-encoded change events from your database to a .NET application or a message broker like RabbitMQ, Kafka, or Redis.
๐ Documentation: pg2json.com
๐ Use Cases
Use PgOutput2Json when you need to react to DB changes in near real-time:
- ๐ Background tasks triggered by inserts/updates
- โก Low-latency application cache updates
- ๐ Asynchronous logging (to file or another DB)
- ๐ Real-time data aggregation
- ๐ ๏ธ Lightweight ETL for DWH solutions
All with minimal latency โ events are dispatched shortly after a transaction is committed, though large transactions may introduce additional delay due to processing and transmission overhead.