Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Nim + Cloud Run + TerraformでGCPにNimのサーバーレス環境を作る
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
regonn
May 04, 2021
Programming
690
1
Share
Nim + Cloud Run + TerraformでGCPにNimのサーバーレス環境を作る
2021/05/04
@nim(ゆるい) LTイベント
regonn
May 04, 2021
More Decks by regonn
See All by regonn
Submission with Numerai Compute using GCP Batch
regonn
0
660
HelloMoon x Orca=HelloOrca
regonn
0
170
The Challenge of Automatically Configuring Numerai Compute Environment
regonn
0
130
Federated Learning 連合学習
regonn
4
1.8k
PLATEAUをデータベースに取り込んでみた
regonn
0
1.8k
古参Numerai参加者の戯言
regonn
1
2.6k
S+ Camera Basicと似た環境をラズパイから構築してみる
regonn
0
560
衛星画像のゴルフ場写り込み判定AIモデルを作る
regonn
0
860
データラーニングギルド での活動と今後
regonn
0
190
Other Decks in Programming
See All in Programming
Back to the roots of date
jinroq
0
600
Terraform言語の静的解析 / static analysis of Terraform language
wata727
1
120
2026-04-15 Spring IO - I Can See Clearly Now
jonatan_ivanov
1
150
PicoRuby for IoT: Connecting to the Cloud with MQTT
yuuu
2
710
Don't Prompt Harder, Structure Better
kitasuke
0
800
Symfony AI in Action - SymfonyLive Berlin 2026
chr_hertel
1
110
ソフトウェア設計の結合バランス #phperkaigi
kajitack
0
170
Road to RubyKaigi: Play Hard(ware)
makicamel
1
520
2026年のソフトウェア開発を考える(2026/05版) / Software Engineering Scrum Fest Niigata 2026 Edition
twada
PRO
18
8.2k
GitHubCopilotCLIをはじめよう.pdf
htkym
0
300
Explore CoroutineScope
tomoeng11
0
130
AI時代のエンジニアリングの原則 / Engineering Principles in the AI Era
haru860
0
920
Featured
See All Featured
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.4k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
160
Designing Experiences People Love
moore
143
24k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
550
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
290
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
Tell your own story through comics
letsgokoyo
1
910
Java REST API Framework Comparison - PWX 2021
mraible
34
9.3k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
780
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
690
Transcript
れごん 2021/05/04 @nim(ゆるい) LTイベント Nim + Cloud Run + Terraform
で GCP に Nim の サーバーレス環境を作る
Who am I? • れごん(@regonn_haizine) • 2018年に島根県にIターンで移住 • 機械学習系のPodcast ”Regonn&Curry.fm”
やってます
Nimとの出会い Slantという海外のテック系比較 サイトでBest programming languagesで1位になっていた。 (当時はまだ1系リリース前)
今日紹介すること • Nim でサーバーレス環境構築 • Nim • CPU実行時間の従量課金のため処理速度が重要 • Cloud
Run(GCP) • Dockerをデプロイすることで好きな言語で実行可能 • Terraform • インフラ構築がコードで管理可能(Infrastructure as Code)
構成図: 毎日決まった時間に気象庁APIから天気予報を取得してDiscordに投稿 GCP内のインフラ構築はTerraformで管理 天気予報API Container Registry Cloud Run Cloud Scheduler
コード解説 https://github.com/regonn/weather-discord-bot-cloud-run-terraform
コードの応用 • 今回のAPI取得の部分を切り替えることで色々と応用可能 • 普段は仮想通貨の自動売買とかやってます • 自動売買系も高頻度取引の場合等には処理速度が重要 • Nim言語で仮想通貨取引所APIを叩くコードまとめ記事 •
https://note.com/regonn314/n/n62d5adf25308
None