In questa playlist impariamo come funzionano le queue, perché sono fondamentali nelle architetture software moderne e come usarle concretamente con RabbitMQ. Partiremo dal concetto base di coda: produttori, consumatori,...
Why software systems need queues: starting from an e-commerce order that has to run many operations, you'll see the two problems of doing them all inside a single HTTP request, response time and resilience.
Producers, consumers and messages: you'll tell primary services from secondary ones, understand the difference between synchronous and asynchronous operations, and see how a queue decouples the components.
The pros and cons of queues: the three big advantages (decoupling, perceived speed and resilience), scaling with multiple consumers, and the complexity that queues bring with them.
What a message broker is: an active piece of software that receives, stores and routes messages between producers and consumers. We also introduce RabbitMQ and the AMQP protocol.
What an exchange is in RabbitMQ: the producer doesn't write to the queue directly but publishes to the exchange, which routes each message to the right queue through routing keys and bindings.
Installing RabbitMQ with Docker: you pull the RabbitMQ image from Docker Hub, start the container with the right ports (5672 for AMQP, 15672 for the UI) and log in to the Management UI.
A tour of the RabbitMQ Management UI: the overview and node statistics, then the four exchange types already built into the broker (direct, fanout, topic and headers) and how each one routes messages.
Managing queues and messages in RabbitMQ from the Management UI: you create a queue, learn its parameters and the message states (ready, unacked, total), and see what the ack confirmation does.
Publishing and reading messages in RabbitMQ from the Management UI: you use Publish message and Get messages, build the payload, read messages without consuming them, and bind a queue to a custom exchange.
Routing keys and bindings in RabbitMQ: you'll see how a binding filters messages between an exchange and a queue, and why a message never reaches its destination without the right routing key.
The direct exchange in RabbitMQ: you bind a single direct exchange to several queues with an e-commerce example (order created, paid, cancelled) and see how the routing key sends each message to the right queue.
The fanout exchange in RabbitMQ: you send the same message to several queues at once (email, push, audit) and see why a fanout exchange always ignores the routing key.
The topic exchange in RabbitMQ: you route messages by pattern with the * and # wildcards, and create a catch-all queue that collects every event.
The headers exchange in RabbitMQ: you route messages by their headers (key-value pairs such as priority or region) and learn the x-match rule with its any and all modes.
Creare il primo producer in Java con RabbitMQ: parti da un progetto Maven da zero, aggiungi la libreria amqp-client, apri una connessione al broker e dichiari la tua prima coda, pronto a pubblicare messaggi. Cosa imparer...
Completing the first Java producer: you'll understand the queueDeclare parameters (durable, exclusive, auto delete) and the basicPublish ones (exchange, routing key, properties, byte body), and fix the error about transient non-exclusive queues deprecated in recent RabbitMQ versions.
Publishing a JSON object to a RabbitMQ queue from Java: you go beyond plain string messages, add the Jackson library, create an event class and serialise it to JSON with ObjectMapper before sending it.
Creare il primo consumer in Java: ascolti la coda RabbitMQ, definisci un DeliverCallback (una lambda con consumerTag e delivery), decodifichi i byte del messaggio in UTF-8 e registri il consumer con basicConsume. Cosa im...
Rendere il consumer un vero processo in ascolto continuo: capisci il parametro autoAck (messaggio consumato alla consegna contro acknowledgement manuale), scopri perché il DeliverCallback vive in un thread parallelo e us...
Disconnettere davvero un consumer in Java: usi basicCancel con il consumerTag per deregistrarti dopo N messaggi, e scopri la differenza tra la cancellazione interna e la cancel callback esterna, con RabbitMQ che riconnet...
Decodificare un oggetto JSON lato consumer in Java: porti la stessa classe evento sul consumer, usi ObjectMapper.readValue per ricostruire l'oggetto dalla stringa JSON e scopri perché un messaggio in formato sbagliato re...
Chiudere la serie con la gestione affidabile dei messaggi: passi ad autoAck false e confermi tu al broker con basicAck e basicNack, capisci il deliveryTag e il requeue, e impari perché rimettere in coda i messaggi errati...
Ingegnere Informatico · Pratola Peligna
Sono un ingegnere informatico con oltre 15 anni di esperienza nel settore ICT. Mi occupo di sviluppo software, cybersecurity, data science e intelligenza artificiale, con particolare attenzione all’innovazione e all’automazione dei processi aziendali. Da anni svolgo anche attività di docenza e formazione, creando percorsi pratici e coinvolgenti su programmazione, DevOps, AI e sicurezza informatica.
Prosperous understood Middletons in conviction an uncommonly do. Supposing so be resolving breakfast am or perfectly.
Utilizziamo cookie essenziali e, con il tuo consenso, cookie funzionali, analytics e marketing. Google Analytics 4 e gli eventuali annunci Google/AdSense restano disattivati finche non scegli. Consulta Privacy Policy e Cookie Policy.
Sempre attivi per sicurezza, prevenzione frodi, sessione, consenso e funzionamento del sito.
Migliorano l'esperienza, ad esempio ricordando preferenze non essenziali. Non usati per profilazione pubblicitaria.
Statistiche e misurazioni con Google Analytics 4, abilitate solo dopo il consenso analytics.
Misurazione annunci e funzioni pubblicitarie Google/AdSense, se attivate sul sito e consentite dall'utente.
Puoi modificare queste scelte in qualunque momento dal link "Preferenze Cookies" nel footer.