2

I am new to Rebus and was looking for some documentation about triggering azure functions using Rebus with Azure Service Bus provider.

Is it possible?

Leonardo Lurci
  • 2,409
  • 3
  • 18
  • 34

1 Answers1

3

Rebus does not have any kind of integration with Azure Functions, but you're free to let your Azure Functions be triggered by messages sent from Rebus, and you can easily use Rebus' one-way client mode to send messages from Azure Functions:

using var bus = Configure
    .With(new BuiltinHandlerActivator())
    .Transport(t => t.UseAzureServiceBusAsOneWayClient(conn))
    .Routing(r => r.TypeBased().Map<MyMessage>("destination-queue"))
    .Start();

await bus.Send(new MyMessage());
mookid8000
  • 18,258
  • 2
  • 39
  • 63
  • 1
    So you suggest sending a message using Rebus and let the azure function be triggered directly by Azure Service Bus, right? – Leonardo Lurci Aug 03 '21 at 12:13