Apache Artemis MQ möjlig intervju Flashcards
Openwire protocol is compatible with what?
JMS 1.1
Whats the latest artemis version
2.32, releasad i slutet av 2023?
what do you know about core protocol news
mirrored core became supported in the, today, latest 2.32 version
How would you describe apache artemis core protocol?
Apache ActiveMQ Artemis core is a messaging system with its own API. We call this the core API.
If you don’t want to use the JMS API or any of the other supported protocols you can use the core API directly. The core API provides all the functionality of JMS but without much of the complexity. It also provides features that are not available using JMS.
https://activemq.apache.org/components/artemis/documentation/2.18.0/core.html
Whats a Core bridge?
The function of a bridge is to consume messages from a source queue, and forward them to a target address, typically on a different Apache ActiveMQ Artemis server. It have resilience functions when connection is lost.
Don’t confuse core bridges with JMS bridges!
Core bridges are for linking an Apache ActiveMQ Artemis node with another Apache ActiveMQ Artemis node and do not use the JMS API. A JMS Bridge is used for linking any two JMS 1.1 compliant JMS providers. So, a JMS Bridge could be used for bridging to or from different JMS compliant messaging system. It’s always preferable to use a core bridge if you can. Core bridges use duplicate detection to provide once and only once guarantees. To provide the same guarantee using a JMS bridge you would have to use XA which has a higher overhead and is more complex to configure.
https://activemq.apache.org/components/artemis/documentation/1.0.0/core-bridges.html
whats the main config file?
broker.xml
how do you create a broker and what is the folder structure created?
cd /var/lib
${ARTEMIS_HOME}/bin/activemq create mybroker
A broker instance directory will contain the following sub directories:
bin: holds execution scripts associated with this instance.
etc: hold the instance configuration files
data: holds the data files used for storing persistent messages
log: holds rotating log files
tmp: holds temporary files that are safe to delete between broker runs
What are the documentation sources that you should be aware of?
https://activemq.apache.org/components/artemis/documentation/javadocs/javadoc-latest
What are the ways to manage ActiveMQ Artemis?
There are numerous ways to access Apache ActiveMQ Artemis management API:
Using JMX — JMX is the standard way to manage Java applications
Using Jolokia — Jolokia exposes the JMX API of an application through an HTTP interface
Using the Core Client — management operations are sent to Apache ActiveMQ Artemis server using Core Client messages
Using any JMS Client — management operations are sent to Apache ActiveMQ Artemis server using JMS Client messages
Web Console — a web application which provides a graphical interface to the management API.
whats the easiest way to make sure your test jms client is distingiushable from all others?
tcp://example.net:61616?jms.clientID=backend
anycast vs multicast routing types. Can u give example?
The most common use-case for anycast semantics, sometimes referred to as point-to-point, involves applications following a “competing consumer” pattern to receive messages from a shared queue. The more consumers receiving messages the greater the overall message throughput. Multiple Java applications sharing a JMS queue is a classic example of this use-case.
The most common use-case for multicast semantics, sometimes referred to as publish/subscribe or “pub/sub”, involves each application receiving every message sent to an address. Multiple applications consuming from a JMS topic is a classic example of this use-case. MQTT subscriptions is another supported example of multicast semantics.
amqp, mqtt, stomp, openwire, core, rest, HornetQ (for use with HornetQ clients) pros and cons
?
openwire pros and cons?
OpenWire is the native protocol that Apache ActiveMQ Classic uses. It is designed for performance and size on the wire - sacrificing some ease of implementation with higher performance and reduced network bandwidth as a priority. OpenWire was first released in Apache ActiveMQ Classic 4.0.
whats a wire protocol?
In computer networking, a wire protocol refers to a way of getting data from point to point. It generally refers to communication protocols higher than the physical layer. In contrast to transport protocols at the transport level (like TCP or UDP), the term wire protocol is used to describe a common way to exchange information at the application level.
The wire protocol may be either text-based or a binary protocol. Although an important architectural decision, this is a separate matter from the distinction between wire protocols and programmatic APIs.
Whats Openwire?
Apache ActiveMQ Artemis supports the OpenWire protocol so that an Apache ActiveMQ “Classic” JMS client can talk directly to an Apache ActiveMQ Artemis server
AMQ OpenWire JMS is a Java Message Service (JMS) 1.1 client for use in messaging applications that send and receive OpenWire messages.
OpenWire is a cross language Wire Protocol to allow native access to ActiveMQ Classic from a number of different languages and platforms, starting from v4.
Version 2 is the current one, detailed versioning unclear!