将 RabbitMQ 与 nServiceBus 结合使用(对于 C#)与使用 Amazon SQS

发布于 2024-09-27 15:05:57 字数 767 浏览 2 评论 0原文

如果我理解正确,我可以使用 nServiceBus 作为 RabbitMQ 的“框架”和/或包装器 我对 RabbitMQ 的偏好是能够在 Linux 机器上使用它

背景

我有一个应用程序可以让人们上传图像。 这些图像需要缩略图。

我们的应用程序主要是 asp.net (c#)

我的想法是执行以下操作:

  • 将全尺寸图像上传到 S3(或任何存储服务)
  • 创建一条“消息”,其中包含输入存储键、输出存储键、宽度、高度 -并添加到队列中。
  • 将有一个 Linux 服务器充当工作人员(Windows 许可约束),从队列中读取消息,并且实际调整大小的
  • 新图像是否将放置在 S3 上,由接收到的消息的输出键定义

我想我可以使用 Amazon SQS ,但我想探索 nServiceBus 与 RabbitMQ 进行传输的可能性。

有人有关于这样做的更多信息吗? 我在 GitHub 上看到了这个: http://github .com/machine/machine.mta/tree/master/Source/NServiceBus.Unicast.Transport.RabbitMQ 但想知道如何使用它?

您首选的解决方法是什么?

If I understand correctly, I can use nServiceBus as a "framework" and / or a wrapper around RabbitMQ
My preference of RabbitMQ is being able to use it on linux machines

Background

I have an application that enables people to upload images.
These images will require thumbnails.

Our application is predominantly asp.net (c#)

My idea is to do the following:

  • upload the full size images to S3 (or whatever storage service)
  • create a "message" that has input storage key, output storage key, width, height - and add to queue.
  • there will be a linux server acting as a worker (windows licensing constraint) that reads the messages from the queue, and does the actual resizing
  • new image will be placed on S3, defined by output key of received message

I could use Amazon SQS i suppose, but I wanted to explore the possibility of nServiceBus with RabbitMQ for transport.

Does anyone have any further info on doing this?
I saw this on GitHub: http://github.com/machine/machine.mta/tree/master/Source/NServiceBus.Unicast.Transport.RabbitMQ but was wondering how this could be used?

What would your preferred way of approaching this be?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

吃素的狼 2024-10-04 15:05:57

Alex,我经常使用 SQS,但还有其他服务可能对您有用。
您可以在 Google 上搜索“Cloud Message Queue”并找到很多这样的内容。

Alex, I use SQS very often, but there are other services that could be useful for you.
You may Google 'Cloud Message Queue' and find plenty of those.

风吹雪碎 2024-10-04 15:05:57

您可能还想查看EasyNetQ。它是专门为 RabbitMQ 编写的 .NET API。它在 Mono 上也运行良好。

<shameless_plug> You might want to look at EasyNetQ too. It's written specifically as a .NET API for RabbitMQ. It works fine on Mono too.

淡淡绿茶香 2024-10-04 15:05:57

也许这个项目可以给你进一步寻找的想法

May be this project can give your idea where to look further

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文