beanstalkd

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',

Beanstalk Getting Socket error 110: Connection timed out

不打扰是莪最后的温柔 提交于 2019-12-23 04:11:57
问题 I am using Beanstalk server with Pheanstalk Connection in php application. Previously it was fine, but suddenly it is getting error Critical: Fatal. Socket error 110: Connection timed out Any help would be appreciated. Thanks 回答1: This is a problem at your firewall, you should read the manual or config files of Beanstalk server to find out what port it's using and allow the used ports (default 11300) in your firewall where needed. After this you should never see this error again. If it's

Is laravel queue system suitable for big projects? [closed]

不打扰是莪最后的温柔 提交于 2019-12-22 18:36:15
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 3 years ago . I needed to know if laravel 5 queue management system is suitable for big projects (having about 100.000 users). I want to do something like messaging (not spam :) ) users at once each day. Is redis good enough for this job (queuing)? Or it is better to use a lib that is

Rails: Can I run backgrounds jobs in a different server?

谁说我不能喝 提交于 2019-12-21 05:21:08
问题 Is it possible to host the application in one server and queue jobs in another server? Possible examples: Two different EC2 instances, one with the main server and the second with the queueing service. Host the app in Heroku and use an EC2 instance with the queueing service Is that possible? Thanks 回答1: Yes, definitely. We have delayed_job set up that way where I work. There are a couple of requirements for it to work: The servers have to have synced clocks. This is usually not a problem as

Change max-job size of beanstalkd

限于喜欢 提交于 2019-12-12 19:25:36
问题 Does somebody how to change the max-job size of beanstalkd ? I have the problem that I get the message JOB_TOO_BIG and at Adding Job to beanstalkd, it says that the default size is 65k. Does somebody know how to change that ? EDIT: my beanstalkd init-script in the folder /etc/init.d looks like the following (I added the -z option to increase the job size): #!/bin/sh # # Copyright (c) 2007 Javier Fernandez-Sanguino <jfs@debian.org> # # This is free software; you may redistribute it and/or

Pheanstalk (PHP client for beanstalk) - how do connections work?

房东的猫 提交于 2019-12-12 14:53:23
问题 I'd like some help understanding the use of pheanstalk (php beanstalk client). I have a PHP program that is executed on the server when form data is sent to it. The PHP program should then package the form data as a JSON structure and send it to a backend server process. The thing I don't understand is the connection to the beanstalkd server. Should I create a new Pheanstalk() object each time the PHP program executes - in which case, am I incurring the cost of creating the connection. When

laravel mail queueing - Insufficient data for unserializing

大兔子大兔子 提交于 2019-12-12 03:08:10
问题 I am using Ubuntu laravel 4.2 beanstalked when i try to php artisan queue:work it returns [ErrorException] Insufficient data for unserializing - 1403 required, 218 present mail function (confide package) Mail::queueOn( Config::get('confide::email_queue'), Config::get('confide::email_account_confirmation'), compact('user'), function ($message) use ($user) { $message ->to($user->email, $user->username) ->subject(Lang::get('confide::confide.email.account_confirmation.subject')); } ); 回答1: I came

Disabling E_STRICT errors in CakePHP Beanstalk

こ雲淡風輕ζ 提交于 2019-12-11 19:52:22
问题 After I've upgraded PHP to 5.4, PHP complains about E_STRICT. My VPS has Ubuntu 12.04 installed. It has a lot of .ini-files, and I've changed all error_reporting to: error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT I've also restarted the Apache-webserver. Phpinfo tells me that ~E_STRICT not is blocked (error_reporting => 22527 => 22527) I know: the best option is to change de code. All & references has been removed. In the following list, the log: Strict (2048): Declaration of

Adding Job to beanstalkd

拜拜、爱过 提交于 2019-12-11 12:47:26
问题 I am using Beanstalkd for processing video files via ffmpeg. I am using https://github.com/pda/pheanstalk PHP-Client I am facing the following issues. a) sometimes job is not adding to Beanstalkd Tube, b) if job is added to tube sometimes ffmpeg is not processing as expected. Any idea, Awaiting for reply Thanks in advance Karthi 回答1: There are three scenarios why a job can fail on put: - "EXPECTED_CRLF\r\n" The job body must be followed by a CR-LF pair, that is, "\r\n". These two bytes are