Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Riak & riak-php-client
UENISHI Kota
February 28, 2013
Technology
1
320
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
Apache Ozone behind Simulation and AI Industries
kuenishi
0
32
Distributed Deep Learning with Chainer and Hadoop
kuenishi
3
830
A Few Ways to Accelerate Deep Learning
kuenishi
0
840
Introducing Retz
kuenishi
5
750
Introducing Retz and how to develop practical frameworks
kuenishi
2
460
Formalization and Proof of Distributed Systems (ja)
kuenishi
10
5.9k
Mesos Frameworkの作り方 (How to Make Mesos Framework)
kuenishi
7
2.1k
分散スケジューラMesosの紹介
kuenishi
2
1.1k
BDI SIG tech talk
kuenishi
1
220
Other Decks in Technology
See All in Technology
FlexScan HD2452Wの 後継を探して
tring
0
310
Periodic Multi-Agent Path Planning
hziwara
0
110
Kubernetes_EKSに入門してみる
toru_kubota
0
230
EMになって最初の失敗談 - コミュニケーション編 -
fukuiretu
1
330
plotlyで動くグラフを作る
kosshi
0
720
20230121_データ分析系コミュニティ_サテライト企画
doradora09
0
500
WINTICKET QA における Autify 活用
kj455
1
190
PHPのimmutable arrayとは
hnw
1
140
2年で10→70人へ! スタートアップの 情報セキュリティ課題と施策
miekobayashi
1
200
SmartHRからOktaへのSCIM連携で作り出すHRドリブンのアカウント管理
jousysmiler
1
110
Deep dive in Reserved Instance ~脳死推奨量購入からの脱却~
kzkmaeda
0
370
- Rでオブジェクト指向プログラミング- クラス設計入門の入門
kotatyamtema
1
690
Featured
See All Featured
How to Ace a Technical Interview
jacobian
270
21k
Learning to Love Humans: Emotional Interface Design
aarron
263
38k
Fashionably flexible responsive web design (full day workshop)
malarkey
396
63k
Design by the Numbers
sachag
271
18k
A Philosophy of Restraint
colly
193
15k
GitHub's CSS Performance
jonrohan
1020
430k
Faster Mobile Websites
deanohume
295
29k
Building an army of robots
kneath
301
40k
How to name files
jennybc
47
73k
Testing 201, or: Great Expectations
jmmastey
25
5.7k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
270
12k
The Mythical Team-Month
searls
210
40k
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]
sho.com