首页 \ 问答 \ 队列同步(Queue synchronization)

队列同步(Queue synchronization)

我正在使用Java rabbitmq API。 这是我的应用程序的样子: 在此处输入图像描述

发布者A将作业发送到Q1 ,然后许多消费者B完成工作并创建新作业并将其发送到Q2 ,其中许多消费者C完成工作。

我想确保没有重复的作业发送到Q2 ,我该如何实现?

请记住两种情况:

  1. 在将工作发送到Q2但在向Q1确认他已完成工作之前B崩溃
  2. 在向Q1发送确认但在将作业发送到Q2之前B崩溃

I am working with Java rabbitmq API. This how my app looks like: enter image description here

Publisher A sends jobs to Q1, then many consumers B do the job and create new job and send it to Q2, where many consumer C do the job.

I want to make sure that no duplicated jobs are sent to Q2, how can I achieve this?

Take in mind two scenarios:

  1. B crash after sending job to Q2 but before sending acknowledgment to Q1 that he completed the job
  2. B crash after sending acknowledgment to Q1 but before sending job to Q2

原文:https://stackoverflow.com/questions/39445887
更新时间:2024-04-23 18:04

最满意答案

在我的情况下,没有C:\ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ CONFIG \ machine.config文件。 只有machine.config.default。 所以我复制它并重命名为machine.config。 工作正常 :)


Using commentary from above from @leshy84 the log files showed Error 0x80131902: Failed to run per-user mode.

Researching that then pointed me to http://social.msdn.microsoft.com/Forums/vstudio/en-US/1220584d-2576-4d64-8359-a946ca208041/cant-install-vs-2012-on-win7-enterprise?forum=vssetup and what worked for me was

  1. Remove .Net 3.5 and 4.0 from Programs and Features
  2. Reboot
  3. Re-add .Net 3.5/4
  4. Reboot
  5. Install Update 1

相关问答

更多
  • 为了完整, 关闭并重新打开Visual Studio为我工作后,我改变了时区,并得到了与你一样的错误。 Just to be complete, Closing and reopening Visual Studio worked for me after I had changed the time zone and was getting the same errors as you.
  • 我对这个问题的解决方案的第一个猜测是将用户访问控制设置为最低值。我发现它适用于我。 UPDATE :- I have found these in AppData\Local\ dd_vs_community_20141222103227_097_vc_compilercore86res.log MSI (s) (EC:D0) [10:33:13:227]: Executing op: ActionStart(Name=CreateShortcuts,Description=Creating shortcu ...
  • 有一个名为Export Extensions的扩展 ,用于创建cmd文件,您可以在第二台PC上运行,如果它可以在visual studio库中找到所有下载链接,它将再次下载/安装所有扩展。 此扩展提供了将Visual Studio Extensions的当前列表打包到CMD文件中的功能。 稍后,您只需执行该cmd文件即可在全新安装和其他计算机上下载并安装相同的扩展列表。 安装扩展 转到工具 - >导出扩展 选择CMD脚本的名称和位置 点击“保存” There is an extension called E ...
  • 最低要求是基于您尝试安装的Express版本: Express for Web (Web sites and HTML5 applications) - Windows 7 SP1 (With IE 10) Express for Windows (Windows 8 Apps) - Windows 8.1 Express for Windows Desktop (Windows Programs) - Windows 7 SP1 (With IE 10) Express for Windows Phone ...
  • 目前尚不清楚从哪里获取您的图像(visualstudio.com 或您的MSDN订阅)。 尽管如此,这两个站点都包含Visual Studio的图像下载,包括Update 4.您可以直接在visualstudio.com下载页面上或在MSDN订阅的下载区域中看到它。 It is not clear where do you got your image from (visualstudio.com or from your MSDN subscription). Nevertheless, both sit ...
  • 在我的情况下,没有C:\ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ CONFIG \ machine.config文件。 只有machine.config.default。 所以我复制它并重命名为machine.config。 工作正常 :) Using commentary from above from @leshy84 the log files showed Error 0x80131902: Failed to run per-user ...
  • 事实证明,问题是我已经安装了Redgate Tools的.NET Reflector试用版。 试用期满与我安装Update 1一致。.NET Reflector抛出了NullReferenceException ,从而导致Visual Studio崩溃。 解决方案很简单:禁用或卸载.NET Reflector扩展。 The problem, it turns out, was that I had installed a trial version of Redgate Tools' .NET Reflec ...
  • 这是CUDA 6.0 Release Candidate,它应该支持2013年,现已推出,今年2月发布。 https://developer.nvidia.com/cuda-toolkit 注意 :看起来此版本不支持VS 2013(VC12)编译器。 RC的下一个版本。 下一个CUDA版本将支持VC12编译器,今年夏天可以使用候选版本 来源: https : //devtalk.nvidia.com/default/topic/622306/visual-studio-2013-and-nsight/?of ...
  • 如果在“关于”对话框中看不到更新信息(例如,版本12.0.21005.1 REL),则表示您使用的是RTM版本的VS 2013,没有任何更新。 不过,您可以直接更新到第5版。 If you see no update information in the About dialog (e.g. Version 12.0.21005.1 REL) it means you are using the RTM version of VS 2013 without any updates. You can upda ...
  • 要将TFS 2013与Visual Studio 2010 Service Pack 1一起使用,您需要修补程序: Visual Studio 2010 SP1 Team Foundation Server兼容性GDR (安装在这里,本周早些时候与Visual Studio Online一起使用。请注意它不能用于“本地工作区”,只能用于服务器。) To use TFS 2013 with Visual Studio 2010 Service Pack 1 you need the patch: Visual ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。