Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Nim + Cloud Run + TerraformでGCPにNimのサーバーレス環境を作る
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
regonn
May 04, 2021
Programming
700
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Nim + Cloud Run + TerraformでGCPにNimのサーバーレス環境を作る
2021/05/04
@nim(ゆるい) LTイベント
regonn
May 04, 2021
More Decks by regonn
See All by regonn
Allora Network が実現する 「予測の経済圏」
regonn
0
38
Submission with Numerai Compute using GCP Batch
regonn
0
700
HelloMoon x Orca=HelloOrca
regonn
0
180
The Challenge of Automatically Configuring Numerai Compute Environment
regonn
0
150
Federated Learning 連合学習
regonn
3
1.9k
PLATEAUをデータベースに取り込んでみた
regonn
0
1.8k
古参Numerai参加者の戯言
regonn
1
2.6k
S+ Camera Basicと似た環境をラズパイから構築してみる
regonn
0
580
衛星画像のゴルフ場写り込み判定AIモデルを作る
regonn
0
910
Other Decks in Programming
See All in Programming
コードレビューのボトルネックを"する側"と"される側"の両面から解消する
yub0n
2
1.2k
パズルゲームの作り方 / how to make puzzle games
kaityo256
PRO
2
260
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
290
FreeBSDでZabbixを動かす
kenkino
0
340
大喜利で理解するLLM as a Judge / Understanding LLM-as-a-Judge through Ogiri
rockname
0
180
フロントエンドUIフレームワークのこれまでとこれから
ssssota
5
3.1k
モジュールの視点からSwiftを読み解く #iosdc
s_shimotori
0
290
巨大モノリシックアプリ モダン化大作戦
ktcryomm
1
1.2k
AHC070解法紹介
eijirou
0
150
Are APIs Still Relevant in the AI Era?
soyuka
0
390
マイコン向けの軽量Ruby「PicoRuby」で各種デバイスを制御するネイティブアプリの実現手法
bash0c7
0
460
JAWS-UG 東京支部が始める、JAWS-UG支部コラボ / JAWS-UG lunchtime LT Collaboration
y0hgi
0
170
Featured
See All Featured
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
The Spectacular Lies of Maps
axbom
PRO
1
1.1k
WCS-LA-2024
lcolladotor
0
840
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
550
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.6k
Ruling the World: When Life Gets Gamed
codingconduct
0
380
So, you think you're a good person
axbom
PRO
2
2.2k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
720
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
330
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
850
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
510
Optimising Largest Contentful Paint
csswizardry
37
4k
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