DEV Community

RIDHAM POKIYA
RIDHAM POKIYA

Posted on

Architecting a SaaS from Scratch: The AWS Infrastructure Behind Heeratrack

Over the past few months, I’ve been documenting my technical journey through the #100DaysOfDevOps challenge, diving deep into tools like Terraform, Kubernetes, and AWS Application Load Balancers. Today, I want to share exactly what I am building all this infrastructure for.

I am currently building Heeratrack, a B2B SaaS platform designed to modernize inventory management and worker allocation for the diamond manufacturing industry in Surat, India.

The Architecture Challenge
The diamond industry operates on micro-milligrams and strict security. A dropped database connection or a leaked inventory sheet is unacceptable. Here is how I am approaching the infrastructure:

  1. High Availability with AWS EC2 & Auto Scaling
    We cannot afford downtime during peak trading hours. I am deploying the core backend using Application Load Balancers (ALB) routing traffic to auto-scaling groups of EC2 instances. If traffic spikes, the infrastructure scales horizontally without manual intervention.

  2. Infrastructure as Code (IaC)
    To ensure our environments (Development, Staging, Production) are identical and easily reproducible, I am writing the entire infrastructure using Terraform. This eliminates configuration drift and allows us to tear down or rebuild environments in minutes.

  3. Automated CI/CD Pipelines
    As a two-person team, we need to move fast. I am setting up automated pipelines (using GitHub Actions and Jenkins) so that when my brother pushes a new feature in the MERN stack, it is automatically tested, containerized via Docker, and deployed seamlessly.

Building the infrastructure for a real-world SaaS is the ultimate test of my DevOps skills. In my upcoming posts, I will be breaking down the exact Terraform scripts, Kubernetes manifests, and AWS configurations I am using to build Heeratrack.

Let me know in the comments if you want a deep dive into any specific part of the architecture!
connect with me:
https://github.com/ridhampokiya2110
https://www.linkedin.com/in/ridham-pokiya-b7974a249
https://ridhampokiya.netlify.app/

Top comments (0)