message-queue

JMS performance

吃可爱长大的小学妹 提交于 2019-12-05 09:57:51
问题 I'm having a bit of trouble with understanding JMS from a performance perspective. We have this very straightforward code in our application: QueueConnection connection = null; QueueSession session = null; QueueSender sender = null; TextMessage msg = null; try { // The JNDIHelper uses InitialContext to look up things QueueConnectionFactory qcf = JNDIHelper.lookupFactory(); Queue destQueue = JNDIHelper.lookupQueue(); // These objects are created for every message, which is quite slow

Message queues vs sockets

二次信任 提交于 2019-12-05 09:33:51
问题 I don't have much of a socket programming experience but I tried read a little about it. I am quite familiar with MDB and messaging queues. Someone has told me that queue(e.g. MDB) is "Not much more than a direct socket connection". Can someone compare these two for me. 回答1: eeeeemph... this someone was very wrong. The two are incomparable, as they live in different layers. It's like saying that "a relational database is not much more than a file on a disk" or "a house is not much more than a

Rules of thumb regarding Messaging / Message Queueing [closed]

大憨熊 提交于 2019-12-05 06:57:52
问题 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 4 years ago . Can someone provide some rules of thumb regarding when to use Message Queueing and what practical real-world problems they are supposed to address? Thanks 回答1: Asynchronous messaging allows systems to communicate in a disconnected manner. It is not necessary for both systems to be

Rabbitmq retrieve multiple messages using single synchronous call using .NET

夙愿已清 提交于 2019-12-05 06:21:17
Is there a way to receive multiple message using a single synchronous call using .NET? I've seen question and I've found java class com.rabbitmq.client.QueueingConsumer , but I haven't found such client class in .NET namespaces (RabbitMQ.Client, RabbitMQ.Client.Events) You can retrieve as many messages as you want using the BasicQoS.PrefetchCount : var model = _rabbitConnection.CreateModel(); // Configure the Quality of service for the model. Below is how what each setting means. // BasicQos(0="Dont send me a new message untill I’ve finshed", _fetchSize = "Send me N messages at a time", false

Possible to send request directly to Amazon SQS from http (javascript client)?

女生的网名这么多〃 提交于 2019-12-05 03:50:32
Is it possible to send a messaging request to Amazon's SQS directly from javascript? I'm trying to create a logging system and would love to bypass sending the request to a middleman server. Also, does anybody know of any alternatives to this solution that I may leverage? randomuser SQS(and as a matter of fact all aws services) expose REST based apis. You can directly make a http request to the SQS REST api through javascript code. The api documentation id given here . Unless you load your Javascript from the same SQS domain as you're trying to send to then no, due the clients/Javascript Same

PHP Inter-process communication to monitor message queue

淺唱寂寞╮ 提交于 2019-12-05 03:44:54
问题 I'm working on a project where I'm generating stats for a leaderboard and several other locations. My goal with this is to have it as real-time as possible, so to that end I have implemented a RabbitMQ server for message queueing. On the frontend, I have a nodejs setup, to feed the information out to the clients who are watching it. On that same server, I have a PHP process to listen to the queue and log the messages to a database for history. What I'm trying to work out now is how to

SQS Messages Not Deleting

我只是一个虾纸丫 提交于 2019-12-05 02:56:14
I have a small set of messages in an SQS queue, that are not deleted even though a deletion request sent to the AWS endpoint returns with a 200 response. The messages are processed by my application fine, and the deletion request is sent fine too. I'm using the Java AWS SDK 1.3.6. Has anyone else experienced this problem? Whoops - the queue was accidentally set to defaultVisibilityTimeout=0 . Changing this to a positive value fixed the problem. This still raises a few questions though: Why did this only affect some messages? Perhaps some took longer to process? Why did Amazon return a 200 for

Killing node with __consumer_offsets leads to no message consumption at consumers

丶灬走出姿态 提交于 2019-12-05 02:53:00
问题 I have 3 node(nodes0,node1,node2) Kafka cluster(broker0, broker1, broker2) with replication factor 2 and Zookeeper(using zookeeper packaged with Kafka tar) running on a different node (node 4). I had started broker 0 after starting zookeper and then remaining nodes. It is seen in broker 0 logs that it is reading __consumer_offsets and seems they are stored on broker 0. Below are sample logs: Kafka Version: kafka_2.10-0.10.2.0 2017-06-30 10:50:47,381] INFO [GroupCoordinator 0]: Loading group

How to create custom message pump?

假装没事ソ 提交于 2019-12-05 01:01:54
问题 I am doing a small exercise where I need to create something akin to a message pump. What I have is a queue of work to do, and I want the work to be done entirely on one thread while any thread can add work to the queue to be done. Queue<WorkToDo> queue; The threads use a wait handle to tell the pump that there is work to do. WaitHandle signal; The pump just loops as long as there is work to do and then waits for the signal to start again. while(ApplicationIsRunning){ while(queue.HasWork){

C#.net best way to queue emails with attachments for sending

放肆的年华 提交于 2019-12-05 00:50:23
问题 I am looking into a way to more securely send emails from our application. We are currently sending emails directly to an IIS SMTP server but are looking at ways to more securely deliver emails if the server goes down, restarts etc. I was thinking a way to implement this would be to store the emails (with attachments) in a queue to be process by a separate process, or store the emails in the database to be then processed. I was wanting to get some advice and any suggestions would be