0Pricing
RabbitMQ Messaging & Async Systems · 강의

페더레이션을 위한 Shovel 플러그인

Shovel 플러그인을 사용하여 WAN을 가로질러서도 브로커 간에 메시지를 안정적으로 이동합니다. 서로 다른 RabbitMQ 인스턴스 또는 클러스터를 원활하게 통합합니다.

페더레이션을 위한 Shovel 플러그인은(는) CoddyKit의 무료 RabbitMQ Messaging & Async Systems 강의입니다. 이것은 4개 중 2번째 강의입니다. 아래에서 전체 강의를 무료로 읽을 수 있으며, 내장 코드 에디터와 24/7 AI 튜터와 함께 브라우저에서 직접 실습할 수 있습니다. 이 강의는 RabbitMQ Messaging & Async Systems 학습 경로의 일부이며, 진행 상황이 웹과 CoddyKit 앱에 동기화됩니다. RabbitMQ Messaging & Async Systems 강의에는 총 4개의 강의가 포함되어 있습니다.

이 강의의 일부는 아직 번역되지 않았으며 영어로 표시됩니다.

Meet the RabbitMQ Shovel

Welcome to the Shovel plugin! RabbitMQ is great for local messaging, but what if you need to send messages between brokers located far apart, perhaps in different data centers?

The Shovel plugin is designed to reliably move messages from a queue on one RabbitMQ broker to an exchange or queue on another, even across wide area networks (WANs).

Why Use the Shovel Plugin?

The Shovel plugin acts like a bridge, offering several key benefits:

  • Broker Decoupling: Connect different RabbitMQ instances without complex network setups or full clustering.
  • WAN Reliability: It automatically handles network interruptions and reconnects, ensuring messages eventually reach their destination.
  • Data Replication: Useful for disaster recovery scenarios, replicating messages between primary and secondary brokers.
  • Version Compatibility: Bridge brokers running different RabbitMQ versions.

How Shovel Works: The Basics

Think of Shovel as a persistent helper:

  • It consumes messages from a specific source queue on one broker.
  • It then publishes these messages to a destination exchange or queue on another broker.
  • This process happens continuously and reliably, even if connections temporarily fail.

It's like having a dedicated worker whose only job is to move messages from point A to point B, no matter the distance.

Static vs. Dynamic Shovels

RabbitMQ offers two main types of shovels:

  • Static Shovels: These are configured directly on a RabbitMQ node, often via the command-line interface (CLI) or Management UI. They are fixed and run as long as the broker is active.
  • Dynamic Shovels: More flexible, these are configured using runtime parameters or policies. They can be created, updated, or deleted on the fly, making them ideal for more transient or policy-driven message flows.

Configuring a Static Shovel

To set up a static shovel, you define its source and destination. Here’s a conceptual CLI command:

rabbitmqctl shovel add [name] --uri=[source_uri] --source-queue=[q_name] --destination-uri=[dest_uri] --destination-exchange=[ex_name]

You specify connection details (URIs) for both brokers and the exact queue/exchange to use.

rabbitmqctl shovel add my-shovel \
  --uri=amqp://guest:guest@broker1:5672/ \
  --source-queue=my-local-queue \
  --destination-uri=amqp://guest:guest@broker2:5672/ \
  --destination-exchange=my-remote-exchange

Static Shovel Parameters

Let's break down the key parameters for a static shovel:

  • --uri: Connection string for the source broker.
  • --source-queue: The name of the queue on the source broker from which messages will be consumed.
  • --destination-uri: Connection string for the destination broker.
  • --destination-exchange (or --destination-queue): The name of the exchange or queue on the destination broker where messages will be published.

The plugin handles all the underlying AMQP connection management.

Dynamic Shovels via Policies

Dynamic shovels are powerful for managing many similar message flows. Instead of adding each shovel manually, you can define a policy.

A policy specifies rules (e.g., matching queue names with a pattern) that automatically create shovels. This is great for:

  • Automatically bridging new queues that match a naming convention.
  • Managing shovel configurations centrally.

Monitoring Your Shovels

It's important to monitor your shovels to ensure messages are flowing correctly.

You can check their status using the RabbitMQ Management UI (under the 'Shovels' tab) or via the CLI:

rabbitmqctl shovel status

Shovel Checkpoint

Test your understanding of RabbitMQ Shovel's capabilities.

Shoveling Messages: A Recap

You've learned about the powerful RabbitMQ Shovel plugin!

  • It reliably moves messages between different RabbitMQ brokers.
  • Shovel acts as a consumer on a source and a producer to a destination, handling reconnections automatically.
  • We covered both static (fixed configuration) and dynamic (policy-driven) shovels.
  • Shovel is crucial for integrating systems across WANs, ensuring message durability, and enabling disaster recovery.

It's an essential tool for building robust, distributed messaging systems!

자주 묻는 질문

“페더레이션을 위한 Shovel 플러그인” 강의는 무료인가요?

네 — “페더레이션을 위한 Shovel 플러그인” 전체 내용을 이 웹사이트에서 무료로 읽을 수 있습니다. 인터랙티브하게 실습하려면(내장 코드 에디터와 24/7 AI 튜터), CoddyKit PRO로 업그레이드하면 RabbitMQ Messaging & Async Systems 강의 전체를 잠금 해제할 수 있습니다. RabbitMQ Messaging & Async Systems 강의에는 총 4개의 강의가 포함되어 있습니다.

“페더레이션을 위한 Shovel 플러그인”에서 뭘 배우나요?

Shovel 플러그인을 사용하여 WAN을 가로질러서도 브로커 간에 메시지를 안정적으로 이동합니다. 서로 다른 RabbitMQ 인스턴스 또는 클러스터를 원활하게 통합합니다. 브라우저에서 직접 실행하는 실습 코드로 RabbitMQ Messaging & Async Systems을(를) 배우며, 24/7 AI 튜터가 강의를 진행하면서 질문에 답변해줍니다.

RabbitMQ Messaging & Async Systems을(를) 시작하는 데 경험이 필요한가요?

사전 경험은 필요하지 않습니다. CoddyKit의 RabbitMQ Messaging & Async Systems은(는) 초급자부터 고급 학습자까지를 위해 구성되어 있으므로, 여기서 시작하거나 처음부터 시작할 수 있으며 자신의 속도대로 진행할 수 있습니다. 이것은 4개 중 2번째 강의입니다.

“페더레이션을 위한 Shovel 플러그인” 강의는 얼마나 걸리나요?

대부분의 CoddyKit 강의는 약 5~10분이 소요됩니다. 각 강의는 간결하고 인터랙티브하여 꾸준한 진행이 가능하며, 웹과 앱에서 중단한 부분부터 바로 시작할 수 있습니다.

이 RabbitMQ Messaging & Async Systems 강의에서 코드를 작성하고 실행할 수 있나요?

네. 모든 RabbitMQ Messaging & Async Systems 강의에는 내장 코드 에디터가 포함되어 있으므로, 브라우저에서 바로 실제 코드를 작성하고 실행한 후 즉시 AI 피드백을 받을 수 있습니다 — 로컬 설정이 필요 없습니다.

이 강의의 모든 강의

  1. 지연 메시지 플러그인
  2. 페더레이션을 위한 Shovel 플러그인
  3. 클러스터링을 위한 Federation 플러그인
  4. 메시지 중복 제거 및 일관된 해시 익스체인지 플러그인
← RabbitMQ Messaging & Async Systems(으)로 돌아가기