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 7041295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:01:28+00:00 2026-05-28T02:01:28+00:00

Given a simple web application running on AWS Elastic Beanstalk (i.e. 1..n identical instances

  • 0

Given a simple web application running on AWS Elastic Beanstalk (i.e. 1..n identical instances behind a load balancer), how can I have a scheduled background operation that runs on one instance only?

I do have a cron-like scheduling mechanism within the web application, and could use e.g. AWS Simple Queue Service to queue tasks (and ensure that each task is executed just once). But how do I ensure that only one instance creates the tasks (to avoid duplicates)?

Obviously, I could have a dedicated instance that is in charge of creating tasks, but I’m looking for a more dynamic mechanism that lets one of the normal instances take on that role automatically. Any ideas?

  • 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-05-28T02:01:29+00:00Added an answer on May 28, 2026 at 2:01 am

    Looks like this could be accomplished using Hazelcast: Only the oldest node in the cluster (can be determined through the API) creates and queues tasks.

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

Sidebar

Related Questions

I am developing a small, internal-use only web application. Given its simple nature and
I have a simple Google maps web application I'm working on. I have purchased
I have web application running with a default impl of a backend service. One
Given a simple namespaced route map.namespace :api do |api| api.resources :genres end how can
I have a web application that creates directories. The application works fine when creating
I'm building a perl application to archive simple web pages (i.e. static pages with
I have a web application that shows a users all of their data bucketed
We have a Java web application and we'd like to set up some basic
I'm running a fairly large web application which contains an increasing amount of JQuery
I'm attempting to create a simple web application for some personal development, but I've

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.