Backend

Queue e RabbitMQ: guida pratica alle code nei sistemi software

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,...

Course description
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, messaggi, elaborazione asincrona e disaccoppiamento tra servizi. Poi passeremo alla pratica con RabbitMQ, analizzando exchange, queue, routing key, binding, acknowledgement, retry, dead letter queue e scenari reali di utilizzo. Questa playlist è pensata per chi vuole capire non solo come usare RabbitMQ, ma soprattutto perché usare una coda in applicazioni backend, microservizi, sistemi distribuiti e processi asincroni.
Lessons list

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.

Guarda lezione

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.

Guarda lezione

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.

Guarda lezione

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.

Guarda lezione

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.

Guarda lezione

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.

Guarda lezione

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.

Guarda lezione

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.

Guarda lezione

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.

Guarda lezione

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.

Guarda lezione

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.

Guarda lezione

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.

Guarda lezione

The topic exchange in RabbitMQ: you route messages by pattern with the * and # wildcards, and create a catch-all queue that collects every event.

Guarda lezione

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.

Guarda lezione

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...

Guarda lezione

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.

Guarda lezione

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.

Guarda lezione

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...

Guarda lezione

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...

Guarda lezione

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...

Guarda lezione

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...

Guarda lezione

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...

Guarda lezione
Giovanni Pace

Giovanni Pace

Ingegnere Informatico · Pratola Peligna

  • 107 Courses
About the teacher

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.

This course includes

  • Lessons 22
  • Duration 4h 47m
  • Difficulty beginner
  • Language it
  • Certificate No

Recently viewed