twpolitwoops final

18
Politwoops .tw 我說錯了嘛

Upload: -

Post on 28-Jun-2015

58 views

Category:

Technology


0 download

DESCRIPTION

politwooooooooooops.tw

TRANSCRIPT

Page 1: twPolitwoops final

Politwoops .tw

我說錯了嘛

Page 2: twPolitwoops final

期中後的預計進度:

Page 3: twPolitwoops final

說好的前端呢?

Page 4: twPolitwoops final

架是架了, 但...

Page 5: twPolitwoops final

其實勉強還是有東西可以看 畢竟有先做了一個MVP

Page 6: twPolitwoops final

長這樣:

實做的 screenshot, 但總是會有bug的

Page 7: twPolitwoops final

運作方式

Custom ≠ Public,截圖程式(未登入)抓不到

Page 8: twPolitwoops final

先回顧一下架構 畢竟多了 screenshot 有點不一樣

Page 9: twPolitwoops final

原本的架構

beanstalkd

MySQL

Streaming

Page 10: twPolitwoops final

新的架構

beanstalkd

MySQL

Streaming

First Insert.

AWS S3

Page 11: twPolitwoops final

新的架構

beanstalkd

MySQL

Streaming

First Insert.

AWS S3

Page 12: twPolitwoops final

Screenshot diff:

• Twitter • 截取 tweet 內附帶的網址內容 • 不截取原始的 tweet 畫面

• Facebook • 截取原始的 feed 畫面 • 截取 feed 附帶的連結產生的畫面

• Storage: 一樣都放到 AWS S3

Page 13: twPolitwoops final

已知的各種問題:

• 空白的圖檔/ 檔案大小 = 0bytes • 可能是截圖失敗( 原 source 會推回 beanstalkd, 但未做處理 ) • 或是該頁面的讀取時間過長

• 網址的讀取權限 • 只有發生在截取原始 feed 的情況下可能產生(感覺應該是無

解…)

Page 14: twPolitwoops final

之前待解的各種問題:

• For merge back: -> 兩個都只完成部份 • 將原本相關的參數都獨立出來使用新的

• Database tables 的 rename.

• For bugs: Check edited 的時間差

編碼問題

Check feeds should separate by time.

• access token should rewrite into .ini

Page 15: twPolitwoops final

Other Issues:

• FB api’s Feature:App 總 calls 必須在 600次/10min 以內 • 實際的影響:

• Feeds-checker.py 的呼叫次數

• Streaming.py(client) 每次讀取的數量

• 待解: • FB 當機的時候沒有 handle.

• Normal user 新增時應該通知 admin.

• 抓到 deleted feed 時應該附上圖片

Page 16: twPolitwoops final

看來還有好多未完成 前端啊….

Page 17: twPolitwoops final

Source Code? 在 http://j.mp/politwoops

(文件在 g0v’s hackpad)

Page 18: twPolitwoops final

DEMO TIME