售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Mastering RabbitMQ
Table of Contents
Mastering RabbitMQ
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Getting Started
Message brokers and message queue
Message brokers
Message Queues
An introduction to the advanced message queue protocol
An overview of RabbitMQ
Installation of RabbitMQ
Windows
Mac OS X
Ubuntu
Fedora
Amazon elastic compute cloud (EC2)
Starting RabbitMQ
Starting RabbitMQ on Windows
Other OSes (Linux, Mac OS X)
Summary
2. Configuring RabbitMQ
Overall configuration of RabbitMQ
The RabbitMQ environment variables
Common environment variables
Unix-specific default location
Windows-specific default location
The configuration file
Runtime parameters
Parameter management
Policy management
Memory management
Summary
3. Architecture and Messaging
Messaging and its use cases
Coupling of the software systems
Heterogeneous integration
Addressing scalability
Enterprise messaging
Messaging-related software architectures
Message oriented middleware – Architecture
Event-driven architecture
Messaging concepts
Message producers
Message brokers
Message consumers
Messages
Advanced Message Queuing Protocol (AMQP)
AMQ elements
Message flow
Exchanges in AMQ
Message queues
Bindings
Functional specifications of AMQP
AMQP messages
Virtual hosts
Exchange types
The direct exchange type – amq.direct
The fan-out exchange type – amq.fanout
The topic exchange type – amq.topic
The headers exchange type – amq.match
Summary
4. Clustering and High Availability
High reliability in RabbitMQ
Federation in RabbitMQ
Clustering in RabbitMQ
Creating clusters
Checking the cluster status
Changing the cluster node types
Updating cluster nodes
Clustering the settings of RabbitMQ
Load balancing for high availability of queues
Summary
5. Plugins and Plugin Development
Plugin management and default plugins
Enabling and disabling plugins
Installing plugin from third-party sources
Default plugin list
Plugin configuration
Custom plugin development
Basics of Erlang
Variables and expressions
Tuples and lists
Functions and modules
Conditionals
Looping in Erlang
Concurrent programming
Simple RabbitMQ metronome plugin
Summary
6. Managing Your RabbitMQ Server
Management via a command line
Cluster commands
User commands
Virtual host and permission commands
Miscellaneous commands
Management via a web plugin
Management via a REST API
Summary
7. Monitoring
RabbitMQ command-line tools
Web plugins
Nagios
Munin
Zabbix
Summary
8. Security in RabbitMQ
An brief introduction to security in RabbitMQ
Vulnerabilities
Information leakage
Session management
Authentication and authorization
Solutions to the vulnerabilities
Fixing information leakage
Session management
Authentication and authorization
Applying access control
Providing SASL authentication
SSL support in RabbitMQ
Keys, certificates, and CA certificates
Enabling SSL support
Summary
9. Java RabbitMQ Client Programming
Case study
Use cases
Interaction diagram – sequence diagram
Application language – Java
Java Message Service (JMS)
RabbitMQ Java client API
Client package in detail
Connection
Channel
Exchanges
Queues
Publishing messages
Consuming messages
Synchronously receiving messages
Asynchronously receiving messages
Case study – client implementations
Model classes
JSONMessage interface
Message model
File message
Task
Single message
Sender
Receiver
Group message – routing
Sender
Receiver
Bulk message – PubSub
Sender
Receiver
File message
Sender
Receiver
RPC message
RPC client
RPC server
Creating tasks – manual acknowledgment
Task creator
Task handler
Creating distributing tasks
Task creator
Task handler clients
Spring framework and RabbitMQ
Spring AMQP
Single message
Spring config
Sender
Receiver
PubSub messages
Spring config
Private messages – routing
Spring config
Summary
10. Ruby Client Programming
Case study
Small data
Big data
Medium data
Solving all data problems
Bunny and Ruby
Installing Ruby
Linux
Windows
OSX/Mac
Rbenv
Installing Bunny
Using Bunny
Bunny producer
Bunny consumer
Exploring the AMQP model with Bunny
Workers
Publish – subscribe
Routing
The real-time processing
Sneakers
Installing
Lambda architecture
The real-time processors
Key performance indicators (KPIs)
Building averaging workers
Windows
Linux
Mac OS X
Building the IP2Location worker
Exploring sneakers
Timeouts
Job handling
Metrics
Summary
11. Python Client Programming
Case study
Getting Python dependencies
Pika
Installing Pika
Our first Pika client
A consumer
Introducing the web scraper
Scheduler
Scraper
Implementing the scheduler
Implementing the scraper
Running the scraper
Handling failure
Using acknowledgement
The Pika API
Connecting
Using connection adapters
BlockingConnection
BlockingChannel
Declaring queues and exchanges
Authentication
Plain credentials
SSL and external credentials
Certificate authentication
Background processing
Celery
Installation
Celery scraper
Celery scheduler
Exploring Celery
Scheduling
HTTP hook tasks
Other Celery features
Summary
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