<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Geekdevopsaws on Medium]]></title>
        <description><![CDATA[Stories by Geekdevopsaws on Medium]]></description>
        <link>https://medium.com/@geekdevopsaws?source=rss-7c60e8a3788------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*80jkvZhr1XWPmAu-QDHFkA.jpeg</url>
            <title>Stories by Geekdevopsaws on Medium</title>
            <link>https://medium.com/@geekdevopsaws?source=rss-7c60e8a3788------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 09:17:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@geekdevopsaws/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[“Building Scalable and Secure 3-Tier Application Hosting on AWS: A Collaborative Project Journey”]]></title>
            <link>https://medium.com/@geekdevopsaws/building-scalable-and-secure-3-tier-application-hosting-on-aws-a-collaborative-project-journey-11dc86b3bb2f?source=rss-7c60e8a3788------2</link>
            <guid isPermaLink="false">https://medium.com/p/11dc86b3bb2f</guid>
            <dc:creator><![CDATA[Geekdevopsaws]]></dc:creator>
            <pubDate>Sun, 23 Jul 2023 16:02:47 GMT</pubDate>
            <atom:updated>2023-07-23T16:02:47.991Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aGkRAr576uqkWtf8e0qnXw.png" /></figure><p>In this project we embarked on developing and deploying a three-tier application on Amazon Web Services (AWS), leveraging the benefits of cloud computing to ensure reliability and innovation while prioritizing security and cost. To guide us through this endeavor, we relied on the expertise shared by Ankit Jodhani’s blog post titled “Building a Resilient Three-Tier Architecture on AWS with Deploying MERN Stack Application.” The link to his blog is as below:</p><p><a href="https://www.showwcase.com/show/35459/building-a-resilient-three-tier-architecture-on-aws-with-deploying-mern-stack-application">Building a Resilient Three-Tier Architecture on AWS with Deploying MERN Stack Application | Showwcase</a></p><p>Before diving into the project, we express our sincere appreciation to Ankit for providing clear and comprehensive instructions, laying the foundation for our exciting journey ahead.</p><h4><strong>Acknowledgement</strong></h4><p>We would like to extend our sincere gratitude to Ankit Jodhani for his insightful and comprehensive blog post that served as a guiding light throughout our journey in building and deploying our three-tier application on AWS. Ankit’s expertise and valuable explanations significantly contributed to the success of our project, and we are truly thankful for his knowledge sharing.</p><p>We also acknowledge and appreciate Resource Cloud Academy for their generosity in lending us their domain name, which played a pivotal role in ensuring easy access and visibility for our application. Their support was instrumental in providing a user-friendly and recognizable domain name, enhancing the overall user experience.</p><p>Furthermore, we express our heartfelt thanks to the AWS Community builder program for providing AWS Credits. These credits were instrumental in fueling our project, enabling us to explore and leverage various AWS services.</p><h4><strong>Introduction</strong></h4><p>On a high level view, a three-tier application is a software architecture pattern that divides an application into three distinct layers, each responsible for specific functionality. This architecture helps to enhance modularity, scalability, and maintainability of the application. The three layers are the presentation layer (Front-end), application layer(Back-end), and data layer(Database).</p><p><strong>Presentation Layer(Front-end)</strong></p><p>The presentation layer is the topmost layer that interacts directly with end users. In a web application, this layer is responsible for rendering the web pages and handling user input. It communicates with the application layer to respond to requests from the end users. The presentation layer consists of technologies like ReactJS, VueJS, and Angular. Its primary goal is to provide a user-friendly interface and send user requests to the application layer.</p><p><strong>Application Layer (Back-end)</strong></p><p>The application layer contains the business logic and acts as an intermediary between the presentation and data layers. It receives requests from the presentation layer, processes them, and interacts with the data layer to retrieve or update information as needed. The application layer is where the majority of the application’s logic resides, such as data validation, calculations, authentication and authorization. It communicates with the presentation layer for displaying results and with the data layer for data storage and retrieval.</p><p><strong>Data Layer (Database)</strong></p><p>The data layer is responsible for managing and storing data used by the application. The data layer ensures data integrity and security while providing the necessary data to the application layer for processing. It handles queries, data storage, and data access operations. Common technologies used in the data layer include database management systems (e.g., MySQL, PostgreSQL, Aurora) and data storage services provided by cloud providers like AWS.</p><p>By separating the application into these three layers, managing and scaling of these layers can be done independently. It also allows for easier maintenance and updates as changes in one layer are less likely to impact the others. Additionally, the three-tier architecture supports the principle of decoupling making the application easier to understand and develop collaboratively among teams with different expertise in front-end, back-end, and the database.</p><h4><strong>A Three-tier Application Diagram with EC2 Instances and RDS MySQL Database</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*iwqqBIdepKCUKbSN6zhbIg.jpeg" /><figcaption>Three-tier Application</figcaption></figure><h4><strong>Illustration</strong></h4><p>In this blog we did not delve into a step-by-step procedure for implementing such an architecture. If interested in the step-by-step procedure kindly visit Ankit’s blog as illustrated above.</p><p>We utilized a variety of AWS services to deploy our three-tier application effectively. We started by using EC2 instances to host different components of the application, including the bastion host, front-end server, and back-end server. The bastion host served as a secure entry point for managing and accessing other instances in the private network. The front-end and back-end servers were hosted on separate EC2 instances leveraging Auto-scaling groups to ensure scalability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N-o2yJLcAxY73x5gtAfENA.png" /><figcaption>EC2 Instances</figcaption></figure><p>To distribute incoming traffic efficiently and maintain high availability, we employed two Application Load Balancers (Front-end and Back-end ALBs). The ALBs evenly distributed traffic across multiple EC2 instances in Auto-scaling groups, ensuring optimal performance and preventing any single point of failure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*awNyTnEUbpIwx0N4Ct2GEg.png" /><figcaption>Application Load Balancers</figcaption></figure><p>Target Groups are an essential component of AWS Elastic Load Balancing, which plays a crucial role in distributing incoming traffic across multiple instances within an Auto Scaling group. Target Groups are used primarily with Application Load Balancers (ALB) and Network Load Balancers (NLB) to route requests to registered targets based on specific criteria. In this project we used target groups with ALBs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8ULCoht597BL9LjrSv4qjQ.png" /><figcaption>Target Groups</figcaption></figure><p>For database management, we opted for Amazon RDS (MySQL), which is a fully managed native AWS service. This allowed us to store and manage our application data securely and efficiently, offloading the burden of database administration tasks. To enable easy access to our application, we utilized Amazon Route 53 for domain registration and DNS management, ensuring that users could reach our application using a user-friendly domain name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AEDlr60uTtLKUeDv4DeKjQ.png" /><figcaption>RDS</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zfwbTfAnY-6QSl7Tf_rvtw.png" /><figcaption>Amazon Route 53</figcaption></figure><p>To improve content delivery speed and reduce latency, we integrated Amazon CloudFront, a global content delivery network (CDN). CloudFront caches and serves static content from edge locations closer to users, reducing server load and improving overall application performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_FFjnEgnokJ-5BXhODsYzQ.png" /><figcaption>CloudFront</figcaption></figure><p>As security is a top priority, we leveraged several AWS services to protect our application and data. We implemented AWS Web Application Firewall (WAF) to safeguard against common web application attacks, ensuring our application was protected from potential threats. Additionally, we configured Security Groups to control inbound and outbound traffic for our EC2 instances, restricting access to only necessary ports and protocols.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cUgz-HsMGDH7q9VFRbrWRg.png" /><figcaption>Security Groups</figcaption></figure><p>To isolate our application’s network environment, we set up a Virtual Private Cloud (VPC), providing a logically isolated space within AWS. The VPC allowed us to define and manage our network settings, ensuring a secure and private environment for our application components.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JKYsLtMdFMfpF27qHGjbYQ.png" /></figure><p>In summary, our deployment of the three-tier application on AWS involved the strategic use of various services. EC2 instances hosted the bastion host, front-end, and back-end, while the Application Load Balancer ensured even distribution of traffic. Autoscaling groups dynamically adjusted the number of instances based on demand. Amazon RDS offered a managed database solution, and Route 53 enabled easy access to our application with a domain name. CloudFront improved content delivery speed, and WAF and Security Groups enhanced application security. Lastly, the VPC provided a secure and isolated network environment for our application’s components. By carefully selecting and configuring these services, we achieved a reliable and scalable deployment of our three-tier application on AWS.</p><h4><strong>Cost Optimization</strong></h4><p>In this project, we adopted a prudent “start small” approach to cost optimization when deploying our services on the cloud. By carefully managing our resources and making informed decisions about usage, we ensured that our initial deployment was both efficient and cost-effective. This approach allowed us to control expenses during the development focusing on essential components while keeping unnecessary expenditures in check. As a result, we were able to maintain a balanced cost structure while delivering a reliable and scalable solution.</p><p>In an organizational context, the “start small” cost optimization approach holds significant benefits. When deploying services into production, the solution can be right-sized based on real-world usage patterns and performance demands. This iterative approach to cost optimization empowers organizations to optimize their cloud spending over time, aligning with actual usage and scaling needs while maximizing return on investment and delivering optimal performance to end-users.</p><p>AWS pricing calculator link:</p><p><a href="https://calculator.aws/#/estimate?id=4a2964e96b56ba174f1c31d0ab52b6da39ba3b9d">AWS Pricing Calculator</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DNiJ8v3UspDCuvr-oeAyuQ.png" /><figcaption>AWS Pricing Calculator</figcaption></figure><p>Link to our video illustration of the application in action.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FwUzf4yXAIZk%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DwUzf4yXAIZk&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FwUzf4yXAIZk%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/04acee717f30bb365c6c1ae9ee1d4504/href">https://medium.com/media/04acee717f30bb365c6c1ae9ee1d4504/href</a></iframe><h4><strong>Conclusion</strong></h4><p>In conclusion, building and deploying the three-tier application on Amazon Web Services (AWS) has been an immensely rewarding journey. The adoption of the three-tier architecture allowed us to create a well-organized and scalable application, promoting modularity and separation of concerns. Leveraging the power of AWS services, such as EC2 instances, Application Load Balancer, Auto Scaling group, RDS, Route 53, CloudFront, WAF, Security Groups, and VPC, we were able to construct a robust and reliable foundation for our application.</p><p>One of the most gratifying aspects of this project was the collaborative experience. Working together on the various aspects of the application, each member brought their unique expertise to the table. Through open communication and the exchange of ideas, we tackled challenges effectively, making informed decisions about resource utilization, cost optimization, and security implementations. The synergy between members enhanced our problem-solving capabilities and fostered an environment of continuous learning.</p><p>Collaborating on this project also provided a valuable opportunity to share knowledge and best practices. As we navigated through the intricacies of AWS services and the complexities of the three-tier architecture, we gained valuable insights from each other’s experiences and discoveries. This collaborative learning process not only strengthened our technical skills but also nurtured a culture of mutual support and encouragement💪.</p><p>Moreover, the shared sense of accomplishment was truly uplifting. Witnessing the successful deployment of our three-tier application was a testament to the power of collaboration and effective teamwork🥳. The project’s success was a reflection of our collective efforts, where each member’s contributions was instrumental in achieving the desired outcome.</p><p>In conclusion, building and deploying the three-tier application on AWS was not just a technical achievement but also a celebration of teamwork and collaboration. The experience of working together with other skilled individuals, sharing insights, and collectively solving challenges made this journey truly great and rewarding. As we continue to evolve the application and expand our knowledge, the lessons learned from this collaborative endeavor will undoubtedly pave the way for future successes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11dc86b3bb2f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>