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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T22:12:40+00:00 2026-06-16T22:12:40+00:00

I have to setup a server environment for a web application. I have to

  • 0

I have to setup a server environment for a web application. I have to use aws, and so far it looks good for that purpose.

I need:

  • a scalable Tomcat 7 webapp server
  • session replication!
  • a mongodb database cluster(?)

As far as I think it could work with:

  • The scalable Tomcat 7 I can do easily with elastic beanstalk.
  • The session replication could work with elasticache
  • It seems like I have todo the mongodb cluster “manually”, so I created some ec2 instances todo so.

I have some problems with that.

  1. the costs would be quite high. The minimum setup would be 2 ec2 instances and one for the elasticache
  2. The only thing, which autoscales, is the elastic beanstalk, means that I have to take care of that, too. (Well, for the mongodb instances, I could use a balancer, too)
  3. In case of the mongodb ec2 instances, I need to setup each instance by myself

Do you have any idea how to:

  • lower the costs (Especially in the beginning, it would be a little much, no?)?
  • make the administration easier?
  • 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-16T22:12:41+00:00Added an answer on June 16, 2026 at 10:12 pm

    Autoscaling for your web server is easily done with Elastic Beanstalk, but you can use it independently. Check out the documentation for autoscaling here: http://aws.amazon.com/autoscaling/

    It has couple of features that will help you save most of your computation costs;

    • one is the ability to scale out (and most importantly in), by changing automatically the number of web server you are using, based on your load. You can define the minimum number (for example, 1) and the maximum number. The system can watch a set of metrics (number of requests, CPU load…) and decide when to add or subtract instances.
    • the second is the ability to change the scale policy and increase or decrease the size of the machines, based on your usage. You can use medium size instances and switch to large or extra large ones, if you find it more cost effective. You are encourage to try out different sizes to see what fits you best.

    Using Elastic Cache, can help you both in the session replication, but also to lower the load on your DB machine. You can cache there your frequent queries output (front page, main category page…), and get better performance, and use fewer DB instances. It supports Memecached clients, which makes it very easy to develop in almost any programming language.

    You should check Couchbase instead of MongoDB (see comparison). It is more robust and more reliable in scale.

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

Sidebar

Related Questions

I have a web application that is working fine under the following environment GWT
I have a setup a SQL Server instance that I can see from all
I have an ASP.NET Web Application project that used to target ASP.NET 2.0. I
I have the following environment set up: Java 1.5 Sun Application Server 8.2 Oracle
I am using DWR for one of my application. I have setup the environment
I have a Tomcat v7.0 server setup in my eclipse (helios) environment which I
we have asp.net web application and we need to support automatic login using domain
I have a .NET 2.0 ClickOnce application that runs in a corporate environment and
I have a mixed MVC and Web Forms environment that works just fine in
We have some web content that is setup in virtual directories using integrated windows

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.