ZFConf 2010: Using Message Queues in Day-to-Day Projects (Zend_Queue)

  • Published on
    28-Nov-2014

  • View
    6.627

  • Download
    0

Embed Size (px)

DESCRIPTION

 

Transcript

  • 1. , Zend_Queue , web- 27 2010 . -
  • 2. ?
    • FIFO
    • ( Visibility timeout )
  • 3.
  • 4.
    • point-to-point
    • publish/subscribe
  • 5. MQ
    • MemcacheQ
    • Apache ActiveMq
    • RabbitMq
    • Redis
    • Amazon SQS
    • PgQ, Oracle Advanced Queuing,
  • 6. Zend_Queue
    • : Justin Plock Daniel Lo
    • :
    • 3 2008 Proposala ZF wiki
    • 27 2009
    • 9 2009
    • 31 2009 - ZF 1.9.0
    • !
  • 7. Zend_Queue
      • createQueue(), deleteQueue(), isExists()
      • send(), receive(), deleteMessage() , count()
  • 8. Zend_Queue
    • Apache ActiveMQ
    • Zend_Db
    • MemcacheQ
    • Zend Platform
    • PHP
    • Amazon MQ
    • Redis Rediska
  • 9. Zend_Queue
    • ?
    • -
    • ( extends Zend_Queue )
    • -
  • 10.
    • Zend_Queue_Adapter_AdapterAbstract
    • receive($n) n
    • send()
    • isSupported(< _ >)
    • getCapabilities()
  • 11.
  • 12.
    • - ()
      • < >
      • email
  • 13. emails
  • 14. emails
  • 15.
    • :
      • 8 1
      • Real-time ( real-time : )
  • 16.
    • :
    • if (!($data = $cache->load($id))) {
    • // [...] $ data
    • $cache->save($data);
    • }
    • :
    • if (!($data = $cache->load($id))) {
    • // [...] $ data
    • $cache->save($data);
    • } elseif ($data[alifetime] < time()) {
    • $queue->send($name, $params);
    • }
  • 17.
    • Enterprise-Integration-Patterns
    • http://memcachedb.org/ memcacheq /
    • http://www.rabbitmq.com
    • http://activemq.apache.org
    • http://code.google.com/p/ redis /
    • http:// rediska .geometria-lab.net/
    • http://aws.amazon.com/sqs/
  • 18. ! ! : Email/Jabber: [email_address] Skype: dbaklikov