6

For my client we're investigating the use of MassTransit. MassTransit seems to be focussed around RabbitMQ as for message transport. Due 'intrastructural constraints' of the client, we're stuck with using SQL Server database as any persistence.

How can MassTransport be used with SQL Server as transport mechanism for messages?

1
  • Well, if you take some significant effort to implement all transport features for SQL Server, you can do that. Jul 18, 2016 at 10:58

1 Answer 1

3

SQL Server is not a transport, it only stores messages. Without a broker, there's no way to get MassTransit to work. With older MassTransit (2.x) you could use Subscription Service to replace the broker, but it requires some additional infrastructure.

Using Azure/Windows Service Bus would be a better solution as it's a real broker. You don't have to use RabbitMQ.

3
  • 4
    There is a transport made on SQL Server for NServiceBus. It uses tables as "queues" and constant polling to get "messages". I guess the question was about this. In essence I completely agree with you but this SQL Server thing got quite a lot of traction with NServiceBus. Jul 19, 2016 at 19:06
  • 3
    An old rant, but here it is again: mikehadlow.blogspot.com/2012/04/… Jul 20, 2016 at 15:21
  • 3
    @ChrisPatterson NServiceBus isn't using SQL server in a way described in the post You linked to. In the post the worker understands the record. In NSB the table is used just as a storege for serialized messages. Once the message is processed it is deleted from the table.
    – maklipsa
    Nov 25, 2018 at 14:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.