Quick Links
- Portal for Collobration Notes 共筆統整入口 (hosted by betw.hackfoldr and HackMD)
- Program Schedule 演講列表
- PyCon TW 2017 Official Site 官網
How to update this note?
- Everyone can freely update this note. 任何人都能自由地更新內容。
- Please respect all the participants and follow our code of conduct during discussion. 討論、記錄時,請遵守大會的行為準則
Request
Response
Q: Why not use AWS?
AWS跟中華電信間連線超慢
Q: 應對百萬使用者的方式?
設定動態開設資源
Q: Header content type為空?
手動刪除的XD
Q: 阿里雲和GCP共通方式?
可以做data sync但中國比較偏向自己有伺服器但是Code共通
Q:歌曲放上CDN是否會被竊取?
歌曲資料有經過加密
自我介紹:從趨勢獨立成立的子公司 soocii
平台提供給手遊玩家的價值
費時<1年
backend工程師*5
推薦大師:Martin Fowler、Sam Newmer
解決傳統monolithic架構的問題
傳統架構:
(負載平衡)+(各種認證,註冊,通知等服務…)+(DB)
改完後=>user用的版本跟後端不相容=>破壞UX
革新的設計
Small Codebase
Easy to Scale
Easy to Deploy
System Resilience
系統配置
混合雲:AWS + GCP (因為AWS在tokyo,速度不夠快)
使用技術:Python + C
micro service 問題:開發環境的準備
外部相依性 & 內部相依性
soocii 採用混合方案
參考:Development environments for microservices (https://www.datawire.io/guide/deployment/development-environments-microservices/)
跨服務的溝通
自動化測試(CI)
自動化部署(CD)
Q. Instance實際溝通的行為,開發中如何處理?
AWS: (application load balancer)
每個docker註冊在ALB後面 => 確保服務活著,但不清楚是跟哪個docker溝通
Q. 跨伺服器溝通如果逼不得已要交換資料,怎麼處理?
只可能盡量避免。
Q. 為什麼要做混合雲?發生什麼事情?
直播的frame rate掉太多,內部做profiling本地端最快,最後才採用本地端。
Slide: https://speakerdeck.com/dawny33/understanding-serverless-architectures
Speaker: Jalem Raj Rohit
what is serverless?
function as a service, no servers
AWS: Lambda > functions > …
function container
advantages
dis(ad-)vantages
lessons learned and pitfalls
nohup
modeHow to scale?
Slider: Python module in Rust
Speaker: 許邱翔 (Chiu-Hsiang Hsu) (dv)
Rust community love Python most
Rust cares memory safety without GC ; Rust is high performance like C
benchmark
pyvenv + pip -> Cargo
PEP of Rust -> RFC
Q: why the Rust source code need something like "Extend C"
A: that is for avoiding default behavior "name mangling" like C++
Q: Rust can share memory buffer with Python?
A: yes