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
RabbitMQ + PHP
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Piotr Plenik
July 30, 2013
Technology
220
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
RabbitMQ + PHP
When and how you could use queue, using PHP and RabbitMQ.
Piotr Plenik
July 30, 2013
Transcript
28 slides
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?
Other Decks in Technology
See All in Technology
20261119_AgentCore
takuyay0ne
2
310
現地速報! Microsoft Ignite アップデートレポート
kasada
1
470
メルカリの小規模チーム「Pod」で、 エンジニアがデータアナリストなしで、 AIを使ってデータ分析の自走を目指す取り組み
jackojacko_
1
360
AWS DevOps Agentの構造から読み解く運用 AI エージェントの設計原則/aws-devops-agent-design-principles
tomoki10
0
290
AWS re:Invent 2026 FSI Pre-Event Networking Night
junjikoide
0
270
パスワードのない鍵で、 データを手元に置く
ginjihayashi
0
400
Is the Website Dying?
miriamschwab
0
220
AIフレンドリーなGenerative UIをJSXで
uhyo
2
330
Del vibe coding a un Desarrollo (agéntico) fiable
jcabot
0
230
さようならSSH鍵、こんにちはゼロトラスト ― AIフレンドリーで快適な自宅鯖SSH
atalie2m
14
7.6k
AWS WAF あなたの推しサービス教えて!LT #jawsugosaka @fillz_noh
fillznoh
1
110
プラガブルで宣言的なソフトウェアファクトリーを支えるTypeScript
timakin
4
1.3k
Featured
See All Featured
Optimising Largest Contentful Paint
csswizardry
37
4k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
1
310
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.3k
Building Flexible Design Systems
yeseniaperezcruz
330
41k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
73
43k
Navigating Weather and Climate Data
rabernat
0
600
Music & Morning Musume
bryan
48
7.5k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
390
4 Signs Your Business is Dying
shpigford
187
23k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
570
Scaling GitHub
holman
464
140k