<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Inzamam Virk</title>
    <description>The latest articles on DEV Community by Inzamam Virk (@inzamam_virk).</description>
    <link>https://dev.to/inzamam_virk</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1723432%2Fb978d4a2-90ed-4b20-be1c-55e8585de811.jpg</url>
      <title>DEV Community: Inzamam Virk</title>
      <link>https://dev.to/inzamam_virk</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/inzamam_virk"/>
    <language>en</language>
    <item>
      <title>Modern Engineers Can’t Afford to Be “Just Developers” Anymore.</title>
      <dc:creator>Inzamam Virk</dc:creator>
      <pubDate>Sat, 13 Dec 2025 07:16:55 +0000</pubDate>
      <link>https://dev.to/inzamam_virk/modern-engineers-cant-afford-to-be-just-developers-anymore-50d8</link>
      <guid>https://dev.to/inzamam_virk/modern-engineers-cant-afford-to-be-just-developers-anymore-50d8</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7fncu3stpm21jlubwl2z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7fncu3stpm21jlubwl2z.png" alt=" " width="800" height="572"&gt;&lt;/a&gt;&lt;br&gt;
There was a time when being a solid frontend or backend developer was enough.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Write code → ship a feature → done.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That era is fading.&lt;/p&gt;

&lt;p&gt;Today, the engineers who truly stand out aren’t just good at writing code — they understand &lt;strong&gt;how their code survives in the real world&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;That means thinking beyond the editor and into questions like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How does this app get deployed?&lt;/li&gt;
&lt;li&gt;What happens when traffic spikes?&lt;/li&gt;
&lt;li&gt;How do services communicate with each other?&lt;/li&gt;
&lt;li&gt;How do we keep things reliable under load?&lt;/li&gt;
&lt;li&gt;How do we secure systems properly?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You don’t need to become a full-time DevOps engineer —&lt;br&gt;
but &lt;strong&gt;ignoring DevOps thinking is no longer an option&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  🥷 A real example from my recent work
&lt;/h2&gt;

&lt;p&gt;I recently set up &lt;strong&gt;n8n&lt;/strong&gt; in a &lt;strong&gt;full production environment&lt;/strong&gt; — not on a single VPS, but on &lt;strong&gt;Kubernetes&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;That immediately pushed me far beyond “just running a server.”&lt;/p&gt;

&lt;p&gt;I had to think about:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Configuring &lt;strong&gt;Redis queues&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Using a &lt;strong&gt;managed PostgreSQL&lt;/strong&gt; database&lt;/li&gt;
&lt;li&gt;Setting up &lt;strong&gt;domains &amp;amp; SSL&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Handling &lt;strong&gt;Ingress routing&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Deploying &lt;strong&gt;workers&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Performing &lt;strong&gt;load testing&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Making sure everything stayed stable under real traffic&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And here’s the interesting part:&lt;/p&gt;

&lt;p&gt;👉 The biggest breakthroughs &lt;strong&gt;weren’t about code at all&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;They came from understanding:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;system design&lt;/li&gt;
&lt;li&gt;reliability&lt;/li&gt;
&lt;li&gt;operational trade-offs&lt;/li&gt;
&lt;li&gt;and how things fail in production&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🧠 That’s the real shift
&lt;/h2&gt;

&lt;p&gt;Modern engineering isn’t just about writing clean logic.&lt;/p&gt;

&lt;p&gt;It’s about &lt;strong&gt;building systems that scale, survive, and keep running&lt;/strong&gt; — even when reality gets messy.&lt;/p&gt;

&lt;p&gt;The more we understand the &lt;strong&gt;full lifecycle&lt;/strong&gt; of what we build, the more valuable we become.&lt;/p&gt;

&lt;p&gt;Because companies don’t just need features.&lt;/p&gt;

