message-queue

Laravel: Synchronisch queue system

末鹿安然 提交于 2019-12-23 09:56:09
问题 I am trying to set up an API which uses a queue system on another server to handle the requests. Let me start what I am trying to accomplish without the queue system (no authorization to keep it simple): Using Postman for example making a GET request to the URL https://example.com/products would return a JSON string like [ { "id": 1, "name": "some name", ... }, { "id": 2, "name": "some other name", ... }. ... ] The code in routes/api.php would be something like: <php Route::get('/products',

Laravel: Synchronisch queue system

霸气de小男生 提交于 2019-12-23 09:55:39
问题 I am trying to set up an API which uses a queue system on another server to handle the requests. Let me start what I am trying to accomplish without the queue system (no authorization to keep it simple): Using Postman for example making a GET request to the URL https://example.com/products would return a JSON string like [ { "id": 1, "name": "some name", ... }, { "id": 2, "name": "some other name", ... }. ... ] The code in routes/api.php would be something like: <php Route::get('/products',

.Net Messaging & STOMP Protocol

爱⌒轻易说出口 提交于 2019-12-23 08:28:08
问题 I have a doubt regarding .net messaging & its compatibility with other open protocols out there. I would like to know if .net messaging API capable of working with STOMP protocol? How do i make use of this protocol? is there any specific library out there I need to use? thanks for sharing your experience and ideas. 回答1: At the root of it, STOMP appears to be TCP-based messaging with its set of commands and control characters. There's nothing in .NET that should give you any doubts about not

What is a good message broker that works with PHP?

↘锁芯ラ 提交于 2019-12-23 04:47:19
问题 I am looking for a message broker (like Apache ActiveMQ for Java) that works with PHP, preferably open-source. Any ideas? 回答1: You can use Stomp (http://stomp.codehaus.org), it has a client for PHP that you can use to communicate with any of the brokers (includes ActiveMQ, http://stomp.codehaus.org/Brokers). There's also Memcacheq (http://memcachedb.org/memcacheq/), there's an example about how to use it on that page. You could also use Apache ActiveMQ and use a library like Zend_Queue (part

Hosting WPF plugin cross-process issue

天大地大妈咪最大 提交于 2019-12-23 02:43:07
问题 I use an approach similar to http://www.codeproject.com/Articles/516431/Baktun-Shell-Hosting-WPF-Child-Windows-in-Another to host WPF applications (plugins) in another process via the AddInHost (derived from HwndHost) class. This works fine so far as long as I don't suspend the child process. If I do so then also the parent process is frozen. The reason for this is that the parent/child processes are sharing the same (synchronous) Input Queue: Good or evil - SetParent() win32 API between

How to pause a Thread's Message Queue in Android?

狂风中的少年 提交于 2019-12-23 02:32:09
问题 I am queuing up a bunch of runnables into a thread via a Handler.post(). I would like the ability to send a note to that thread that it should pause. By pause I mean, finish the runnable or message you are currently working on, but don't go to the next message or runnable in your message queue until I tell you to continue. 回答1: In case anyone else finds their way to this question, I ended up going with a ThreadPoolExecutor, using the example code in it's documentation for creating a

How to pause a Thread's Message Queue in Android?

﹥>﹥吖頭↗ 提交于 2019-12-23 02:32:05
问题 I am queuing up a bunch of runnables into a thread via a Handler.post(). I would like the ability to send a note to that thread that it should pause. By pause I mean, finish the runnable or message you are currently working on, but don't go to the next message or runnable in your message queue until I tell you to continue. 回答1: In case anyone else finds their way to this question, I ended up going with a ThreadPoolExecutor, using the example code in it's documentation for creating a

Error in implementing message queue using redis, error in using BLPOP

人盡茶涼 提交于 2019-12-23 01:28:09
问题 I am trying to build a message queue using Redis. Whenever client sends new data, they are added to a list. Here is the code for it $client->lPush("my_queue", $data); Now there is a separate script slave.php which pops the newly arrived data and process it. The code for slave.php while (true) { list($queue, $message) = $client->brPop(["my_queue"], 0); /* Logic to process the data */ } I have modified the apache startup script so that slave.php should start & stop with apache. It works well.

How to send integer with message queue with POSIX API in linux?

不打扰是莪最后的温柔 提交于 2019-12-22 18:12:59
问题 I try to send integer by msg queue but the function mq_send(mq, &val , sizeof(val), 0); is working for only char type pointer so is there any way to send integer to queue with another function or same function. Regards... 回答1: Do not read the char* in this case as the only allowed datatype. Many *ix API use char as a generic buffer pointer. View the interface therefore as taking a pointer to buffer and the size of the buffer. That buffer can be anything you like, from a single int, to a

Azure Service Bus: transient errors (exceptions) received through the message pump with built-in retry policy. Why?

南楼画角 提交于 2019-12-22 10:53:52
问题 I've been reading on the Event-Driven Message Programming Model introduced in April 2013, the OnMessageOptions.ExceptionReceived Event, the built-in RetryPolicy (May 2013, RetryPolicy.Default), The Transient Fault Handling Application Block (2011) which is outdated, and more (see bottom). I've been monitoring the exceptions received through the message pump for transient errors and I get daily MessagingCommunicationExceptions . This article (Updated: September 16, 2014), recommend the