使用 PostgreSQL 及 MongoDB 從零開始建置社群必備的按讚追蹤功能
Abstract
按讚、追蹤是網路社群必備的兩個功能,但最容易與使用者互動的這兩個功能,後端其實花了不少功夫達成。
這場分享會先從按讚功能講起,包括如何利用 PostgreSQL 設計易維護的 table 以及如何使用 lock 避免重複按讚;後半段則是會結合 MongoDB,讓使用者發文時,能夠快速通知他的追蹤者。
至少會提到的內容包括:
- PostgreSQL table 設計
- MongoDB collection 設計
- Redis lock 應用
- Message Queue 發送通知
English Abstract
In the social media network, "like" and "following" are essential features, but implement them are very difficult.
At first, the session will share how to implement "like" button via PostgreSQL and avoid to click it more times. And integrate MongoDB to implement "follow" feature.
Kewang