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

  • Home
  • SEARCH
  • 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 8756123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:59:47+00:00 2026-06-13T13:59:47+00:00

Here’s my scenario. During signup for my app – i trigger a few PHP

  • 0

Here’s my scenario. During signup for my app – i trigger a few PHP method calls that are long running (e.g. get UserFriendLikes, etc using OpenGraph API).

I want the methods to run in the background without the user noticing it – and leave the method to complete at its own time.

Whats the best way to acheive it? Does just calling longRunningMethod() from the user signup page work – or is there anything else i need to do to ensure that it is not terminated when user navigates to another page, etc?

  • 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-13T13:59:48+00:00Added an answer on June 13, 2026 at 1:59 pm

    Tim S’ solution above will work but it will be hard to scale. An alternative would be to put the work request in a queue where it will be picked up by a worker program and worked on. In other words, the sign up page can just drop in the queue and then the user can be free to navigate to other pages.

    Have a look at work queues like RabbitMQ Here’s a word from the documentation that describes it and looks like it will help solve your problem:

    The main idea behind Work Queues (aka: Task Queues) is to avoid doing
    a resource-intensive task immediately and having to wait for it to
    complete. Instead we schedule the task to be done later.

    If you don’t want to setup Rabbit MQ on your own, you can try signing up for workers at Iron.io. I think it comes with a free account.

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

Sidebar

Related Questions

Here is my scenario. I have a website running under AppPool1 and that works
Here is the scenario: I'm writing an app that will watch for any changes
Here's what I'm trying to accomplish with this program: a recursive method that checks
Here's my scenario - I have an SSIS job that depends on another prior
Here is what I am currently doing. PHP echo's out the recent post in
Here is the scenario. I'm writing my geo-ruby oracle adapter for Ruby On Rails
Here is the two scripts I have Script 1: <? include('config.php'); $json = $_POST['payload'];
here is my configuration: http://domain.com (obviously fictitious name...) hosted on a server running Apache
here is my php code $titikPetaInti = array(); while($row = mysql_fetch_assoc($hasil2)) { $titikPetaInti[] =
Here is the problem that I am trying to solve. I have two folders

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.