beanstalkd

node.js / ruby integration with beanstalkd

◇◆丶佛笑我妖孽 提交于 2019-12-11 10:55:12
问题 This is related to another question specific to payment processing, and that is my example use case, but I was considering trying to integrate node.js and ruby on the same server using beanstalkd. Basically, I want to use node.js as my main web server, but when I need to do some payment processing, I'd like to use something robust and stable like ruby. I was considering trying to use beanstalkd as a way to have node.js queue up payment processing jobs for ruby to perform in the background.

Undefined property: Illuminate\Queue\Jobs\BeanstalkdJob:: $name

那年仲夏 提交于 2019-12-11 10:26:29
问题 I'm using beanstalkd with Laravel to queue some tasks but I'm having trouble to send data to the function that handles the queue , Here is my code //Where I call the function $object_st = new stdClass(); $object_st->Person_id = 2 ; //If I do this: echo($object_st->Person_id); , I get 2 Queue::push('My_Queue_Class@My_Queue_Function', $object_st ); And the function that handle the queue is the following public function My_Queue_Function( $Data ) { $Person_id = $Data->Person_id; //This generate

Unable to reserve a job with beanstalkd

半腔热情 提交于 2019-12-11 08:14:59
问题 I have tried on two different servers to get beanstalkd up and running and do a couple tests (locally on MacOSX compiled from source, and on a CentOS server installed with yum) I can get the server running either with sudo beanstalkd -d -p 11300 or sudo beanstalkd -p 11300 & I then tried using the php lib and it just froze. Connecting directly: telnet localhost 11300 I do the following to mimic the PHP test script: use foo USING foo put 0 0 120 5 hello INSERTED 1 reserve-with-timeout 0 TIMED

Is it possible to run queues working synchronously with Laravel

女生的网名这么多〃 提交于 2019-12-11 06:29:36
问题 I am trying to set up an API system that synchronously communicates with a number of workers in Laravel. I use Laravel 5.4 and, if possible, would like to use its functionality whenever possible without too many plugins. What I had in mind are two servers. The first one with a Laravel instance – let’s call it APP – receiving and answering requests from and to a user. The second one runs different workers, each a Laravel instance. This is how I see the workflow: APP receives a request from

Installing beanstalkd on a shared hosting account at Godaddy

こ雲淡風輕ζ 提交于 2019-12-11 04:23:22
问题 I am trying to install beanstalkd (http://kr.github.io/beanstalkd/download.html) via the Linux Terminal on a shared hosting account at Godaddy . The previous link gives commands that should install beanstalkd on the server. I use SSH (with PuTTy) to access the Linux Terminal. I have practically tried all the commands in the previous link and am consistently obtaining errors like: sudo apt-get install beanstalkd error message: -bash: sudo: command not found brew install beanstalkd error

A queuing system which supports job batching (e.g. several jobs for 1 worker at once)

坚强是说给别人听的谎言 提交于 2019-12-10 20:40:02
问题 I'm looking for a queuing system that could support the following scenario: A client adds a job - to check how many Facebook likes a particular url (URL1) has; A client adds another job - to check the same information for URL2; [....] A worker picks up anything from 1 to 50 jobs (urls) from the queue (e.g., if there's only 5 - it picks up 5, if there's 60 - picks up 50, leaving others for another worker), and issues a request against Facebook API (which allows multiple urls per request). If

Do priorities work across queues/tubes in Beanstalkd?

你。 提交于 2019-12-10 19:25:07
问题 I am a little confused as to whether priorities work at the job or queue/tube level. The reason I ask is that I am using a beanstalkd integration module in Drupal. This module enables one to define queues/tubes and assign a priority value to each queue/tube created. What I am trying to work out is the following. Let's say I have two queues/tubes in Beanstalkd (queue A and queue B). If items assigned to Queue A have a higher priority than items in Queue B, does that mean items in Queue B will

Why is Laravel or Beanstalkd skipping jobs?

大兔子大兔子 提交于 2019-12-10 15:29:53
问题 I'm managing audio conversions with Laravel Queues and beanstalkd , monitored by supervisord . When a user upload an audio file, it goes to AudioController.php that triggers a Queue::push('AudioProcess') , that itself triggers an exec('sh some_script.sh some_audio.mp3') to process the audio and set the application Audio model status to 1 when it's done. I did a bunch of uploads to test, here are the records 1 means the AudioProcess.php worker has been executed and 0 means the AudioProcess.php

Is it ok to use PHP-FPM to manage queue consumers?

不羁的心 提交于 2019-12-08 11:58:15
问题 There's a beanstalkd queue, which gets filled with a lot of tasks say every 10 minutes and it is top priority that each task is processed ASAP. Task can take more that a few milliseconds to complete for there are calls to third-party services, which tend to timeout every now and then. So since PHP doesn't have multithreading, one option would be to create a lot of idle workers, which would try to reserve a task, but it is likely to take too much RAM, which may not be available on those boxes.

How should I read multiple queues, pro rata by user and priority?

限于喜欢 提交于 2019-12-08 10:42:48
问题 I am currently trying to think of ways to replace a MySQL + Cron queuing system with a message queue system (AWS SQS/Beanstalkd/Iron MQ/Redis). Let's say I have 100 users. These users are able to make API requests to me. Each API request is an SMS which I must send via a single modem which I operate. Each SMS can have a priority of 1-3. The problem that I am facing, is that the single modem is a bottleneck, so I can't simply process the queue in a FIFO order, because if one user sends 10,000