Does peerdb help in replicating from one citus cluster to another citus cluster ? If not, then is there any other solution?
Show HN: Peerdb Streams – Simple, native Postgres change data capture
31–40 of 42 posts
Re: Show HN: Peerdb Streams – Simple, native Postgres change data capture
#32Earlier quoted context omitted.
Great question! We have retry logic in place to handle Postgres restarts. If the failure occurs in-place, you should be fine as the slot will persist. If Postgres fails over to the standby, PeerDB will wait until the slot is created. We did consider automatically creating the slot if it doesn't exist on retries, but ensuring data reliability (creating the slot right after failover without data being ingested) is tric…
Thanks! I'd say, this is a very complicated problem left to be solved by user. Debezium also does not solve the problem it, and from DBA point of view it is a blocker for adoption. Would be nice to have some solution that would ensure that logical replication slot persists through failover.
Re: Show HN: Peerdb Streams – Simple, native Postgres change data capture
#33There's one thing missing and we could hook it up to your CDC solution. For each message, we need to set the __typename field. Does your solution have a way to accomplish this?
EDFS reference: https://cosmo-docs.wundergraph.com/router/event-driven-feder...
Re: Show HN: Peerdb Streams – Simple, native Postgres change data capture
#34We're currently in the process of adding Kafka support to EDFS (Event Driven Federated Subscriptions), a specification to add NATS, Kafka, and other pub sub or streaming services to a federated graph. There's one thing missing and we could hook it up to your CDC solution. For each message, we need to set the __typename field. Does your solution have a way to accomplish this? EDFS reference: https://cosmo-docs.wunderg…
Re: Show HN: Peerdb Streams – Simple, native Postgres change data capture
#35We're currently in the process of adding Kafka support to EDFS (Event Driven Federated Subscriptions), a specification to add NATS, Kafka, and other pub sub or streaming services to a federated graph. There's one thing missing and we could hook it up to your CDC solution. For each message, we need to set the __typename field. Does your solution have a way to accomplish this? EDFS reference: https://cosmo-docs.wunderg…
Yes, that is doable through a very simple Lua-based row-level transformation. :) Here is an example transformation that adds an additional field: https://github.com/PeerDB-io/examples/blob/main/usdcad.lua . More details on row-level transformations are planned to be released later this week. :)
If you're interested, just fill our contact form and mention this thread. This could be really cool!
Re: Show HN: Peerdb Streams – Simple, native Postgres change data capture
#36Earlier quoted context omitted.
Great question! We have retry logic in place to handle Postgres restarts. If the failure occurs in-place, you should be fine as the slot will persist. If Postgres fails over to the standby, PeerDB will wait until the slot is created. We did consider automatically creating the slot if it doesn't exist on retries, but ensuring data reliability (creating the slot right after failover without data being ingested) is tric…
Thanks! I'd say, this is a very complicated problem left to be solved by user. Debezium also does not solve the problem it, and from DBA point of view it is a blocker for adoption. Would be nice to have some solution that would ensure that logical replication slot persists through failover.
Re: Show HN: Peerdb Streams – Simple, native Postgres change data capture
#37Re: Show HN: Peerdb Streams – Simple, native Postgres change data capture
#38Noob question: What is the advantage of replicating data into a warehouse vs. just querying it in place on a postgres database?
Also reporting/analytics work loads tend to be ad hoc queries and hard to optimize so you generally favor fast storage over indexes. Frequently for analytics and reporting it's more efficient to use a columnar DB than a relational db
Re: Show HN: Peerdb Streams – Simple, native Postgres change data capture
#39what is the difference between using this library and PG_LISTEN/NOTIFY with triggers for each row change?
Re: Show HN: Peerdb Streams – Simple, native Postgres change data capture
#40what is the difference between using this library and PG_LISTEN/NOTIFY with triggers for each row change?
Triggers have much larger overhead than writing to the replication stream (which most databases should be doing anyway), so if you have a lot of traffic this is faster.