{"by":"nick-keller","descendants":19,"id":43217546,"kids":[43258882,43257366,43259414,43260252,43261129,43257539,43260526,43258463],"score":56,"text":"Hello HN!\nKeeping Elasticsearch or Algolia in sync with Postgres is a pain when your data spans multiple tables. Traditional CDC tools like Debezium capture table-level events but don’t help when you need to index a full entity composed of related records. That&#x27;s why I built PG-Capture.<p>PG-Capture lets you define a schema as complex as you need, aggregate table-level events, and reconstruct structured objects spanning multiple tables. It then publishes them as meaningful domain-level events to any queue (RabbitMQ, SQS, etc.).<p>PG-Capture does NOT replace Debezium, it works on top of it (or any other event source). This keeps it flexible and tool-agnostic.<p>I&#x27;d love to hear your thoughts! Does this solve a problem you&#x27;ve run into? Would you use something like this in your stack? Feedback is welcome!","time":1740820682,"title":"Show HN: PG-Capture – a better way to sync Postgres with Algolia (or Elastic)","type":"story","url":"https://pg-capture.onrender.com/"}