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
200
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
リンクアンドモチベーション ソフトウェアエンジニア向け紹介資料 / Introduction to Link and Motivation for Software Engineers
lmi
4
300k
DynamoDB でスロットリングが発生したとき_大盛りver/when_throttling_occurs_in_dynamodb_long
emiki
1
460
SDNという名のデータプレーンプログラミングの歴史
ebiken
PRO
2
170
心が動くエンジニアリング ── 私が夢中になる理由
16bitidol
0
110
Flutterによる 効率的なAndroid・iOS・Webアプリケーション開発の事例
recruitengineers
PRO
0
130
The Role of Developer Relations in AI Product Success.
giftojabu1
0
150
【Pycon mini 東海 2024】Google Colaboratoryで試すVLM
kazuhitotakahashi
2
580
SSMRunbook作成の勘所_20241120
koichiotomo
3
180
組織成長を加速させるオンボーディングの取り組み
sudoakiy
3
260
ドメインの本質を掴む / Get the essence of the domain
sinsoku
2
160
Making your applications cross-environment - OSCG 2024 NA
salaboy
0
210
SDN の Hype Cycle を一通り経験してみて思うこと / Going through the Hype Cycle of SDN
mshindo
2
190
Featured
See All Featured
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Making Projects Easy
brettharned
115
5.9k
A Philosophy of Restraint
colly
203
16k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
720
XXLCSS - How to scale CSS and keep your sanity
sugarenia
246
1.3M
Documentation Writing (for coders)
carmenintech
65
4.4k
Mobile First: as difficult as doing things right
swwweet
222
8.9k
BBQ
matthewcrist
85
9.3k
Optimizing for Happiness
mojombo
376
70k
How to Ace a Technical Interview
jacobian
276
23k
Into the Great Unknown - MozCon
thekraken
32
1.5k
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?