English 中文(简体)
如果所有电文都在当地发送,则使用公交车是否过分?
原标题:Is it overkill to use a service bus if all messages are sent locally?

我有一个邮件读写服务,它读到每个电子邮件的箱子,并把它输入数据库。 问题一是,我没有保证收到电子邮件时会把电子邮件同化(这是业务要求)。 我这样做的办法是采用某种查询制度。 这样,我就着手处理这些项目。 这也使我获益于将我对电子邮件的读写与在数据库中对它们的教化/插入。

So my question is is it overkill to use a service bus (such as NServiceBus) if I only plan on sending messages locally? Meaning that the service that would be reading emails and the service that parses/inserts emails in the database would reside on the same machine.

谢谢。

最佳回答

是的,这显然是超高技能的,,特别是自N服务业以来。 保证电文按顺序发送。

You can just use a Queue<T>, assuming you know how to get the messages out in order (this appears to be where you are having trouble, not that you are or aren t using a queue or whatever; you have to know how to get the items into the queue in the right order to begin with).

科索沃统计局和日本国际睦邻会每天都在此适用。

问题回答

我只想就你持续存在的问题作一次马上谈。 该公司一旦停机,就保证停机,不管机器失能,或其他一些应用程序坠毁。

The would page I dont t such as. 我认为,使你的系统尽可能灵活,但不影响你可接受的履行(只有你知道)的限度。

总的来说,准备对你认为最坏的营销决定进行准备。

它取决于。 在您的申请中,我同意Jason的意见,即一辆公交车不会帮助你处理电文,这样,当地数据结构就能够做到更多。 正如Jason所说,考虑到服务公共汽车的电传顺序,最有可能是more

然而,用一辆公共汽车在当地发送电文非常有用。 它非常容易地向其他进程发出信息。 由于电文的消费者处于不同的过程,你实际上没有任何令人深.的关切。 电文可以持久,因此,你不必担心会错失的东西,而仅仅增加新用户便更方便地为电文加处理。 作为一种额外奖金,如果该系统变得过于庞大,无法在一台机器上安慰,那么分发公共汽车是微不足道的。

For your solution, it is unnecessary and might even cause issues. But there are cases where it makes sense to use a service bus locally.

这是“零MQ”运作良好的工作类型,而你的副作用是,你学会如何使用一种能够与其他语言和其他平台一起使用的工具。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签