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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:09:34+00:00 2026-05-14T05:09:34+00:00

I want to build a Java web app and deploy it on EC2 .

  • 0

I want to build a Java web app and deploy it on EC2. It will be written in Java and will use MySQL. I was hoping to get some pointers on the actual deployment process and configuration. In particular I’m interested in the following topics:

  • machine images (DIY vs ready made)
  • mysql replication and backup to S3
  • ways of deploying and redeploying the app to EC2 without interruptions
  • firewalls?
  • load balancing and auto scaling
  • cloudtools (or alternative tools)
  • 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-14T05:09:35+00:00Added an answer on May 14, 2026 at 5:09 am

    I can only speak to a few of your discussion points from experience. I’ve had to strip out hyperlinks to the various Amazon products because I’m new to Stackoverflow and don’t have enough rep to post more than one link.

    Machine Images: While you can certainly start with your own machine image and convert it to an AMI with the EC2 AMI Tools, I prefer starting with one of Amazon’s ready made images and customizing it to suit my needs. The advantage here is that you already know that the base image will deploy, you’re more likely to get help on the forum or from the EC2 staff, and you don’t have to go through the trouble of setting up a physical machine or your own VM in order to bundle the image and upload it. If you’re using the EC2 API Tools, you can get a list of the available base images with ec2-describe-images -o amazon.

    MySQL Replication and Backup: Check out the new(ish) Amazon Relational Database Service. It’s designed to work with MySQL, can perform automatic backups, and scales easily.

    Firewalls: Handling the firewalls for your instances is easy with the API tools. For example, you can create a group,

    ec2-add-group condor –d “Condor Workers”
    

    setup firewall rules for that group (bad example – opens all UDP and TCP ports for a CIDR range),

    ec2-authorize condor -P tcp -p 0-65535 -s 129.127.0.0/16
    ec2-authorize condor -P udp -p 0-65535 -s 129.127.0.0/16
    

    and then launch your instances as part of the group, so that they inherit the firewall rules.

    ec2-run-instances ami-12345678 –g condor –k mykeypair
    

    The tricky part is going the other direction — allowing your EC2 instances to communicate with your company/school/personal network. Since you don’t know what IP your instances will have before they start (Amazon Elastic IP can alleviate this to some extent) you’re generally forced to allow some subnet of the EC2 cloud.

    You can also setup Iptables or additional firewalls on your instances.

    Load Balancing: Consider Amazon Elastic Load Balancing. If that doesn’t suit your needs, you can create your own “virtual cluster” and use whatever framework you like.

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

Sidebar

Ask A Question

Stats

  • Questions 431k
  • Answers 431k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You might want to read about the Entity-attribute-value model. May 15, 2026 at 2:09 pm
  • Editorial Team
    Editorial Team added an answer Updated answer - as the comments from @skaffman and @Stephen… May 15, 2026 at 2:09 pm
  • Editorial Team
    Editorial Team added an answer The technique described in the question is the safe bool… May 15, 2026 at 2:09 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.