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
Riak & riak-php-client
Search
UENISHI Kota
February 28, 2013
Technology
1
370
Riak & riak-php-client
much ado about Riak and PHP
UENISHI Kota
February 28, 2013
Tweet
Share
More Decks by UENISHI Kota
See All by UENISHI Kota
Storage Systems in Preferred Networks
kuenishi
0
34
Metadata Management in Distributed File Systems
kuenishi
2
510
Behind The Scenes: Cloud Native Storage System for AI
kuenishi
2
400
Apache Ozone behind Simulation and AI Industries
kuenishi
0
380
Distributed Deep Learning with Chainer and Hadoop
kuenishi
3
1.2k
A Few Ways to Accelerate Deep Learning
kuenishi
0
1.1k
Introducing Retz
kuenishi
5
1.1k
Introducing Retz and how to develop practical frameworks
kuenishi
3
740
Formalization and Proof of Distributed Systems (ja)
kuenishi
10
6.4k
Other Decks in Technology
See All in Technology
JAWS AI/ML #30 AI コーディング IDE "Kiro" を触ってみよう
inariku
3
280
隙間時間で爆速開発! Claude Code × Vibe Coding で作るマニュアル自動生成サービス
akitomonam
3
250
LTに影響を受けてテンプレリポジトリを作った話
hol1kgmg
0
290
MCP認可の現在地と自律型エージェント対応に向けた課題 / MCP Authorization Today and Challenges to Support Autonomous Agents
yokawasa
5
1.8k
Claude CodeでKiroの仕様駆動開発を実現させるには...
gotalab555
3
890
✨敗北解法コレクション✨〜Expertだった頃に足りなかった知識と技術〜
nanachi
1
480
2時間で300+テーブルをデータ基盤に連携するためのAI活用 / FukuokaDataEngineer
sansan_randd
0
130
製造業の課題解決に向けた機械学習の活用と、製造業特化LLM開発への挑戦
knt44kw
0
160
生成AI導入の効果を最大化する データ活用戦略
ham0215
0
110
2025新卒研修・HTML/CSS #弁護士ドットコム
bengo4com
3
13k
AIエージェントを現場で使う / 2025.08.07 著者陣に聞く!現場で活用するためのAIエージェント実践入門(Findyランチセッション)
smiyawaki0820
6
650
解消したはずが…技術と人間のエラーが交錯する恐怖体験
lamaglama39
0
190
Featured
See All Featured
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
Mobile First: as difficult as doing things right
swwweet
223
9.9k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
139
34k
Statistics for Hackers
jakevdp
799
220k
Build your cross-platform service in a week with App Engine
jlugia
231
18k
Writing Fast Ruby
sferik
628
62k
It's Worth the Effort
3n
185
28k
Speed Design
sergeychernyshev
32
1.1k
Optimizing for Happiness
mojombo
379
70k
Adopting Sorbet at Scale
ufuk
77
9.5k
Reflections from 52 weeks, 52 projects
jeffersonlam
351
21k
How to Ace a Technical Interview
jacobian
278
23k
Transcript
Riak && riak-php-client 2013/2/28 PHPษڧձ#65
•্߁ଠ @kuenishi •PHPॳ৺ऀͰ͢ •ࢄγεςϜͷݚڀ։ൃΛ5͘Β͍ •ຊ๏ਓ͕ࡢ9݄ʹͰ͖ͨ ͓લɺ୭Α
ۓٸΞϯέʔτ • RiakΛฉ͍ͨ͜ͱ͕͋Δ [Y/y]? • Riak CSΛฉ͍ͨ͜ͱ͕͋Δ [Y/n]? • MySQL
ClusterΛͬͨ͜ͱ͕͋Δ [Y/n]? • HBaseCassandraͰۤ͠Μͩ͜ͱ͕͋Δ [Y/n]?
None
• DynamoʹΠϯεύΠϠ͞Εͨ • Consistent HashingʹΑΓਫฏࢄ͢Δ • Vector ClocksΛ༻͍ͯϨϓϦέʔγϣϯ͠ • Erlang/OTPͰಈ࡞͢Δ
• ࢄKVSͰ͋Δ WikiPedia: Vector Clocks
Riakͷ͍͍ͱ͜Ζ • ߴՄ༻ੑ • εέʔϧΞτ͢Δ • ӡ༻ָ͕ʢͱ͍ΘΕ͍ͯΔʣ • Ϛελʔ͕͍ͳ͍ •
ʢNoSQLͷׂʹʣ࣮͕͋Δ • ࢁͷΫϥΠΞϯτ(Ruby, Java, Python, PHP, Perl, OCaml, Haskell, .NET, ...) • ErlangͰಈ͘
Riakͷ೦ͳͱ͜Ζ • ͘ͳ͍ • τϥϯβΫγϣϯͰ͖ͳ͍ • 10000ͩͱଟಈ͔ͳ͍ • ΞϓϦઃܭ͕*SQL΄Ͳ؆୯Ͱͳ͍ •
ErlangͰॻ͔Ε͍ͯΔ
DEMO (ͨ͠ؾ) • HTTPͰGET, PUT, DELETEͯ͠ΈΔ • ը૾Λͦͷ··ஔ͚Δ
DEMOͨ͠ମͰ • SQLΘΓͷMapReduce • JavaScriptͰͦΕͳΓʹ͍Ζ͍ΖͰ ͖Δ • https://gist.github.com/4202161
DEMOͨ͜͠ͱʹ͢Δ • Non-stop upgrade • ίʔυΛॻ͖͑ͯࢭΊͣʹߋ৽ • ௨ৗ࣌ඇਪ͕ͩۓٸ࣌ʹॏๅ • ྫ:
Scaling Riak in Production
riak_control (1.2~)
͍Ͳ͜Ζ • 1ͷཧϚγϯʹ ऩ·Βͳ͍έʔε • εϞʔϧελʔτ͠ ͍ͨͱ͖ • Մ༻ੑ͕τοϓཁ݅ ͷ࣌
• σʔλϞσϧΛKey, ValueʹͰ͖Δͱ͖ • Ad Networks • Digital Media • On-Line Games • Social Networks • Social Analysis • Cloud Operators • Messaging Services • Product Catalogs • Document Management • Health Care Information Management
ຊ: riak-php-client • curlͷ͍ํ͕ϔϯ • PEAR͔Βcomposer͔ΒೖΕΒΕͳ͍ • PBΫϥΠΞϯτ΄͍͠ʁ • υΩϡϝϯτ͍Δʁ
• https://github.com/basho/riak-php-client
composer͔Βߦ͚ΔΑ͏ʹ͠·ͨ͠ • composer.json <?php require 'vendor/basho/riak/riak.php'; $c = new RiakClient('127.0.0.1',
8098) ?> { "require": { "basho/riak": "dev-master" } }
ʲ※ະঝʳRiak͕ಈ͍͍ͯΔαʔϏε • http://cloud.yahoo.co.jp/new_storage/
Q&A •@BashoJapan •#riakjp •
[email protected]