Language: 漢語
07-31, 13:45–14:30 (Asia/Taipei), TR213
How to implement like and follow features via PostgreSQL and MongoDB
Abstract –按讚、追蹤是網路社群必備的兩個功能,但最容易與使用者互動的這兩個功能,後端其實花了不少功夫達成。
這場分享會先從按讚功能講起,包括如何利用 PostgreSQL 設計易維護的 table 以及如何使用 lock 避免重複按讚;後半段則是會結合 MongoDB,讓使用者發文時,能夠快速通知他的追蹤者。
至少會提到的內容包括:
- PostgreSQL table 設計
- MongoDB collection 設計
- Redis lock 應用
- Message Queue 發送通知
60
您是否知悉並同意如採遠端形式分享,需提供預錄影片(您需同意大會才能接受您的稿件) – yes 講者所屬的公司或組織名稱 –Funliday
slido url – hackmd url –https://hackmd.io/@coscup/rynHHavRu/%2F%40coscup%2FS1C4BTDRO
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.