COSCUP x RubyConf TW 2021

使用 PostgreSQL 及 MongoDB 從零開始建置社群必備的按讚追蹤功能
07-31, 13:45–14:30 (Asia/Taipei), TR213
Language: 漢語


Translate Title

How to implement like and follow features via PostgreSQL and MongoDB

Abstract

按讚、追蹤是網路社群必備的兩個功能,但最容易與使用者互動的這兩個功能,後端其實花了不少功夫達成。

這場分享會先從按讚功能講起,包括如何利用 PostgreSQL 設計易維護的 table 以及如何使用 lock 避免重複按讚;後半段則是會結合 MongoDB,讓使用者發文時,能夠快速通知他的追蹤者。

至少會提到的內容包括:

  1. PostgreSQL table 設計
  2. MongoDB collection 設計
  3. Redis lock 應用
  4. Message Queue 發送通知
Talk Length

60

您是否知悉並同意如採遠端形式分享,需提供預錄影片(您需同意大會才能接受您的稿件) – yes 講者所屬的公司或組織名稱

Funliday

slido url

https://app.sli.do/event/8hcrurgs

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.