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
住所正規化 API をLambda + Redis で動くようにしたお話
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
enkatsu
August 02, 2021
Technology
530
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
住所正規化 API をLambda + Redis で動くようにしたお話
enkatsu
August 02, 2021
More Decks by enkatsu
See All by enkatsu
NICOGRAPH 2022 で発表してきました
enkatsu
0
370
インデントの崩れる音がする
enkatsu
0
310
Open Street Map の歩き方
enkatsu
0
490
Other Decks in Technology
See All in Technology
bpf_arenaとstruct_opsを使うのが難しかった話
masu_mi
0
220
生成AI時代のIAMのマニアックな話
takuros
6
2.8k
Shared Signals Framework 仕様解説
oidfj
0
320
eBPF 簡介 2026 版
shunghsiyu
0
190
BALLAS Technology Deck
ballas_inc
0
360
Ebitengine製iOSアプリ公開ボタンを押す会
eiei114
0
110
超⼩型・多⾔語検索モデル Bekko Embedding
hotchpotch
1
140
会社説明資料_最新版
demaecan
0
32k
Microsoft Entra Kerberos で実現するクラウド デバイス管理
tamaiyutaro
2
660
【dbts2026】AIエージェントの 判断と探索を変える、 データベース エンジニアリング― 既存DBの処理と依存関係から作る、オペレーショナルオントロジー ―
shisyu_gaku
0
260
AI時代における医療情報システムのセキュリティ / Security of Healthcare IT Systems in the AI Era
henryofficial
0
130
続・ソフトウェアアーキテクトのための意思決定術: Decision Readiness, Revisited — When AI Changes the Economics of Software Architecture
snoozer05
PRO
9
2.8k
Featured
See All Featured
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
510
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
660
Testing 201, or: Great Expectations
jmmastey
46
8.4k
Building an army of robots
kneath
307
47k
Building AI with AI
inesmontani
PRO
1
1.4k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
380
[SF Ruby Conf 2025] Rails X
palkan
3
1.5k
Building a Scalable Design System with Sketch
lauravandoore
464
34k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.6k
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
Leo the Paperboy
mayatellez
10
2.4k
Transcript
住所正規化 API を Lambda + Redis で動くようにしたお話 ARCANA Meetup #72
2021/7/30 株式会社スタジオ・アルカナ 遠藤勝也
住所正規化 API とは?
霞が関 2-1-10 東京都 / 千代田区 / 霞が関 / 2 /
1 / 10
入力 { "@type": " 住所型", " 表記" : " 霞が関2-1-10"
}
出力 { "@type": " 住所型", " 表記": " 霞が関2-1-10", "
都道府県": " 東京都", " 都道府県コード": "http://data.e-stat.go.jp/lod/sac/C13000", " 市区町村": " 千代田区", " 市区町村コード": "http://data.e-stat.go.jp/lod/sac/C13101", " 町名": " 霞が関", " 丁目": "2", " 番地": "1", " 号": "10" }
既存の構成 imi-enrichment-address https://github.com/IMI-Tool-Project/imi-enrichment-address LevelDB を使った npm EC2 で動かしてる 同時にアクセスできない
LevelDB とは https://github.com/google/leveldb Google 製のキーバリューストア 高速 SQLite の KVS バージョンみたいなイメージ
既存のライブラリの構造 . ├── LICENSE ├── README.md ├── bin ├── cache
├── db # ここにファイルがあって読み書きしてる ├── lib ├── main.js ├── node_modules ├── package-lock.json ├── package.json ├── spec ├── test └── tools
他の KVS で使える様にしよう!
せっかくだから AWS のサービスで構築したい
Lambda + Redis で構築しました やったこと 1. imi-enrichment-address をフォークしたリポジトリを作成する 2. imi-enrichment-address
のテストコードを実行する 3. LeveelDB を使っている箇所を Redis に差し替える 4. RedisInsight を使ってローカルの Redis にデータが保存されているか確認する 5. AWS ElastiCache にデータをリストアする 6. AWS Lambda から Redis に接続できるか確認する 7. AWS Lambda で API を実装する
つまったこと ElastiCache にリストアできない! S3 の権限を緩める必要がある ElastiCache にローカルの Redis CLI で接続できない!
Lambda から ElastiCache にアクセスできない! ElastiCache は同じセキュリティグループじゃないと接続できない
おわり