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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Piotr Plenik
July 30, 2013
Technology
210
3
Share
RabbitMQ + PHP
When and how you could use queue, using PHP and RabbitMQ.
Piotr Plenik
July 30, 2013
Other Decks in Technology
See All in Technology
NgRx SignalStore: The Power of Extensibility
rainerhahnekamp
0
230
Introduction to Sansan for Engineers / エンジニア向け会社紹介
sansan33
PRO
6
74k
最新の脅威動向から考える、コンテナサプライチェーンのリスクと対策
kyohmizu
0
260
Do Ruby::Box dream of Modular Monolith?
joker1007
0
110
Introduction to Sansan, inc / Sansan Global Development Center, Inc.
sansan33
PRO
0
3k
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.4k
終盤で崩壊させないAI駆動開発
j5ik2o
2
2.2k
CloudSec JP #005 後締め ~ソフトウェアサプライチェーン攻撃から開発者のシークレットを守る~
lhazy
0
220
暗黙知について一歩踏み込んで考える - 暗黙知の4タイプと暗黙考・暗黙動へ
masayamoriofficial
0
1.8k
申請待ちゼロへ!AWS × Entra IDで実現した「権限付与」のセルフサービス化
mhrtech
2
320
Revisiting [CLS] and Patch Token Interaction in Vision Transformers
yu4u
0
250
LLM時代の検索アーキテクチャと技術的意思決定
shibuiwilliam
1
270
Featured
See All Featured
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
260
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
340
Making the Leap to Tech Lead
cromwellryan
135
9.8k
Ethics towards AI in product and experience design
skipperchong
2
250
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
64
53k
Un-Boring Meetings
codingconduct
0
260
The SEO identity crisis: Don't let AI make you average
varn
0
440
AI: The stuff that nobody shows you
jnunemaker
PRO
6
550
Paper Plane
katiecoart
PRO
1
49k
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?