Design A New Feed System

Pasted image 20240617200416.png

The main thing of a new feed system is the feed distribution which takes the data from Post Database and User database to distribute the feeds.

When distribute the feeds, we can use cache instead of database since the newfeed is changing daily.

We use Pull model here since it the workers can dynamically generate the newfeed during read time. Using push model can achieve real time but however expensive.