&lt;p&gt;They need &lt;strong&gt;systems that don’t fall apart&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>devops</category>
      <category>kubernetes</category>
      <category>career</category>
      <category>softwaredevelopment</category>
    </item>
    <item>
      <title>Why Infrastructure-as-Code Isn’t Optional Anymore</title>
      <dc:creator>Inzamam Virk</dc:creator>
      <pubDate>Sun, 23 Nov 2025 14:20:37 +0000</pubDate>
      <link>https://dev.to/inzamam_virk/why-infrastructure-as-code-isnt-optional-anymore-235j</link>
      <guid>https://dev.to/inzamam_virk/why-infrastructure-as-code-isnt-optional-anymore-235j</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8ebi73mjo5pwuv6elpf9.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8ebi73mjo5pwuv6elpf9.jpg" alt=" " width="800" height="462"&gt;&lt;/a&gt;&lt;strong&gt;🚀 Why Infrastructure-as-Code Isn’t Optional Anymore&lt;/strong&gt;&lt;br&gt;
We’re past the era where clicking around the AWS console counts as “building infrastructure.” It might work for a demo or a one-off experiment, but when you’re dealing with real systems—whether microservices or even monolithic architectures—&lt;br&gt;
👉 manually setting up infrastructure is simply not a good practice anymore.&lt;br&gt;
Here’s why 👇&lt;br&gt;
1️⃣ &lt;strong&gt;Terraform (IaC tool) gives you something the console never will: predictability.&lt;/strong&gt;&lt;br&gt;
Infrastructure defined as code is versioned, reviewable, testable, and reproducible.&lt;br&gt;
 You always know what you are deploying and why something changed.&lt;br&gt;
No surprises.&lt;br&gt;
 No drift.&lt;br&gt;
 No “who created this IAM role?” moments.&lt;br&gt;
2️⃣ &lt;strong&gt;Manual infra breaks the moment you need a second environment.&lt;/strong&gt;&lt;br&gt;
Staging? QA? Dev?&lt;br&gt;
 Manually recreating environments is a recipe for inconsistencies and late-night debugging.&lt;br&gt;
With Terraform:&lt;br&gt;
 terraform apply → identical environments, anywhere, anytime.&lt;br&gt;
3️⃣** IaC is the foundation of real DevOps.**&lt;br&gt;
CI/CD pipelines become cleaner.&lt;br&gt;
 Teams deploy faster.&lt;br&gt;
 Rollback becomes safer.&lt;br&gt;
 Changes become auditable.&lt;br&gt;
Infra becomes part of the development workflow, not a set of hidden configurations no one wants to touch.&lt;br&gt;
4️⃣ &lt;strong&gt;Modern architectures demand automation.&lt;/strong&gt;&lt;br&gt;
When your system involves:&lt;br&gt;
ECS Fargate workloads&lt;br&gt;
Next.js frontend containers&lt;br&gt;
Backend APIs&lt;br&gt;
Workers&lt;br&gt;
MongoDB Atlas, S3, SES&lt;br&gt;
CloudFront, Route53, ALB, CloudWatch&lt;br&gt;
GitHub Actions → ECR → CodeDeploy&lt;br&gt;
…you simply can’t afford manual configuration.&lt;br&gt;
 There are too many moving pieces. Automation becomes survival.&lt;br&gt;
5️⃣ &lt;strong&gt;Terraform future-proofs your engineering team.&lt;/strong&gt;&lt;br&gt;
People come and go.&lt;br&gt;
 Terraform stays.&lt;br&gt;
 It becomes a source of truth that outlives team changes, memory gaps, and undocumented console clicks.&lt;br&gt;
6️⃣ &lt;strong&gt;If the architecture grows, your IaC grows with it.&lt;/strong&gt;&lt;br&gt;
Scaling the system I designed would be painful without Terraform:&lt;br&gt;
 auto-scaling policies, ALB rules, ECS task definitions, IAM boundaries—&lt;br&gt;
 all must evolve together.&lt;br&gt;
