UVicMartletplace / martletplace

Recreating FB Marketplace for Students - UVic SENG499 Capstone Project
0 stars 0 forks source link

Add PGSync to keep elasticsearch up to date with Postgres #212

Closed GDeane closed 3 months ago

GDeane commented 3 months ago

Feature Description

I'm going to try and use PGSync to keep elasticsearch up to date with Postgres (the source of truth) automatically.

relates: #70

Problem You're Trying to Solve

After a discussion with Max, I realized that making backend keep Elasticsearch up to date by hitting the endpoint whenever a listing gets added is risky if either system goes down.

Additionally, the 2000 or so demo listings inserted into Postgres before the demo are not being sent to Elasticsearch as is.

Related External Resources