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
Riak & riak-php-client
Search
UENISHI Kota
February 28, 2013
Technology
410
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Riak & riak-php-client
much ado about Riak and PHP
UENISHI Kota
February 28, 2013
More Decks by UENISHI Kota
See All by UENISHI Kota
Storage Systems in Preferred Networks
kuenishi
0
120
Metadata Management in Distributed File Systems
kuenishi
2
590
Behind The Scenes: Cloud Native Storage System for AI
kuenishi
2
480
Apache Ozone behind Simulation and AI Industries
kuenishi
0
520
Distributed Deep Learning with Chainer and Hadoop
kuenishi
3
1.4k
A Few Ways to Accelerate Deep Learning
kuenishi
0
1.3k
Introducing Retz
kuenishi
5
1.3k
Introducing Retz and how to develop practical frameworks
kuenishi
3
860
Formalization and Proof of Distributed Systems (ja)
kuenishi
10
6.6k
Other Decks in Technology
See All in Technology
基本から分かる!AWSセキュリティ運用の考え方と任せ方
cmusudakeisuke
1
270
AI秘書と毎日働くのはもう当たり前。開発以外の業務に足りない機能をどう埋める?
minorun365
PRO
4
2k
なぜ東京にいる私が、新潟の技術コミュニティを運営するのか by 八雲慎之助
yakumo
0
170
スマートロックを支えるFlutter × ネイティブ連携の実践 / Flutter and Native Integration in Practice: Powering Smart Locks
bitkey
PRO
0
120
AI Search (Foundry IQ) におけるRAGデータの準備と配置
ryomaru0825
1
100
re:Inventで、人生は変わったのか? / growth-builders-hub-1-reinvent-2026
mhrtech
2
170
Flutter Widget Previewerで始めるUIプレビューとVRTの自動化
sakusaku3939
0
180
正解のない研修に放り出されて / Being thrown into a training program with no right answers
ohnoeight
1
170
新卒エンジニア、 介護士になる
ryu1013
1
590
Lint の層を組み直した話
bengo4com
1
260
Adversary Infrastructure Hunting101
disconinja
0
180
AIで選択肢が広がった組織設計の理想と現実
konifar
16
7.2k
Featured
See All Featured
Speed Design
sergeychernyshev
33
2.2k
Into the Great Unknown - MozCon
thekraken
41
2.8k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
450
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
2
330
WENDY [Excerpt]
tessaabrams
14
40k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
520
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.9k
Designing for Performance
lara
612
70k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
590
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
960
A designer walks into a library…
pauljervisheath
211
25k
The Pragmatic Product Professional
lauravandoore
37
7.5k
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]