Terraform gives you the confidence to scale without fear.&lt;/p&gt;

&lt;p&gt;Would love to hear your thoughts?&lt;/p&gt;

</description>
      <category>terraform</category>
      <category>aws</category>
    </item>
    <item>
      <title>Make your application loosely coupled-Abstraction-PolyMorphism</title>
      <dc:creator>Inzamam Virk</dc:creator>
      <pubDate>Tue, 16 Jul 2024 02:35:58 +0000</pubDate>
      <link>https://dev.to/inzamam_virk/make-your-application-loosely-coupled-abstraction-polymorphism-4349</link>
      <guid>https://dev.to/inzamam_virk/make-your-application-loosely-coupled-abstraction-polymorphism-4349</guid>
      <description>&lt;p&gt;While developing an application it's mandatory to keep components independent from each other, this is what loose coupling is. It provides standardization, consolidation, normalization, and governance over your application. A loosely coupled application is easy to scale up. &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;In this article: You will learn with an example, how to make your application loosely coupled and get the maximum out of it.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Need of Loose Coupling:
&lt;/h2&gt;

&lt;p&gt;Let's say you are fetching something from your &lt;strong&gt;&lt;em&gt;UserDatabase&lt;/em&gt;&lt;/strong&gt; database, here is the data-layer defined function to fetch database records:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
public class UserDatabase {
    public String getUserDetails(){
        return "User Deatils ";
    }
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In our service layer, let's create a function to talk to our data layer in order to fetch records:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
public class UserDatabase {
    public String getUserDetails(){
        return "User Details in DB1";
    }
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In our application layer or main function we will talk to our service layer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public static void main(String[] args) {
        //Tight Coupling
        UserManager userManager = new UserManager();
        System.out.println(userManager.getUserInfo());
    }

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this application, when we try to scale up our application, tight coupling will make it redundant and hard to expand. &lt;br&gt;
That's why a loosely coupled application is so important, In spring boot we achieve it using interfaces. Let's make the above app loosely coupled. &lt;/p&gt;
&lt;h2&gt;
  
  
  Loose Coupling:
&lt;/h2&gt;

&lt;p&gt;Let's define an interface that will give us an overall structure for the data layer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public interface UserDataProvider {
    String getUserDetails();
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now fetch database records while implementing this interface:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public class UserDatabase implements UserDataProvider{
    @Override
    public String getUserDetails(){
        return "User Details in DB1";
    }
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now define the service layer to communicate with the data layer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public class UserManager {
    private UserDataProvider userDataProviderr;
    public UserManager(UserDataProvider userDataProvider) {
        this.userDataProviderr = userDataProvider;
    }

    public String getUserInfo(){
        return userDataProviderr.getUserDetails();
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here while injecting a &lt;em&gt;UserDataProvider&lt;/em&gt; reference object into &lt;em&gt;UserManager&lt;/em&gt; we will be able to access the &lt;em&gt;UserDatabase&lt;/em&gt; function which implements that interface so it will provide us abstraction at the level of the data layer.&lt;/p&gt;

&lt;p&gt;Now we can access records through &lt;em&gt;UserManager&lt;/em&gt; :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    UserDataProvider userDataProvider = new UserDatabase();
        UserManager userManager = new UserManager(userDataProvider);
        System.out.println(userManager.getUserInfo());

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We can easily scale up our application and integrate as many database connections as we want like if we need to configure another database for example &lt;em&gt;WebServerDatabase&lt;/em&gt;, we only need to create its instance assigned to the implemented interface, and then through &lt;em&gt;UserManager&lt;/em&gt; we can access that too. Using an interface provides us Abstraction, loose coupling, and PolyMorphism(implementing the same interface by different classes provides us polymorphism).&lt;/p&gt;

&lt;p&gt;Happy Coding :)&lt;/p&gt;

</description>
      <category>java</category>
      <category>webdev</category>
      <category>oop</category>
      <category>springboot</category>
    </item>
    <item>
      <title>Running Python script with aws lambdas</title>
      <dc:creator>Inzamam Virk</dc:creator>
      <pubDate>Sun, 14 Jul 2024 18:42:40 +0000</pubDate>
      <link>https://dev.to/inzamam_virk/running-python-script-with-aws-lambdas-3dme</link>
      <guid>https://dev.to/inzamam_virk/running-python-script-with-aws-lambdas-3dme</guid>
      <description>&lt;p&gt;As a software engineer sometimes you have to write a script to add or update some records which you don't want to handle in your codebase. For a few records, you can run your script locally even for hundreds of records you can use multithreading but when you have to deal with thousands of records these methods are not enough. So here comes AWS lambdas or GCP function to streamline your whole script where you don't need to worry about rerunning your script if there is any network or machine interruption.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;In this article: You will learn how to efficiently handle large record updates using AWS Lambdas, with a driver function and a target function.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Set up your Lambdas:&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Set up two AWS lambda functions, one driver function and the other target function. &lt;strong&gt;&lt;em&gt;The driver function&lt;/em&gt;&lt;/strong&gt; handles source(Record location) authentication and data processing before invoking the target function asynchronously.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4ilzlkjhdw07mdlodh7l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4ilzlkjhdw07mdlodh7l.png" alt=" " width="407" height="311"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For example, if you need to modify data stored in S3 bucket, here is a simple driver/iterator function:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
import boto3

client = boto3.client('lambda')

def lambda_handler(event, context):
    index = event['iterator']['index'] + 1

    # update payload according to your requirements
    response = client.invoke(
        FunctionName='LAMBDA_TO_INVOKE',
        InvocationType='Event',
        Payload=json.dumps({
            'bucket_name': 'YOUR_BUCKET_NAME',
            'file_key': 'YOUR_FILE_KEY'
        })
    )

    return {
        'index': index,
        'continue': index &amp;lt; event['iterator']['count'],
        'count': event['iterator']['count']
    }

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;&lt;em&gt;The target function&lt;/em&gt;&lt;/strong&gt; fulfills the purpose and performs read-write operations or other modifications at the source.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9czke7uvz4t1qceqtlqw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9czke7uvz4t1qceqtlqw.png" alt=" " width="743" height="731"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is a simple example of a target/invoked function :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
import boto3
s3_client = boto3.client('s3')

def lambda_handler(event, context):
    # Extracting necessary information from the event
    bucket_name = event['bucket_name']
    file_key = event['file_key']

    # Get file from S3
    s3_response = s3_client.get_object(Bucket=bucket_name, Key=file_key)
    file_content = s3_response['Body'].read()

    # Perform modification on the file content (example: convert to uppercase)
    modified_content = file_content.upper()

    # Upload the modified file back to S3
    s3_client.put_object(Bucket=bucket_name, Key=file_key, Body=modified_content)

    return {
        'statusCode': 200,
        'body': 'File modified successfully'
    }

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Below are some valuable tips for automation:&lt;/strong&gt;&lt;br&gt;
Before you run your script, ensure these things for better results:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Add proper logging to track your modified and remaining records and overall progress.&lt;/li&gt;
&lt;li&gt;Keep your OAuth credentials in your credentials manager or any safe place.&lt;/li&gt;
&lt;li&gt;Structure your program so that in any case if you have to rerun your program it shouldn't re-modify your data.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When we use any package outside of python environment like pandas we will probably face issue related to "package not resolved" or something like that so you have to create python environment install all required dependencies and then package them all to upload lambdas.&lt;/p&gt;

&lt;p&gt;If you are facing a packaging issue, I have discussed that in the below article:&lt;br&gt;
Will write it soon :)&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>python</category>
      <category>aws</category>
    </item>
  </channel>
</rss>
