Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Spacer - iThome Serverless All-Star

Poga Po
March 29, 2018

Spacer - iThome Serverless All-Star

Poga Po

March 29, 2018
Tweet

More Decks by Poga Po

Other Decks in Technology

Transcript

  1. Expose Function as Public JSON API with Lua local Gateway

    = { -- HTTP Method, Path, Function {"GET", "/hello", "hello"} } Code
  2. “Just a function” - Container • Programming languages • Sandbox

    • Performance ◦ Inter-function communication、RPC ◦ Cold Start Architecture
  3. “Just a function” - Scheduling • Manage container images •

    Load/Unload containers • Event-Trigger • Kubernetes? Architecture
  4. • Since 1993 • Embeddable Script Language • Lightweight Sandboxed

    Lua VM • High-performance (LuaJIT): ◦ Game Engine ◦ CDN ◦ CERN ◦ Super Computers Architecture
  5. • Common Gateway Interface (1993) • Openresty ◦ (nginx +

    LuaJIT) ◦ Schedule Lua VM with nginx workers Architecture
  6. Kappa Architecture “Where everything is a stream” • A software

    architecture pattern • Append-only immutable event log • Real-time, Streaming Architecture
  7. Spacer: Simple, Solid, Proven Technologies Serverless frameworks Spacer Sandbox/Package Container

    Lua Scheduling Kubernetes nginx(openresty) Event ? Kappa architecture Architecture
  8. 「好程式」in serverless • 軟體架構 = 營運成本 • 重構 = Cost

    Down • 開發者得到更多優化的空間 philosophy
  9. 「好產品」in Serverless • 不用分心在架構與技術細節上 ◦ 產品上線速度更快 • 更精細的產品分析: ◦ 一個

    User 進來後,平均搜尋了幾次,花了多少成本? ◦ 一個 User 平均帶來的收入是? ◦ 優化: ▪ 流量? ▪ Function 效能? ▪ 轉換率? philosophy
  10. 「開發費用」 • 報價 10 萬跟 100 萬的差別在哪? • 維護費? •

    Serverless ◦ 成本透明,按照用量收費 ◦ 開發者與客戶目標一致:提高產品價值 philosophy