Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8647087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:58:42+00:00 2026-06-12T12:58:42+00:00

I am considering using Gearman for processing jobs off a MySQL table jobs_queue and

  • 0

I am considering using Gearman for processing jobs off a MySQL table jobs_queue and marking their state as locked in a way that a job does not gets taken twice (which is happening right now).

Question: In the above scenario, a job can take 10 seconds to be completed, and I want a new job to start processing every 2 seconds (to achieve some form of rate-limiting). Currently, the server that retrieves the jobs from the table is also the same machine that is processing the job.

Is gearman suitable for doing job queueing as described? The client will be creating jobs that will be done by itself (multiple workers on the same machine).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T12:58:43+00:00Added an answer on June 12, 2026 at 12:58 pm

    Yes it is but instead of having a MySQL list of jobs you could directly send the jobs to the Gearman job server. This means you will not have to ‘lock’ jobs.

    You can have multi workers running the same job.

    If you do it the way I have said your workers that create more work will need to use gearmam do background, otherwise it will end up in a dead loop.
    http://www.php.net/manual/en/gearmanclient.dobackground.php

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm considering using a TVar to store some state in a web application (that
I'm considering using the Google Contacts API for a webapp, but I'm worried that
I'm considering using MongoDb for a backing store for a WPF app that I'm
I'm considering using mysql's built-in aes_encrypt . I normally use blowfish, but mysql doesn't
I am considering using pdf.js (an open source tool that allows embedding of a
I am considering using Firebase for an application that should people to use full-text
We are considering using PhoneGap for an iPad application that we are developing. We
I am considering using class extension as a way to connect my model with
I am considering using the WebMail helper for sending email. Is there any way
I'm considering using GIT or our family photos. The scenario is that both me

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.