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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:26:51+00:00 2026-06-06T04:26:51+00:00

I am looking to build a web application which needs to run resource-intensive MCMC

  • 0

I am looking to build a web application which needs to run resource-intensive MCMC (Markov chain Monte Carlo) calculations on-demand in R to generate some probability graphs for the user.

Constraints:

  1. Obviously I don’t want to run the resource-intensive calculations on the same server as the web app front-end, so these tasks need to be handed off to a worker instance.

  2. These calculations take a good amount of CPU to run and I’d like to keep latency as low as possible (hopefully seconds, not minutes), so I would prefer to run the calculations on beefier hardware.

  3. I cannot afford to run a beefy EC2 instance at ~66¢/hr x 24hrs/day, so on-demand or spot request instances are probably necessary.

Here are the options I’ve come up with:

  1. Run a cheap, affordable worker instance 24hrs a day which takes
    one task at a time managed by Amazon SWF (or SQS).

    Cons:

    • high latency – Cheaper hardware, longer wait times.
  2. Spawn a beefier worker instance per-task (spun up whenever a job
    is added to the queue) and terminate the instance upon completion.

    Cons:

    • expensive/wasteful – I’d be paying for an hour on the server
      each time and only using seconds for my calculation

    • startup overhead – Would spinning up a new EC2 instance
      on-demand introduce non-negligible latency (offsetting the
      whole purpose of utilizing beefier hardware)?

  3. Like #2 but with low-bid EC2 spot requests.

    Cons:

    • startup overhead – See #2
    • inconsistancy? – I’ve never worked with spot requests before,
      so I have no idea how volatile or hands-on such a solution
      would be… do I have to continually adjust my bids to make
      sure I can still get tasks done at peak hours? Also, I suppose
      I’d have to monitor my processes closely to make sure they aren’t
      interrupted mid-calculation.

  4. Some kind of hybrid solution where I actively monitor
    beefy-hardware worker instances and their loads and intelligently
    spin up and terminate instances on the hour to maintain an optimal
    balance of cost and availability

    Cons:

    • complicated and costly setup – Unless there’s a good managed
      service out there to handle stuff like this, I’d have to set all
      all of that infrastructure up myself…

I wish there was some service where I could pay for a highly-available on-demand hardware on a minute to minute basis rather than hourly.

So my questions are the following:

  • How would you recommend solving this problem?

  • Is there a good EC2 instance managing solution that could sit on top of Amazon SWF and help me load balance and terminate idle workers?

  • Would spot-request bids solve my problem or are they more suited to tasks which don’t necessarily need to be completed right away?

  • 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-06T04:26:55+00:00Added an answer on June 6, 2026 at 4:26 am

    There’s another option that you may not be aware of. I actually just stumbled upon it: http://multyvac.com

    I have no experience using it (so I can’t vouch for it), but it looks like the first solution I’ve seen that actually offers true “utility computing”. It began with just Python but now supports any language.

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

Sidebar

Related Questions

I am building a web application which allows visitors of a site to custom-build
I've been asked to build a module for a web application, which will also
I am tasked to build a web 2.0 style mashup application which consumes a
I'd like to build a multiplayer web game application in which it supports chat.
I need to build an application which will run on OS X, polling for
I want to build a web application which basically is a restful web-service serving
I'm looking to build a tree-like structure for my Java application. I've tried using
I'm looking to build a custom view of a Google Maps type of application
I am looking to build a very simple GUI for a C++ application. Fancyness,
I am looking to build an application where the user will have the ability

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.