Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
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
55
Metadata Management in Distributed File Systems
kuenishi
2
530
Behind The Scenes: Cloud Native Storage System for AI
kuenishi
2
420
Apache Ozone behind Simulation and AI Industries
kuenishi
0
410
Distributed Deep Learning with Chainer and Hadoop
kuenishi
3
1.3k
A Few Ways to Accelerate Deep Learning
kuenishi
0
1.1k
Introducing Retz
kuenishi
5
1.2k
Introducing Retz and how to develop practical frameworks
kuenishi
3
760
Formalization and Proof of Distributed Systems (ja)
kuenishi
10
6.4k
Other Decks in Technology
See All in Technology
Docker, Infraestructuras seguras y Hardening
josejuansanchez
0
150
GitLab Duo Agent Platformで実現する“AI駆動・継続的サービス開発”と最新情報のアップデート
jeffi7
0
200
Playwright x GitHub Actionsで実現する「レビューしやすい」E2Eテストレポート
kinosuke01
0
270
因果AIへの招待
sshimizu2006
0
620
Kubernetes Multi-tenancy: Principles and Practices for Large Scale Internal Platforms
hhiroshell
0
100
なぜ使われないのか?──定量×定性で見極める本当のボトルネック
kakehashi
PRO
1
1.1k
非CUDAの悲哀 〜Claude Code と挑んだ image to 3D “Hunyuan3D”を EVO-X2(Ryzen AI Max+395)で動作させるチャレンジ〜
hawkymisc
1
140
21st ACRi Webinar - AMD Presentation Slide (Nao Sumikawa)
nao_sumikawa
0
230
プロダクトマネージャーが押さえておくべき、ソフトウェア資産とAIエージェント投資効果 / pmconf2025
i35_267
2
550
Multimodal AI Driving Solutions to Societal Challenges
keio_smilab
PRO
1
140
re:Invent2025 コンテナ系アップデート振り返り(+CloudWatchログのアップデート紹介)
masukawa
0
270
Agentic AI Patterns and Anti-Patterns
glaforge
1
170
Featured
See All Featured
GraphQLとの向き合い方2022年版
quramy
50
14k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.6k
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
Raft: Consensus for Rubyists
vanstee
141
7.2k
Speed Design
sergeychernyshev
33
1.4k
How to Think Like a Performance Engineer
csswizardry
28
2.3k
Designing for Performance
lara
610
69k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
15k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
196
69k
Rebuilding a faster, lazier Slack
samanthasiow
84
9.3k
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]