message-queue

Rabbitmq Ack or Nack, leaving messages on the queue

纵饮孤独 提交于 2019-11-29 02:26:20
I have been playing around with RabbitMq.net and the message acknowledgements. If the consumer is able to process the message you can send back an ack in the form of channel.BasicAck(ea.DeliveryTag, false); which will take it off the queue. But what about if the message was unable to be processed ? maybe a temporary outage and you don't want the message taken off the queue just put to the back and carry on with the next message? I have tried using channel.BasicNack(ea.DeliveryTag, false, true); but the next time round its still getting the same message and not moving to the next message in the

Why do operating systems limit file descriptors?

人盡茶涼 提交于 2019-11-29 02:17:53
问题 I ask this question after trying my best to research the best way to implement a message queue server. Why do operating systems put limits on the number of open file descriptors a process and the global system can have? My current server implementation uses zeromq, and opens a subscriber socket for each connected websocket client. Obviously that single process is only going to be able to handle clients to the limit of the fds. When I research the topic I find lots of info on how to raise

Busy Application leads to false “Not responding” state on Windows 7 - WM_UPDATE

不打扰是莪最后的温柔 提交于 2019-11-29 02:09:58
During long term operations our C++ Win32 application shows a modal status dialog with a process bar, which is updated irregular every few seconds or so. Starting with Windows 7 we realized that Windows quite soon shows a message " seems to hang..." and/or appends "Not responding" to our window title bar. We figured out that the process dialog must handle messages to avoid this. More specifically it seems that Windows 7 is constantly sending WM_UPDATE messages to check if our program is alive. We formerly had disabled all unneeded message handling in this dialog as profile runs shows that they

How to peek into a Linux (POSIX) message queue without removing an item?

笑着哭i 提交于 2019-11-29 01:34:40
I need to peek into a message queue without removing them. I will go ahead and remove the message queue item only if it complies to certain criteria. How to do this? Following are the APIs I know — but none seems support peeking. mq_close() — close a message queue mq_getattr() — get the current attributes of a message queue mq_notify() — notify the calling process when the queue becomes nonempty mq_open() — open or create a message queue mq_receive() — receive a message from a queue mq_send() — put a message into a message queue mq_setattr() — set the flags for a message queue mq_unlink() —

Is this the right way to use a messaging queue?

只愿长相守 提交于 2019-11-29 01:27:49
I am new to messaging queues, and right now I am using ZeroMQ on my Linux server. I am using PHP to write both the client and the server. This is mainly used for processing push notifications. I am using the basic REQ - REP Formal-Communication Pattern on single I/O-threaded ZMQContext instances, as they have demonstrated. Here is the minimised zeromqServer.php code: include("someFile.php"); $context = new ZMQContext(1); // Socket to talk to clients $responder = new ZMQSocket($context, ZMQ::SOCKET_REP); $responder->bind("tcp://*:5555"); while (true) { $request = $responder->recv(); printf (

Message Queue Error: cannot find a formatter capable of reading message

左心房为你撑大大i 提交于 2019-11-29 01:04:42
I'm writing messages to a Message Queue in C# as follows: queue.Send(new Message("message")); I'm trying to read the messages as follows: Messages messages = queue.GetAllMessages(); foreach(Message m in messages) { String message = m.Body; //do something with string } However I'm getting an error message which says: "Cannot find a formatter capable of reading this message." What am I doing wrong? macleojw I solved the problem by adding a formatter to each message. Adding a formatter to the queue didn't work. Messages messages = queue.GetAllMessages(); foreach(Message m in messages) { m

Use of messaging like RabbitMQ in web application?

ぃ、小莉子 提交于 2019-11-28 23:36:37
问题 I would like to learn what are the scenarios/usecases/ where messaging like RabbitMQ can help consumer web applications. Are there any specific resources to learn from? What web applications currently are making use of such messaging schemes and how? 回答1: In general, a message bus (such as RabbitMQ, but not limited to) allows for a reliable queue of job processing. What this means to you in terms of a web application is the ability to scale your app as demand grows and to keep your UI quick

Strategy to implement a scalable chat server

泪湿孤枕 提交于 2019-11-28 22:59:22
问题 I am looking to implement some sort of chat server. And I want it to scale. This seems like a big question, so I guess I expect the answers to be direction pointers, sort of exploratory. The end-user clients are web or phone client. I think some sort of websocket implementation, such as Socket.IO is nice. On the server side I wish to use Node.js. I want the architecture to be scalable so that the number of users are not limited (well, within reason, the chance of big hit is not expected, and

Disadvantages of SQL Server Service Broker [closed]

五迷三道 提交于 2019-11-28 22:37:06
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I have been doing r&d for the scope of SQL Server Service Broker to replace current messaging solution MSMQ. I want to know disadvantages of SQL Server Service Broker in contrast to MSMQ for following criteria. Development Troubleshooting Performance (let's say we need to process

Good Strategy for Message Queuing?

倖福魔咒の 提交于 2019-11-28 19:22:58
问题 I'm currently designing an application which I will ultimately want to move to Windows Azure. In the short term, however, it will be running on a server which I will host myself. The application involves a number of separate web applications - some of these are essentially WCF services which receive data, and some are sites for users to manage data. In addition, there will need to be a worker service running in the background which will process data in various ways. I'm very keen to use a