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

Cloud Run & GKE Autopilot (late 2024)

tnir
November 22, 2024

Cloud Run & GKE Autopilot (late 2024)

Google Developer Group (GDG) DevFest 2024 #DevFest

tnir

November 22, 2024
Tweet

More Decks by tnir

Other Decks in Technology

Transcript

  1. Cloud Run and GKE Autopilot (late 2024) @tnir - 2024-11-22

    - GDG DevFest 2024 @Stmn, inc. Nagoya HQ #DevFest
  2. #DevFest @tn961ir @tnir (Takuya N) • Google Cloud user (10y+)

    • Ruby (25y+) / Rails (18y+) • GitLab Core Team (2015-) • Rails contributor (8.0) • Participated in Next ’18 (SF) • Technical debts ❤ • CTO at Stmn, inc. (venue sponsor) https://github.com/ruby/ruby 🏯
  3. A life with Rails 8.0 (beta) - Proposals on Rails

    https://speakerdeck.com/tnir/a-life-with-rails-8-dot-0-beta
  4. #DevFest @tn961ir Technical debts I tackled in 2024 • Cloud

    Firestore ◦ nam5 (beta) (2018-07) ◦ cf. asia-northeast1 (2019-02) • Used for real-time application mainly targeted for residents in Japan, launched in summer 2019 ◦ Tightly connected with servers in Japan 😱😱😱 • > 100 ms in latency (~ 250 ms round trip) https://developers.googleblog.com/en/nosql-for-the-serverless- age-announcing-cloud-firestore-general-availability-and-update s/
  5. #DevFest @tn961ir Replace w/Cloud Run • Cloud Run (TYO) +

    AlloyDB (TYO) • Direct client SDK (JP) + Firestore (nam5) vs
  6. #DevFest @tn961ir Replace w/Cloud Run • Cloud Run supports for

    a single port. ◦ Limited due to spec of Knative serving. • Our new application: REST (HTTP/2) + WebRTC • 😔😔😔
  7. #DevFest @tn961ir Replace w/Cloud Run GKE Autopilot • GKE Autopilot

    (TYO) + AlloyDB (TYO) • Direct client SDK (JP) + Firestore (nam5) 💡 💡 vs
  8. #DevFest @tn961ir • GKE Autopilot (TYO) + AlloyDB (TYO) •

    GKE? ◦ = “Kubernetes” = hard way ▪ Version upgrade, fleet management, cost efficiency ◦ GKE Autopilot ▪ For both easy-to-use and full flexibility ▪ Autoscaling Replacing w/GKE Autopilot 🏗 🏗
  9. #DevFest @tn961ir Summary • We are replacing an existing app

    based on Firestore (nam5) with apps with multiple ports hosted on GKE Autopilot instead of Cloud Run to minimize response time and data residency.
  10. #DevFest @tn961ir TODOs for 2025 • Would like to develop

    more user-friendly real-time communication tool. • RAG-based app with Firebase Genkit.