Amazon EC2 (Elastic Compute Cloud) lets you launch and manage virtual servers in the cloud. This guide walks you through setting up a basic EC2 instance on AWS β perfect for beginners!
This practicle demonstrates how to set up a Load Balancer and implement scaling using AWS EC2 instances. The goal is to ensure high availability and distribute incoming traffic across multiple servers.
In this practicle, you will learn:
Before deploying our application on the production server, we checked the code quality of the application using quality profiles (collections of rules) in SonarQube. If the application's code passed the quality gate (a set of metrices or thresholds for bugs, vulnerabilities, code smells, and test coverage) then we proceeded to deployment.
SonarQube server is an open-source platform for continuous inspection of code quality. It performs code analysis to detect bugs, code smells, vulnerabilities, and security issues across multiple programming languages. It integrates seamlessly into CI/CD pipelines and helps developers write cleaner, more maintainable code. SonarQube requires Java software so we also have to configure it.
Make sure you allow the 9000 port as sonarqube server run on 9000 port in Security Group
Whenever we package our application, the build artifact(jar,war,docker images,nuget etc.) is created.
We store the build artifact in the Artifactory Repository Server so that it can be used for other application as dependency.
Ex- A shared logging library.
Sonatype Nexus is an open-source artifact repository manager that allows you to host and manage artifacts like JARs (Maven), NPM packages, Docker images, and more.
π οΈ How to build the java web application using Maven, and how to deploy it on an Apache Tomcat server
It is a compilation process to compile all the source code and package it as a jar or war file. It removes all the uncessary code such as comments and spaces. It make the optimized version of source code.
Maven is aka as Java Build tool, used to build and package the java application as jar or war file. It is also used to manage dependency. Java is required to run maven.