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
RabbitMQ + PHP
Search
Piotr Plenik
July 30, 2013
Technology
3
210
RabbitMQ + PHP
When and how you could use queue, using PHP and RabbitMQ.
Piotr Plenik
July 30, 2013
Tweet
Share
Other Decks in Technology
See All in Technology
非同期処理実行基盤 Delayed脱出 → Solid Queue完全移行への旅路。
srockstyle
3
1.6k
Pure Goで体験するWasmの未来
askua
1
170
BtoBプロダクト開発の深層
16bitidol
0
160
BirdCLEF+2025 Noir 5位解法紹介
myso
0
190
全てGoで作るP2P対戦ゲーム入門
ponyo877
3
1.3k
OpenAI gpt-oss ファインチューニング入門
kmotohas
2
860
定期的な価値提供だけじゃない、スクラムが導くチームの共創化 / 20251004 Naoki Takahashi
shift_evolve
PRO
3
240
データエンジニアがこの先生きのこるには...?
10xinc
0
430
「AI駆動PO」を考えてみる - 作る速さから価値のスループットへ:検査・適応で未来を開発 / AI-driven product owner. scrummat2025
yosuke_nagai
2
510
FastAPIの魔法をgRPC/Connect RPCへ
monotaro
PRO
1
680
Green Tea Garbage Collector の今
zchee
PRO
2
380
空間を設計する力を考える / 20251004 Naoki Takahashi
shift_evolve
PRO
3
270
Featured
See All Featured
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Building Applications with DynamoDB
mza
96
6.6k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
GitHub's CSS Performance
jonrohan
1032
460k
BBQ
matthewcrist
89
9.8k
Raft: Consensus for Rubyists
vanstee
139
7.1k
The Art of Programming - Codeland 2020
erikaheidi
56
14k
Facilitating Awesome Meetings
lara
56
6.6k
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
114
20k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
657
61k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
358
30k
Transcript
RabbitMQ + PHP
None
Do I need this?
#1 The user
Want upload photo...
… but server need • generate different resolution: – avatars
– gallery snapshot • send notifications to user friends (cron jobs) • Send notification (third-party integration) – Tweeter – Facebook • Upload files to external server
None
#2 Project Manager
Can we generating sales reports for our 10000 products in
last 10 years?
#2.1 Other Developer
I could give you archival sales data, but I need
call your PHP stuff from Perl (but … new version will be in Java)
All need to be done „for yesterday”!
You
None
AMQP Advanced Message Queuing Protocol The Advanced Message Queuing Protocol
(AMQP) is an open standard application layer protocol for message-oriented middleware. Source: http://en.wikipedia.org/wiki/AMQP
Why AMQP? • open standard • language independent • platform
independent
Message Flow • Exchanges • Messages Queues • Bindings •
Rules for binding them
Exchange type: Fanout
Exchange type: Direct
Exchange type: Topic * (star) can substitute for exactly one
word. # (hash) can substitute for zero or more words.
AMQP/RabbitMQ only queue handling
Installation
Install on Debian/Ubuntu # apt-get update # apt-get install rabbitmq-server
Management # rabbitmq-plugins enable rabbitmq_management user/pass: guest/guest http://localhost:55672
None
Php-amqplib (PHP 5.3) $ git clone git://github.com/videlalvaro/php-amqplib.git $ curl https://getcomposer.org/installer
| php $ php composer.phar install
Use cases
PYTANIA?