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
みんなのPython勉強会: 最近のDB事情 TiDB Serverlessの紹介
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
bohnen
March 28, 2024
Technology
1
840
みんなのPython勉強会: 最近のDB事情 TiDB Serverlessの紹介
bohnen
March 28, 2024
Tweet
Share
More Decks by bohnen
See All by bohnen
Momento会 #9 TiDB ServerlessとMomentoの話
bohnen
0
89
Cloud on the beach - いろいろな雲のかたち
bohnen
1
92
TiUG #1 TiDB overview and update
bohnen
0
270
Postman Tokyo Meetup - Serverless Integration with Flows
bohnen
2
230
Serverless Meetup Re:boot 福岡 TiDB Serverlessの紹介
bohnen
1
180
Serverless Meetup Fukuoka Workshop TiDB
bohnen
0
90
TiUG #0 発表資料: TiDBの紹介と最新情報
bohnen
0
280
Momento会 #8 Serverless with TiDB/Momento/Postman
bohnen
0
96
Momento Topics使ってみた
bohnen
0
190
Other Decks in Technology
See All in Technology
どこで打鍵するのが良い? IaCの実行基盤選定について
nrinetcom
PRO
2
170
Shifting from MCP to Skills / ベストプラクティスの変遷を辿る
yamanoku
2
300
Claude Codeが爆速進化してプラグイン追従がつらいので半自動化した話 ver.2
rfdnxbro
0
170
AIエンジニア Devin と歩む、自律型運用プロセスの構築
a2ito
0
700
メタデータ同期に潜んでいた問題 〜 Cache Stampede 時の Cycle Wait を⾒つけた話
lycorptech_jp
PRO
0
150
Windows ネットワークを再確認する
murachiakira
PRO
0
280
EMからVPoEを経てCTOへ:マネジメントキャリアパスにおける葛藤と成長
kakehashi
PRO
7
900
Exadata Database Service on Dedicated Infrastructure(ExaDB-D) UI スクリーン・キャプチャ集
oracle4engineer
PRO
7
7.1k
ヘルシーSRE
tk3fftk
2
240
Datadog Cloud Cost Management で実現するFinOps
taiponrock
PRO
0
140
Bill One 開発エンジニア 紹介資料
sansan33
PRO
5
18k
生成AIの利用とセキュリティ /gen-ai-and-security
mizutani
1
1.2k
Featured
See All Featured
エンジニアに許された特別な時間の終わり
watany
106
240k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
300
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.1k
What does AI have to do with Human Rights?
axbom
PRO
1
2k
Believing is Seeing
oripsolob
1
72
How Software Deployment tools have changed in the past 20 years
geshan
0
32k
Reality Check: Gamification 10 Years Later
codingconduct
0
2k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
210
Building the Perfect Custom Keyboard
takai
2
710
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
22k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
67
37k
Transcript
みんなのPython勉強会 最近のデータベース事情: TiDB Serverlessの紹介 PingCAP Developer Advocate 関⼝匡稔 @bohnen
関⼝匡稔 @bohnen PingCAP株式会社 Developer Advocate (⾒習い)
TiDBとは? TiDBはグローバルで3000社以上で採⽤ OSSの中でもトップクラスの⾼評価、信頼性 数百TB、100万QPS以上をさばく MySQL互換 分散データベース! • MySQL互換 •
スクラッチでオープンソース (Apache 2.0) ◦ Go(TiDB, PD), Rust (TiKV), C++ (TiFlash) • オンプレミスにも、クラウドにも対応 • 本番運用可能な運用ツール・ダッシュボード
NewSQL + HTAP Design Goals • MySQL互換 • 運用の容易さ •
水平スケール • 高い可用性と信頼性 • 強い一貫性 AZ AZ AZ TiKV TiKV TiKV TiDB TiDB TiDB LB SQL KVS
可⽤性/信頼性を⾃動で提供するNewSQL NewSQL ‧マスターの性能に律速される ‧機動的な性能の増減が困難 ‧マスターとレプリカの明確な区別 ‧ノード追加による性能向上 ‧障害時の⾃動フェイルオーバー ‧アプリ側視点での構成がシンプル App マスター
リードレプリカ Read Only Read/Write App Read/Write 同期 同期 従来のRDBMS 負荷分散+HA
データ活⽤をシンプルにするHTAP APPサーバ ポータル DB レプ リカ ETL DWH BI 列指向
OLAP データ OLTP 行指向 同期 ⼀つのデータベースシステムに OLTP⽤(TiKV)とOLAP⽤ (TiFlash)の⼆つのストレージエ ンジンを持つ ⼀つのシステムで両⽅のユース ケースに対応でき、リアルタイ ム分析に寄与。データパイプラ インもシンプルに。
TiDBのいいところまとめ スケーラビリティ スモールスタートから 数千万ユーザーまで ワンストップ分析 複雑な構成なしで リアルタイムの情報を 無停⽌運⽤ インフラ更新 アプリ更新も無停⽌で
01 03 02 開発者体験 現在の標準開発環境にマッチ RDBMSと同じ感覚で利⽤できる 04
データベースのもう⼀つのトレンド: Serverless NoSQL RDB • だいたいJSON • オートスケール • 従量課⾦
• お⼿軽(そう) • 標準API (SQL) • 要サイジング • 安くない⽉額料⾦ • ⾯倒(そう) NoSQL的に利⽤できるRDBは無いのか??
あります!! TiDB Serverless AWS上の 最強のサーバレスDB
真の サーバレスDB
No Hassle Production Ready 冗⻑構成‧⾃動復旧 オートスケール モニタリング&バックアップ
使い始めるまで、わずか2ステップ! クラスタの起動 10秒くらい MySQLクライアントから の接続 よく利⽤されるクライアン トからの接続⽂字列を提供
オートスケール 0 から ~1.3M QPS まで20分 そこから0まで スケールダウンに14分 トータル30分! 設定不要!
🎉
ログミー 「今や開発者⼀⼈ひとりにスタバのコーヒーをおごる気分」 年間5,000億円以上かかる“分散データベースの無料提供”を約150億円で実現した「TiDB Serverless」 従量課⾦: クラウドネイティブアーキテクチャ
TiDB Serverless TiDB Cloud CLI VS Code @TiDB_Developer 豊富な開発ツールサポート 慣れてるインターフェース
使い慣れたフレームワーク MySQL 互換 従量課金 HTAP AI Powered オート スケール 生成AIをデータベースにも DB界で最速実装 Serverlessデータベース初?! OLTPだけじゃなくて、分析まで 複雑な構成は不要 使った分だけ課金 上限設定あり! Edge 対応 Proxy不要で すぐに使える
TiDB Serverless With Python
TiDB ServerlessのPython対応 • DBアクセスドライバ ◦ mysqlclient / python-mysql / pymysql
• OR Mapper ◦ SQL Alchemy / peewee • Web Framework ◦ Django (django-tidb) ◦ DjangoはMySQL-5.7⾮対応になった ため
TiDB Serverless Data Service TiDB Serverless単独でREST APIを 提供できるローコードサービス • ロジックはSQLで書く
• OpenAPI形式の定義 • API Tokenの管理 • Github Actionsと連携したCDも 可能 GPTsなどのチャットボットから簡単 に連携できるAPIを作成できる
New! Vector Search 🎆 SQLで検索できる! JOINが使える! LangChain/LlamaInde xにも対応して、すぐに利 用可能
まとめ TiDB Serverlessは • Pythonユーザーの様々なユースケースに合致 • 簡単に開始できる • 本番にも使える https://pingcap.co.jp/tidb-cloud/
是非試してみてください!
THANK YOU.