
Azure Service Bus is Microsoft's fully managed enterprise message broker that provides queues, publish/subscribe topics, sessions, and dead-letter handling within the Azure ecosystem. It removes the operational burden of running a broker, but it ties workloads to Azure-specific SDKs, namespace-based pricing tiers, and Microsoft's connectivity model.
Apache Artemis is an open-source, multi-protocol message broker that provides queueing, publish/subscribe, and dead-letter capabilities as a self-hosted deployment on any infrastructure. It supports Advanced Message Queuing Protocol (AMQP) 1.0 natively (the same protocol Service Bus exposes), along with MQTT, Simple Text Oriented Messaging Protocol (STOMP), OpenWire, and its own Core protocol, and it stores all messages and configuration within your own environment.
This article explains how to deploy Apache Artemis with Docker or as a standalone Linux service, configure a primary and backup broker pair for high availability (HA), enable multiple messaging protocols, secure the broker, set up dead-letter queues and message routing, monitor the broker, and migrate application code from Azure Service Bus.
Apache Artemis covers most core Azure Service Bus concepts through an open, standards-based broker. In Artemis, clients send messages to an address, and the address routes each message to one or more queues that hold messages for consumers. An address with the ANYCAST routing type routes each message to only one of its queues for point-to-point delivery, and an address with the MULTICAST routing type routes a copy of each message to every queue bound to it for publish/subscribe delivery. The following table maps each Service Bus construct to its Artemis counterpart and notes where the migration involves a different mechanism rather than a drop-in equivalent.
Before you begin, you need to:
Artemis runs either as a container managed by Docker Compose or as a standalone service managed by systemd. Choose one method. The Docker method places a reverse proxy in front of the web console and obtains certificates automatically. The standalone method gives you direct control over the broker files and uses Nginx with Certbot for HTTPS. Later sections provide commands for both methods, so use the command that matches your deployment.
Docker Compose runs Artemis and its reverse proxy as containers defined in a single file. This setup includes Traefik as a reverse proxy to serve the web console over HTTPS with Let's Encrypt certificates.
Create a DNS A record that points your domain, such as artemis.example.com, to the public IP address of your server. For more information, see how to manage DNS records.
Allow HTTP and HTTPS traffic through the firewall. Let's Encrypt uses port 80 to validate the domain, and browsers reach the web console on port 443.
Create the project directory with subdirectories for message data and certificates.
data: Persists the broker instance, including configuration and message storage.letsencrypt: Stores Transport Layer Security (TLS) certificates.Navigate to the project directory.
Create a .env file.
Add the following environment configuration. Replace:
artemis.example.com with your configured domain.admin@example.com with your email address.ADMIN_USER with your preferred administrator username.ADMIN_PASSWORD with a strong password.Save and close the file.
Create the certificate storage file.
Restrict the file to owner-only access. Traefik refuses to use a certificate storage file that other users can read.
Assign ownership of the data directory to the user that the Artemis container runs as. The official image runs the broker as the artemis user with UID and GID 1001.
Create the Docker Compose configuration file.
Add the following configuration:
Save and close the file.
The configuration exposes:
Port 80, 443: Traefik HTTP/HTTPS entry points for the web console.Port 61616: Core and OpenWire connections, and broker-to-broker traffic for high availability.Port 5672: AMQP 1.0 protocol, used by applications migrating from Azure Service Bus.Port 61613: STOMP protocol for text-based messaging.Port 1883: MQTT protocol for Internet of Things (IoT) applications. Docker does not publish the web console port 8161 on the host. Traefik reaches it over the internal Docker network. The EXTRA_ARGS environment variable binds the embedded web server to all container interfaces (--http-host 0.0.0.0) so that Traefik can reach it, and disables strict origin checking for Jolokia (--relax-jolokia). Jolokia is a bridge that converts HTTP requests into Java Management Extensions (JMX) operations, and the web console uses it to read and manage the broker.
Docker publishes container ports with its own firewall rules, and UFW does not filter them. The four broker ports are reachable from the internet and are protected only by broker authentication. Remove the mapping for any protocol you do not use, bind a port to the loopback interface (for example, "127.0.0.1:61613:61613") if only local clients need it, or restrict source addresses with a network-level firewall in front of the server.
Start the stack in detached mode.
Verify the containers are running.
The output lists the traefik and artemis containers with a status of Up.
Check the Artemis startup logs for any errors.
The output shows the broker starting each acceptor, the network listener that accepts client connections on a port for one or more protocols, and ends with a message that the server is now active.
Confirm from a different machine that the web console port is not reachable directly. Replace SERVER_IP with the public IP address of your server.
The connection fails or times out, which confirms that the console is reachable only through Traefik.
Configure Jolokia to accept requests from the HTTPS reverse proxy. When Traefik terminates TLS, the browser sends an Origin header with the HTTPS scheme, but Artemis receives the request over plain HTTP internally. By default, Jolokia treats this scheme mismatch as a potential security issue and rejects the request, which causes the web console dashboard to appear blank after login. Open the Jolokia access configuration file.
Locate the <cors> section. The default section looks like this:
Make two edits:
*://0.0.0.0* with *://artemis.example.com* in the <allow-origin> line, using your domain.<!--ignore-scheme/--> to <ignore-scheme/> by removing the leading <!-- and trailing --> so it becomes an active XML element, not a comment. The <cors> section must look like this when you are done:
Save and close the file.
allow-origin: Accepts browser requests only from your console domain.ignore-scheme: Stops Jolokia from rejecting requests where the browser used HTTPS but the internal proxy connection is HTTP. Without it, the dashboard loads but stays blank.Restart the Artemis container to apply the Jolokia configuration.
For more information on managing Docker Compose stacks, see the How to Use Docker Compose article.
A standalone installation provides direct control over the broker configuration and integrates with systemd for automatic startup and process management.
Download the Artemis 2.57.0 binary distribution from the Apache archive, which keeps every released version available at a stable URL.
Check the official Artemis download page for newer versions, and substitute the version number in the URL and folder names below if you use a different release.
Extract the archive into /opt, the conventional location for third-party software that the package manager does not manage.
Rename the extracted directory to artemis for shorter, stable paths across upgrades.
Create a dedicated system user for the broker.
Create a broker instance. Replace:
ADMIN_USER with your preferred administrator username.ADMIN_PASSWORD with a strong password.In the above command:
--host 0.0.0.0: Binds the messaging acceptors to all interfaces so that remote clients can connect. The web console stays bound to localhost.--require-login: Disables anonymous access, so all clients must authenticate.Set ownership of the broker directory.
Create the systemd service file.
Add the following configuration:
Save and close the file.
Type=forking: The artemis-service script starts the broker in the background and exits.PIDFile: Points systemd to the process ID file that artemis-service writes, so systemd tracks the broker process instead of the exited script.Restart=on-failure: Restarts the broker 10 seconds after an unexpected exit.Reload the systemd daemon.
Enable the service to start on boot.
Start the Artemis service.
Verify the service is running.
The output shows Active: active (running).
Allow the broker protocol ports through the firewall so that remote clients and a backup broker can connect.
5672: AMQP 1.0.61616: Core and OpenWire, and broker-to-broker traffic for high availability.61613: STOMP.1883: MQTT. Omit any protocol port you do not use. To limit a port to known clients, use a source-restricted rule such as sudo ufw allow from 192.0.2.0/24 to any port 5672 proto tcp.
The standalone broker serves its web console over plain HTTP on the loopback interface. Use Nginx as a reverse proxy with a Let's Encrypt certificate from Certbot to serve the console over HTTPS.
Create a DNS A record that points your domain, such as artemis.example.com, to the public IP address of your server. For more information, see how to manage DNS records.
Allow HTTP and HTTPS traffic through the firewall. Let's Encrypt uses port 80 to validate the domain, and browsers reach the web console on port 443.
Update the package index.
Install Nginx, Certbot, and the Nginx plugin for Certbot.
Obtain a Let's Encrypt certificate for your domain. Replace:
artemis.example.com with your domain.admin@example.com with your email address.Create an Nginx configuration file for the Artemis console.
Add the following configuration, replacing artemis.example.com with your domain:
Save and close the file.
server block redirects all HTTP requests to HTTPS.server block terminates TLS with the Let's Encrypt certificate and forwards requests to the web console on localhost:8161.Enable the site by linking it into sites-enabled.
Test the Nginx configuration for syntax errors.
The output confirms that the configuration file syntax is ok and the test is successful.
Reload Nginx to apply the configuration.
Confirm that Nginx is active and running.
The output shows Active: active (running).
Configure Jolokia to accept requests from the HTTPS reverse proxy. When Nginx terminates TLS, the browser sends an Origin header with the HTTPS scheme, but Artemis receives the request over plain HTTP internally. By default, Jolokia treats this scheme mismatch as a potential security issue and rejects the request, which causes the web console dashboard to appear blank after login. Open the Jolokia access configuration file.
Locate the <cors> section. The default section looks like this:
Make two edits:
*://localhost* with *://artemis.example.com* in the <allow-origin> line, using your domain.<!--ignore-scheme/--> to <ignore-scheme/> by removing the leading <!-- and trailing --> so it becomes an active XML element, not a comment. The <cors> section must look like this when you are done:
Save and close the file.
allow-origin: Accepts browser requests only from your console domain.ignore-scheme: Stops Jolokia from rejecting requests where the browser used HTTPS but the internal proxy connection is HTTP. Without it, the dashboard loads but stays blank.Restart Artemis to apply the changes.
The web console is a Hawtio-based browser interface for monitoring broker health, managing queues, browsing messages, and viewing metrics.
Open a web browser and navigate to the Artemis console at https://artemis.example.com/console, replacing artemis.example.com with your configured domain.
Log in with the administrator credentials you configured during deployment. The dashboard displays the Status tab by default, showing broker information including the version, uptime, and HA policy, along with an address memory usage chart.
Select the Addresses tab to view existing addresses and create new ones. Artemis pre-creates default addresses, including DLQ and ExpiryQueue.
Click Create Address to add a new address. In the Create Address dialog:
orders).Select the Queues tab to view all queues bound to their respective addresses.
Select the Broker Diagram tab to view the visual topology of the broker including all addresses and queues.
Artemis persists messages in the journal, a set of append-only files on disk. Both Docker and standalone installations pre-configure working defaults. Modify these values only if you need to tune performance or durability for your workload.
Open the broker configuration file.
Docker:
Standalone:
Locate the journal settings in the <core> section. The instance creation step selects the journal type based on what the host supports:
Docker (the official image includes libaio, so it uses Linux asynchronous I/O):
Standalone (falls back to Java NIO when libaio is not available on the host):
Adjust these values if needed, then save and close the file.
Key settings:
journal-type: ASYNCIO uses Linux native asynchronous I/O for the best performance and requires the libaio library on the host. NIO uses standard Java I/O and works on any platform. Do not set ASYNCIO on a host without libaio.journal-datasync: When true, calls fdatasync on journal writes so that data survives a power failure.journal-min-files: Number of journal files the broker pre-creates at startup.journal-pool-files: Number of journal files the broker keeps for reuse when it reclaims files, so that it does not create new files during writes.large-messages-directory: Stores large messages, which the broker persists outside the journal when they exceed the min-large-message-size threshold (default 100 KiB).Restart the broker to apply changes.
Docker:
Standalone:
AMQP 1.0 is the protocol that Azure Service Bus applications use, so it is the most important protocol to confirm. Both Docker and standalone installations pre-configure AMQP, STOMP, MQTT, and OpenWire acceptors by default. Create a durable point-to-point queue, then send and receive a message with a Python AMQP client.
Create a durable ANYCAST queue named test-queue. Pre-creating the queue guarantees that the broker stores the message even when no consumer is connected.
Docker:
Standalone:
The output confirms that the queue was created.
Install the Python venv package.
Create a Python virtual environment.
Activate the virtual environment.
Install the Apache Qpid Proton AMQP client library.
Create a script that sends one message.
Add the following code. Replace SERVER_IP with the IP address of your broker, and ADMIN_USER and ADMIN_PASSWORD with your administrator credentials.
Save and close the file.
BlockingConnection opens an AMQP connection and authenticates with the Simple Authentication and Security Layer (SASL) PLAIN mechanism.sender.send waits until the broker confirms that it stored the message.test-queue unless you pass another address as the first argument.Create a script that receives one message.
Add the following code. Replace SERVER_IP, ADMIN_USER, and ADMIN_PASSWORD with the same values you used in the send script.
Save and close the file.
receiver.receive(timeout=10) waits up to 10 seconds for a message and raises a timeout error if none arrives, so the script never hangs.accept() removes the message from the queue. Passing reject as the second argument rejects the message instead, which the dead-letter test uses later.Send a test message.
The output confirms that the message was sent to test-queue.
Receive the test message.
The output displays Received: Hello from Artemis.
Artemis provides high availability through a primary and backup broker pair. The primary replicates its journal to the backup over the network, and the backup activates when it loses contact with the primary. Both brokers need a cluster connection to find each other, matching cluster credentials, and connectors that advertise addresses the other node can reach.
Replication with a single primary and backup pair cannot protect against split brain, a state in which both brokers are active at the same time. If the network between the two servers fails while both are running, the backup activates and both brokers accept messages independently. Artemis needs at least three primary and backup pairs for quorum voting to work. To protect a single pair, use a shared store or a pluggable lock manager backed by at least three ZooKeeper nodes. For details, see the network isolation documentation.
Install Artemis on the second server with the same deployment method and administrator credentials you used on the primary server. Follow the steps in Deploy Apache Artemis. The DNS record and HTTPS steps are optional on the backup server.
On the primary server, open the broker configuration file.
Docker:
Standalone:
Add the following configuration inside the <core> section. Replace:
PRIMARY_IP with the IP address of the primary server that the backup can reach.BACKUP_IP with the IP address of the backup server.CLUSTER_USER and CLUSTER_PASSWORD with a cluster username and a strong password. Both brokers must use the same values.Save and close the file.
connectors: The artemis connector is the address this broker advertises to the other node. The backup connector is the address of the other node.cluster-user and cluster-password: Credentials that brokers use to authenticate cluster connections. The defaults are insecure placeholders and must be changed.check-for-active-server: When the primary restarts after a failover, it checks for an active backup, synchronizes the latest data from it, and then takes over again. Without this setting, a restarted primary can serve messages that the backup already delivered.cluster-connection: Connects the two brokers with static connectors so that they find each other without UDP multicast discovery.On the backup server, open the broker configuration file with the same command.
Add the following configuration inside the <core> section. The connectors are reversed so that each broker advertises its own address.
Save and close the file.
allow-failback: The backup stops and returns to backup mode when the restarted primary asks to take over.Restart the broker on the primary server first.
Docker:
Standalone:
Restart the broker on the backup server with the same command.
View the broker log on the backup server to confirm replication.
Docker:
Standalone:
The log contains a backup announced message and a message stating that the backup server is synchronized with the primary server.
Test failover. On the primary server, where you created the test scripts, set SERVER_IP to PRIMARY_IP in amqp_send.py, then send a message to the primary broker.
Stop the primary broker abruptly to simulate a crash. A graceful shutdown does not trigger failover by default.
Docker:
Standalone:
Then stop the unit so that systemd does not restart the primary during the test.
View the broker log on the backup server again. The log contains the message Backup Server is now active.
On the primary server, set SERVER_IP to BACKUP_IP in amqp_receive.py, then receive the message from the backup broker.
The output displays Received: Hello from Artemis, which confirms that the backup holds the replicated message.
Start the primary broker again.
Docker:
Standalone:
The primary synchronizes with the active backup and takes over, and the backup returns to backup mode.
Configuration files such as broker.xml, artemis-users.properties, and artemis-roles.properties are not replicated. Apply every later configuration change on both servers. Configure clients with both broker addresses so they reconnect after a failover, for example failover:(amqp://PRIMARY_IP:5672,amqp://BACKUP_IP:5672) for Qpid JMS, or the urls list in Qpid Proton.
Both Docker and standalone installations create the administrator user automatically during setup and grant it full permissions on all addresses. Applications must not use the administrator account. Create separate users for publishers and consumers, and grant each role only the permissions it needs.
Open the users properties file.
Docker:
Standalone:
Add users in the format username=password. The administrator user already exists.
Replace PUBLISHER_PASSWORD and CONSUMER_PASSWORD with strong passwords. Save and close the file.
Open the roles properties file.
Docker:
Standalone:
Add a role for each new user in the format role=user1,user2. Keep the existing amq line, which belongs to the administrator.
Save and close the file.
Open the broker configuration file.
Docker:
Standalone:
Add the following <security-setting> block inside the existing <security-settings> section, before the catch-all match="#" block:
Save and close the file.
match="orders.#": Applies to the orders address and every address that starts with orders.. Artemis uses the most specific match and does not merge permissions from broader matches, so the block lists the administrator role again.send: Only the publishers role and the administrator can send.consume and browse: Only the consumers role and the administrator can receive or browse.createAddress and queue permissions: Only the administrator can create or delete addresses and queues, so create application addresses in advance through the web console or the artemis queue create command.Restart the broker to apply the broker.xml changes.
Docker:
Standalone:
Create an orders queue as the administrator so that the publisher has a destination.
Docker:
Standalone:
Verify the permissions. Set USER to consumer and PASSWORD to CONSUMER_PASSWORD in amqp_send.py, then send a message to orders.
The script exits with an error because the consumers role does not have the send permission. Change the credentials to the publisher user and run the command again to confirm that the send succeeds.
Dead-letter queues (DLQs) capture messages that the broker cannot deliver within a configured number of attempts or that a consumer explicitly rejects. Dead-lettering prevents message loss and lets you troubleshoot delivery failures.
The default broker configuration routes undeliverable messages from every address to a single shared DLQ queue and expired messages to ExpiryQueue:
With these defaults, the broker redelivers a message immediately and moves it to the DLQ after 10 failed delivery attempts, because max-delivery-attempts defaults to 10. Azure Service Bus keeps a separate dead-letter sub-queue for each queue and topic subscription. Enable automatic dead-letter resources to get a separate dead-letter queue for each address, and tune the retry settings.
Open the broker configuration file.
Docker:
Standalone:
Locate the <address-setting match="#"> block and add these elements inside it:
Remove the existing <dead-letter-address>DLQ</dead-letter-address> and <redelivery-delay>0</redelivery-delay> lines from the same block so that each setting appears only once. Save and close the file.
These settings control:
max-delivery-attempts: Number of delivery attempts before the broker moves the message to the dead-letter address.redelivery-delay: Initial delay in milliseconds between retry attempts.redelivery-delay-multiplier: Factor by which the delay increases with each retry.max-redelivery-delay: Upper limit on the redelivery delay.dead-letter-address: Sends dead letters to a new DLA address instead of the shared DLQ queue.auto-create-dead-letter-resources: Creates the DLA address and, for each original address, a dedicated queue on it that filters on the original address. The queue name uses the default DLQ. prefix, so dead letters from orders land in the DLQ.orders queue on the DLA address.(Optional) To send dead letters for specific addresses to a separate dead-letter address, define that address and its queue in the existing <addresses> section. A dead-letter address needs at least one queue to hold messages.
Then add a new <address-setting> block before the catch-all match="#" block:
Save and close the file.
Restart the broker to apply changes.
Docker:
Standalone:
Test dead-lettering. Send a message to test-queue with the administrator credentials.
Receive the message and reject it. An AMQP rejection moves the message to the dead-letter address immediately.
Receive the dead-lettered message from its dead-letter queue. The DLA::DLQ.test-queue value is a fully qualified queue name in the address::queue format.
The output displays Received: Hello from Artemis, which confirms that the broker routed the rejected message to DLQ.test-queue.
Artemis supports filters, which select messages by their headers and properties, and diverts, which move or copy messages from one address to another inside the broker without changing client code. These features replace Azure Service Bus subscription filters and auto-forwarding.
Open the broker configuration file.
Docker:
Standalone:
Configure a divert to copy or redirect messages between addresses. Add the <diverts> block inside the <core> section.
In this configuration:
filter: Expression based on a subset of SQL-92 syntax that matches message headers and properties. The divert processes only matching messages.exclusive: When true, the divert moves messages to the forwarding address instead of copying them.(Optional) To create queues that hold only messages that match a filter, add them to the existing <addresses> section.
Save and close the file.
Restart the broker to apply changes.
Docker:
Standalone:
Azure Monitor tracks queue depth, dead-letter counts, and errors for Service Bus automatically. A self-hosted broker needs the same visibility. Artemis reports queue statistics through its command-line tool and web console, and writes operational events to its log.
Display message counts, consumer counts, and delivery statistics for every queue.
Docker:
Standalone:
The output displays a table with one row per queue and columns that include CONSUMER_COUNT, MESSAGE_COUNT, MESSAGES_ADDED, DELIVERING_COUNT, and MESSAGES_ACKED.
Watch dead-letter queues for growth. Add the --queueName DLQ option to the previous command to list only queues whose names contain DLQ, and the --json option to produce output that monitoring scripts can parse.
Review the broker log for warnings and errors.
Docker:
Standalone:
Monitor free disk space on the volume that holds the broker data directory. When disk usage exceeds the broker's max-disk-usage limit, the broker blocks producers by default.
To send metrics to an external monitoring system such as Prometheus, Artemis exports broker metrics through Micrometer and requires a metrics plugin. For details, see the Artemis metrics documentation.
Validate the complete Artemis deployment by testing each component in turn.
Open https://artemis.example.com/console in a browser, log in with your administrator credentials, and confirm that the Status tab displays the broker version and uptime.
From a client machine, confirm that the AMQP port is reachable. Replace SERVER_IP with your server's IP address in this step and the next three steps, and skip any port you chose not to expose.
The command reports that the connection succeeded.
Confirm that the Core and OpenWire port is reachable.
The command reports that the connection succeeded.
Confirm that the STOMP port is reachable.
The command reports that the connection succeeded.
Confirm that the MQTT port is reachable.
The command reports that the connection succeeded.
Confirm that messages survive a broker restart. Send a message to test-queue.
Restart the broker.
Docker:
Standalone:
Receive the message.
The output displays Received: Hello from Artemis, which confirms that the journal persisted the message across the restart.
Run the artemis queue stat command from Monitor the Broker and confirm that the test-queue row shows a MESSAGE_COUNT of 0 after the earlier tests consumed their messages.
Migrating from Azure Service Bus to Artemis involves recreating entities, replacing the Azure SDK in each application, and planning for Service Bus features that Artemis implements differently or not at all.
Azure Service Bus queues map directly to Artemis anycast addresses, and topics with subscriptions map to multicast addresses.
Azure Service Bus and Artemis both use AMQP 1.0 on the wire, but the Azure Service Bus SDKs do not work against Artemis. The SDKs depend on Service Bus-specific extensions, including claims-based security (CBS) token authentication and the $management node for operations such as lock renewal and scheduling. Replace the Azure SDK with a generic AMQP 1.0 client such as Apache Qpid JMS for Java, Apache Qpid Proton for Python and C, AMQP .NET Lite for .NET, or rhea for Node.js.
The following Python example shows a producer before and after the migration.
Before, with the Azure Service Bus SDK. NAMESPACE_CONNECTION_STR is your existing Service Bus connection string:
After, with Qpid Proton against Artemis. Replace ARTEMIS_HOST with the IP address or domain of your broker, and PUBLISHER_PASSWORD with the password of the publisher user:
Apply the same change to consumers. A Service Bus complete_message call becomes an AMQP accept, abandon_message becomes a release or modified outcome, and dead_letter_message becomes a reject.
amqp://host:5672, and pass the username and password as client options. For TLS connections, configure a TLS acceptor on the broker and use amqps://.queue-name or topic-name/subscriptions/subscription-name. Artemis uses the address name directly, or the address::queue format for fully qualified queue references.Azure Service Bus sessions provide ordered processing of related messages, a lock on each session, and per-session state storage. Artemis message grouping provides only the ordering part. The broker pins all messages with the same group ID to one consumer and delivers them in order. If that consumer disconnects, the broker assigns the group to another consumer.
Set the group ID on each message instead of the Service Bus session_id. AMQP clients set the standard group-id message property, which Artemis uses as the group ID. Java Message Service (JMS) clients set JMSXGroupID.
Keep the default default-group-rebalance setting of false. When rebalancing is enabled, the broker reassigns groups each time a consumer joins, which breaks the guarantee that a group stays with one consumer.
Artemis does not recommend message grouping across a cluster of active brokers, because grouped messages must be consumed serially, and clustered grouping routes every group decision through a grouping handler on a single node. For details, see the Artemis message grouping documentation.
Azure Service Bus detects duplicates by MessageId within a configurable time window. Artemis detects duplicates only through the _AMQ_DUPL_ID message property and does not use the AMQP message-id field. It remembers a fixed number of recent IDs per address rather than IDs within a time window.
Verify or add duplicate detection settings in the <core> section of broker.xml.
id-cache-size: Number of IDs the broker remembers for each address. The default is 20000. Set a larger value if your duplicate window covers more messages than that.persist-id-cache: Stores the cache in the journal so that it survives broker restarts. The default is true.Restart the broker if you made changes.
Docker:
Standalone:
Set the _AMQ_DUPL_ID application property on outgoing messages. AMQP clients can copy the value they previously used as the Service Bus MessageId.
The broker drops a message whose ID is still in the cache for that address.
Azure Service Bus Premium replicates entities, and optionally messages, to a namespace in another region. The primary and backup pair in this article runs in one location. To replicate to a broker in another location, use AMQP broker connection mirroring. Mirroring sends messages and acknowledgements asynchronously, so the remote broker can lag behind the source.
Add the following block to the <core> section of the source broker. Replace REMOTE_BROKER_IP, MIRROR_USER, and MIRROR_PASSWORD with the address and credentials of the remote broker.
For bidirectional mirroring and failover guidance, see the Artemis broker connections documentation.
Some Azure Service Bus features have no Artemis counterpart. Redesign the parts of your applications that depend on them before you migrate.
Azure Service Bus stores messages in Microsoft-managed, replicated storage. Artemis stores messages in its journal on the broker's local disk, so storage planning becomes your responsibility.
artemis data exp command to export message data while the broker is stopped.ContentType and CorrelationId map to the AMQP content-type and correlation-id fields.ScheduledEnqueueTimeUtc. AMQP clients schedule delivery in Artemis with the x-opt-delivery-time message annotation (a Unix timestamp in milliseconds) or the x-opt-delivery-delay annotation (a delay in milliseconds). Core and JMS clients use the _AMQ_SCHED_DELIVERY property.artemis queue stat command, the web console, or a metrics plugin.DLQ unless you enable auto-create-dead-letter-resources. Update consumers that read dead letters to use the new queue names.WindowsAzure.ServiceBus library must move to AMQP 1.0 regardless, because Microsoft ended SBMP support on September 30, 2026.You have deployed Apache Artemis as a self-hosted alternative to Azure Service Bus. This article covered Docker and standalone installations, HTTPS for the web console with Traefik and Nginx, a primary and backup broker pair with replication, message persistence tuning, AMQP connectivity testing, role-based security, per-address dead-letter handling, message filtering with diverts, basic monitoring, and the client changes needed to move applications off the Azure SDK. Before you move production traffic, test failover and recovery against your own workloads and add metrics export to your monitoring system. For more information, visit the official Apache Artemis documentation.
0 Comments
Be the first to comment and share your perspective with the community.