RabbitMQ Cookbook
上QQ阅读APP看书,第一时间看更新

Introduction

In this chapter, we are going to present some recipes on the RabbitMQ extensions.

These extensions are not in AMQP 0-9-1 standard and using them will break AMQP compatibility with other compliant brokers.

On the other hand , they have been included, sometime in a slightly different form, in AMQP 0-10 (http://www.amqp.org/specification/0-10/amqp-org-download), so there is an easy path to port them. Finally, they are often the efficient solution to optimization issues.

The examples in this chapter are going to be more realistic, for example, configuration parameters, such as queue and exchange, and routing key names will be defined in the Constants interface in the Java sources. In fact, a real application will follow this approach or will eventually read them from configuration files to share them among different applications.

However, we will not specify the Constants namespace in the following sections to improve shortness and readability.