Need to use the installation package please go to my Baidu cloud self-download
Http://pan.baidu.com/s/1qXgFVNQ
Installing the AMQP (RABBITMQ) extension for PHP requires that you first install Rabbitmq-c
Installing rabbitmq-c-0.4.1Tar zxvf rabbitmq-c-0.4.1.tar.gzCD rabbitmq-c-0.4.1./configure--prefix=/usr/local/rabbitmq-c-0.4.1
Installing the PHP amqp extensionTar zxvf
Wolfram Hempel is the co-founder of Deepstreamio. Deepstreamio is a German-based technology start-up company that provides high-performance, secure, and scalable real-time communication services for mobile clients, as well as IoT devices. Text translated by Jiatong, please specify from the highly available architecture.
Want to send a request to the server and get a response? Use HTTP directly! Very simple. But when you need to communicate through a long-lasting two-way connection, such as
ActiveMQ application (1)-Installation and basic mode instance, activemq instance
0.
Https://activemq.apache.org/download.html
1. decompress and start the activemq Service (you need to select different startup files based on different systems)
// Apache-activemq-5.13.1/bin/macosx/a
, actually just to say that JMS is just a set of API interfaces defined by Sun in order to unify the vendor's interface specification.2. JMS ArchitectureThe description is as follows:
JMS providers (implementations of JMS, such as Activemq jbossmq, etc.)
JMS Client (a program or object that uses a provider to send a message, for example, in 12306, is responsible for sending a ticket to the processing queue, which is used to resolve the is
-6productor:我是大帅哥,我现在正在生产东西!,count:52--->18Thread-5: Consumer:我是消费者,我正在消费MsgThread-3productor:我是大帅哥,我现在正在生产东西!,count:53--->19Thread-4: Consumer:我是消费者,我正在消费MsgThread-3productor:我是大帅哥,我现在正在生产东西!,count:58--->20
To view the results of the operation, we can do ACTIVEMQ server: http://127.0.0.1:8161/admin/inside the queues to view our production messages.5. Characteristics of ActiveMq 5.1
Reprinted: http://bunnyamqp.wordpress.com/2009/08/21/amqp-basic-publish-immediate-versus-mandatory/
I was unclear about the difference between the mandatory and immediate options for the amqpBasic. PublishMethod, so I did a little investigation with Bunny and rabbitmq.
It turns out that the difference is pretty straightforward. If you publish a message with: MandatoryOption Set to true like so-
my_exchange.publish('Test message', :mandatory => true)
AMQP, the advanced message Queuing Protocol, an application-layer standard premium Messaging queuing protocol that provides unified messaging services, is an open standard for application-layer protocols designed for message-oriented middleware. The client and message middleware based on this protocol can deliver the message, and it is not restricted by the different products of client/middleware, different development language and other conditions. T
Recent research on the RABBITMQ queue, Linux installation such software has always been very convenient, but Windows may be more troublesome, so the installation of Windows to make a record.The PHP extension used on Windows for DLL files, first to download DLL files, I downloaded is amqp1.4, for http://pecl.php.net/package/amqp/1.4.0/windows, please download according to your own PHP version, PHP version should be read (phpinfo), the inside of the two
Because RABBITMQ is implemented by the Erlang language, you first install the Erlang environment
Erlang Download Install http://www.erlang.org/download.html
RABBITMQ Download Install https://www.rabbitmq.com/install-windows.html
The AMQP Extension for php download address: HTTP://PECL.PHP.NET/PACKAGE/AMQP
Windows installation process is not detailed, here is a simple configuration
Unzip the following as sho
Label: blog HTTP Io data SP 2014 C on Log1. What is amqp protocol?That is, the Advanced Message Queue Protocol regulates the communication between the client and the message middleware server, and can operate on each other.2. Role of amqp ProtocolReduce the coupling between applications so that the integration between different applications becomes less difficult and more useful applications are developed.3
high-performance message middleware developed by Imatix company using C language, which is the encapsulation of sockets, which caches messages on the sending side.ActiveMQ Architecture
The Queue region is a peer-to message model, and Topic region is the Publish/subscribe model.
Connectors is responsible for message communication, support Openwire, Stomp,rest,ws Notification, XMPP and other protocols.
Network Services is responsible for storing, forwarding, clustering, and so on
Described below: JMS providers (implementations of JMS, such as Activemq jbossmq, etc.) JMS clients (Programs or objects that use the provider to send messages, for example, in 12306, responsible for sending a ticket message to the processing queue to solve the ticket-purchase peak problem, Programs that send messages to queues and programs that get messages from queues are called customers. JMS producers, JMS consumers (producers and customers respo
Original address: http://www.huaishao8.com/config/activemq/122.htmlSet the property persistent= "true" in broker (the default is True) and the message sent at the same time should be persitent type. There are three ways of ACTIVEMQ message persistence: AMQ, KAHADB, and JDBC. 1, Amq
AMQ is a form of file storage, which has the characteristics of fast writing speed and easy recovery. Messages are stored in on
1. Project Structure
The key is the jar package, how the jar package is referenced improperly, and there are many problems. The jar package is as follows:
Spring-amqp-1.0.0.m1.jar Spring-erlang-1.0.0.m1.jar Spring-rabbit-1.0.0.m1.jar Spring-rabbit-admin-1.0.0.M1.jar Spring-aop-3.0.3.release.jar Spring-beans-3.0.3.release.jar Spring-context-3.0.3.release.jar Spring-context-support-3.0.3.release.jar Spring-core-3.0.3.release.jar Spring-expression-3.0
Through the understanding of the important classes of SPRING-AMQP, the following is the implementation of how to send messages and receive messages synchronously via SPRING-AMQP. Interested friends can go to the SPRING-AMQP official website to download examples.
First look at the Helloworldconfiguration class Java code packageorg.springframework.amqp.helloworld
ActiveMq usage and activemq usage
I. Introduction to activeMq
ActiveMQ is an open-source middleware that implements the JMS1.1 specification and is oriented to message (MOM, provides efficient, scalable, stable, and secure enterprise-level message communication for applications.
Ii.
Several cluster configurations of ActiveMQ and several clusters of activemq
ActiveMQ is a powerful Messaging Server that supports many development languages, such as Java, C, C ++, and C. Enterprise-level message servers have high requirements on server stability and speed, while ActiveMQ's distributed cluster can meet this requirement. The following describes se
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.