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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:44:49+00:00 2026-06-14T18:44:49+00:00

I have an application which I want to expose as a web service (SaaS).

  • 0

I have an application which I want to expose as a web service (SaaS). The application is CPU intensive and is a multithreaded application which takes good amount of time for the execution(on an average 15-20secs). Since, I want to expose it as a SaaS and want to use existing cloud services available in the market like Amazon, Google App Engine etc. so that the cost involved and the work involved while scaling my service is not much. I have couple of questions in my mind like:

1.) Since the application is multithreaded and the number of threads invoked depends on the number of results thrown by the service(so basically number of threads is a dynamic entity). Right now I have a 6 core processor so I have kept the threadpool size to be 6 but since I am moving onto the cloud, how can I optimally use the cloud infrastructure?

2.) Do the cloud service providers(which?) give the option to select number of CPU cores required for each request (or something similar to serve my purpose)?

3.) What changes are needed in the code (related to the threads)?

4.) Any other specific area which I should give a sight for moving to the cloud?

  • 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-14T18:44:50+00:00Added an answer on June 14, 2026 at 6:44 pm

    In Amazon EC2 you are basically paying for different types of instances – you are free to pick one with only single core and one with sixteen. You get what you pay for.

    how can I optimally use the cloud infrastructure?

    Your approach is fine, if your task is CPU-intenstive, have a thread pool with the same number of threads as CPU cores/CPUs.

    select number of CPU cores required for each request

    No, at least not Amazon. You run your application on a given instance and that’s all you get. You have to pick instance type in advance, but of course you are free to switch between them, add new, etc. at any time. The cloud!

    In Google App Engine you can’t create threads, so it’s a no-option for you. See also: Why does Google App Engine support a single thread of execution only?

    3.) What changes are needed in the code (related to the threads)?

    None. It’s a standard PC, after all.

    4.) Any other specific area which I should give a sight for moving to the cloud?

    Well, see above, some services are completely useless for you, like GAE. Make some research before you actually pay for something.

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

Sidebar

Related Questions

I have to deploy Web service which exposes two methods of java application in
I have an application in which I want to authenticate a user from a
We have created an application which we want to run in a 64 bit
I have a server application which I want to protect from being stopped by
I have an iPhone application which in which I want to perform a method
I have an application in which there is a form which I want to
I have written an application in which I want to convert a .jpg image
I have developed the application in which i want to set the background color
I have a scientific application for which I want to input initial values at
I have a Homework Planner application which I want to create an Alarm for

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.