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
2026年はチャンキングを極める!
shibuiwilliam
9
1.9k
Bill One急成長の舞台裏 開発組織が直面した失敗と教訓
sansantech
PRO
1
280
toCプロダクトにおけるAI機能開発のしくじりと学び / ai-product-failures-and-learnings
rince
6
5.5k
プロダクト成長を支える開発基盤とスケールに伴う課題
yuu26
3
1.2k
生成AI時代にこそ求められるSRE / SRE for Gen AI era
ymotongpoo
5
2.6k
レガシー共有バッチ基盤への挑戦 - SREドリブンなリアーキテクチャリングの取り組み
tatsukoni
0
200
10Xにおける品質保証活動の全体像と改善 #no_more_wait_for_test
nihonbuson
PRO
1
190
Mosaic AI Gatewayでコーディングエージェントを配るための運用Tips / JEDAI 2026 新春 Meetup! AIコーディング特集
genda
0
150
顧客との商談議事録をみんなで読んで顧客解像度を上げよう
shibayu36
0
150
コスト削減から「セキュリティと利便性」を担うプラットフォームへ
sansantech
PRO
3
1.3k
CDK対応したAWS DevOps Agentを試そう_20260201
masakiokuda
1
190
小さく始めるBCP ― 多プロダクト環境で始める最初の一歩
kekke_n
1
340
Featured
See All Featured
Heart Work Chapter 1 - Part 1
lfama
PRO
5
35k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Abbi's Birthday
coloredviolet
1
4.7k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
110
Leo the Paperboy
mayatellez
4
1.4k
Designing Experiences People Love
moore
144
24k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
110
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
52
Test your architecture with Archunit
thirion
1
2.1k
エンジニアに許された特別な時間の終わり
watany
106
230k
Skip the Path - Find Your Career Trail
mkilby
0
52
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
0
100
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?