Step 8 — In your framework

Spring Boot, the .NET Generic Host, FastAPI and Rails: the same messages, wired the framework's way.

← step 7 · the path →

Run it

One command, whichever language you came for. The image carries the library, the example built, its runtime and RabbitMQ; the management UI is on http://localhost:15672 (guest/guest) while it runs, and --keep holds it open afterwards.

docker run --rm -p 15672:15672 ghcr.io/acemq-company/acemq-tutorials-java:0.7.20 step 8
docker run --rm -p 15672:15672 ghcr.io/acemq-company/acemq-tutorials-python:0.7.17 step 8
docker run --rm -p 15672:15672 ghcr.io/acemq-company/acemq-tutorials-ruby:0.7.19 step 8
docker run --rm -p 15672:15672 ghcr.io/acemq-company/acemq-tutorials-dotnet:0.7.18 step 8
docker run --rm -p 15672:15672 ghcr.io/acemq-company/acemq-tutorials-go:0.9.14 step 8
docker run --rm -p 15672:15672 -e TUTORIAL_VARIANT=vbnet ghcr.io/acemq-company/acemq-tutorials-dotnet:0.7.18 step 8   # .NET in VB.NET

Side by side

Java Python Ruby .NET Go
Example spring-boot fastapi rails hosting-csharp (VB.NET) —
Integration Spring Boot starter 0.3.6 FastAPI 0.1.10 Rails 0.2.9 .NET hosting 0.2.8 —

Java

acemq-java-amqp 0.7.20, acemq-java-amqp-examples examples-v0.7.20.

integrations/spring-boot

The step 1 program as a Spring Boot application with the AceMQ starter: the starter opens the connection and declares the exchange, queue and binding in application.yml, an @AceListener method consumes, a service with AceMq injected publishes, and closing the context drains the listener.

Python

acemq-python-amqp 0.7.17, acemq-python-amqp-examples examples-v0.7.17.

integrations/fastapi

The step 1 program as a FastAPI application with acemq-amqp-fastapi: its lifespan opens the connection, declares the topology and starts the @acemq.consumer handler when the application starts, a route publishes through an injected Publisher, and the lifespan drains on the way out.

Ruby

acemq-ruby-amqp 0.7.19, acemq-ruby-amqp-examples examples-v0.7.19.

integrations/rails

The step 1 program as a Rails application with acemq-amqp-rails: one connection configured from config.acemq, a controller that publishes with AceMQ::Rails.publish, and a consumer class.

.NET

acemq-dotnet-amqp 0.7.18, acemq-dotnet-amqp-examples examples-v0.7.18.

integrations/hosting-csharp

The step 1 program as a .NET Generic Host worker with AceMq.Amqp.Hosting: AddAceMq binds the connection and the topology from appsettings.json, AddConsumer<Order, OrderHandler> registers a handler resolved from the container for every message, and stopping the host drains it.

The VB.NET twin, integrations/hosting-vbnet, is the same program; -e TUTORIAL_VARIANT=vbnet runs it instead.

Go

acemq-go-amqp 0.9.14, acemq-go-amqp-examples examples-v0.9.14.

Go has no framework integration: an AceMQ Go service is the library and the standard library, so step 1 is already what one looks like.