MassTransit Bus Stop - Database as a Queue?

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ธ.ค. 2024

ความคิดเห็น • 7

  • @Pretence01
    @Pretence01 ปีที่แล้ว +5

    Interesting topic. The main reason why we chose Rebus over MT in a previous project was its DB transport capabilities. Introducing the message pattern was already groundbreaking for the it/ops team, let alone introducing a dedicated message broker.

  • @Qrzychu92
    @Qrzychu92 ปีที่แล้ว +4

    To be honest, it's not even about the transport. In my case, in memory transport would be more than enough, however the issue is with restarting the app.
    Outbox that saves unprocessed messaged in a database, than on restart just puts them into the in memory transport would work well enough.
    Or, just a possibility to republish messages from sagas after restart - that also gives enough tools for a small, single process system to work with messaging without external broker.

  • @wboumans
    @wboumans ปีที่แล้ว +2

    Happy this came up, this should be viable option. We are still running a how made pub sub on sql and it's been running for 15 years.

  • @jameskelly99
    @jameskelly99 ปีที่แล้ว +3

    I like the idea of database transports. I wrote the pg transport stuff in rebus years ago, no idea if anyone uses it, but it was pretty simple. I’m with dru, in small projects, you already have a db, so it’s one less moving part and trivial with a few queries to keep an eye on it. Also agree that most shops don’t need scale that a db queue couldn’t handle.

  • @maxbitran
    @maxbitran ปีที่แล้ว +1

    NServiceBus already has a DB transport (at least SQLServer) and I strongly believe that to have options is the golden ticket here.

  • @daveanderson8348
    @daveanderson8348 ปีที่แล้ว +1

    NServiceBus already has this capability, however as it says in their documentation this method also has drawbacks. For example there is no local store-and-forward mechanism in databases, and your polling interval cannot be too frequent. But it would be nice if this option also became available in MassTransit.

  • @deenayd8271
    @deenayd8271 ปีที่แล้ว

    DB transport would be a nice way to have the ability to easily create consistent backups of application state. Or even use a WAL continous backups that allows restoring any point of time if (when) it's needed. Using RabbitMQ one can't easily do that. Well, ok, can put postgreSQL and rabbitMQ databases on the same ZFS volume and snapshot at filesystem level to create backup of both databases at the same point of time. But that's still not a WAL backup. And that can't be easily done in the cloud. And that is pretty complicated to setup correctly (so that if your software is run at client's site then it's not an nice option to tell them to use filesystem snapshots to backup all different databases your application is using).