stamford-syntax-club / course-compose

Course Compose is a course-review website tailored for Stamford students, providing a platform for sharing and discovering insights about various courses
MIT License
2 stars 0 forks source link

Store pending review inside a Kafka cluster #31

Closed chinathaip closed 9 months ago

chinathaip commented 10 months ago

Considering the fact that we are using a free tier for our PostgreSQL database - limited storage and api call

The number of pending reviews can grow more than the number of approved reviews.

We can try using a message queue like Kafka to store all the pending reviews instead, and only write the approved reviews to our database.

If a review is rejected, we can inform them through our site's notification feature (Not yet implemented)

https://kafka.apache.org/intro https://docs.confluent.io/kafka-clients/go/current/overview.html

chinathaip commented 9 months ago

image

chinathaip commented 9 months ago

Kinda difficult to remove pending reviews from the Kafka topic once it has been approved

Will stop the R&D for now