<?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: Ashar</title>
    <description>The latest articles on DEV Community by Ashar (@asharali999).</description>
    <link>https://dev.to/asharali999</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%2F1140213%2Fee24faac-2c06-4156-9309-7f5eb5f62dc1.gif</url>
      <title>DEV Community: Ashar</title>
      <link>https://dev.to/asharali999</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/asharali999"/>
    <language>en</language>
    <item>
      <title>Serverless Architecture VS Monolith Architecture</title>
      <dc:creator>Ashar</dc:creator>
      <pubDate>Mon, 20 May 2024 09:06:20 +0000</pubDate>
      <link>https://dev.to/asharali999/serverless-architecture-vs-monolith-architecture-5fij</link>
      <guid>https://dev.to/asharali999/serverless-architecture-vs-monolith-architecture-5fij</guid>
      <description>&lt;h3&gt;
  
  
  Monolith-Server Architecture
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Server Setup&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Utilize an EC2 instance (a virtual machine) from AWS.&lt;/li&gt;
&lt;li&gt;Configure the instance based on initial requirements (e.g., 2GB RAM, 500GB Storage, 10MB Bandwidth).&lt;/li&gt;
&lt;li&gt;Install necessary software (e.g., Linux, Node.js, Express.js) and deploy code.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Operation&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The server runs 24/7, ensuring constant availability.&lt;/li&gt;
&lt;li&gt;Charges are based on hourly usage (e.g., $0.02 per hour).&lt;/li&gt;
&lt;li&gt;Total monthly cost is fixed based on continuous operation.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Scalability&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Use AWS Auto Scaling Group (ASG) for handling increased traffic.&lt;/li&gt;
&lt;li&gt;Automatically adjust resources (e.g., increase RAM to 6GB and Storage to 1000GB) as needed.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Management&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Full control over server configuration, software installation, and deployment.&lt;/li&gt;
&lt;li&gt;Responsible for all server management tasks.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Serverless Architecture (AWS Lambda Functions)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Setup&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No need to configure or manage servers.&lt;/li&gt;
&lt;li&gt;Write code and upload it to AWS Lambda.&lt;/li&gt;
&lt;li&gt;Choose the runtime environment (e.g., Node.js).&lt;/li&gt;
&lt;li&gt;Set up an API Gateway to trigger the Lambda function via a URL.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Operation&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Lambda functions do not run continuously; they execute in response to triggers (e.g., HTTP requests).&lt;/li&gt;
&lt;li&gt;Charges are based on the number of invocations (e.g., $0.001 per invocation).&lt;/li&gt;
&lt;li&gt;AWS handles scaling automatically to accommodate multiple concurrent requests.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Scalability&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;AWS Lambda automatically scales to handle traffic, creating instances of the function as needed.&lt;/li&gt;
&lt;li&gt;Ensures that no user experiences wait times during high traffic periods.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Cost&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;First 1 million invocations per month are free.&lt;/li&gt;
&lt;li&gt;Beyond that, charges apply (e.g., $0.20 per additional million requests).&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Management&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Minimal management required.&lt;/li&gt;
&lt;li&gt;AWS manages underlying infrastructure, scaling, and maintenance.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Summary
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Monolith-Server Architecture&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Requires an EC2 instance and manual server management.&lt;/li&gt;
&lt;li&gt;Fixed monthly costs based on continuous operation.&lt;/li&gt;
&lt;li&gt;Full control over server and environment configuration.&lt;/li&gt;
&lt;li&gt;Auto Scaling can be set up to handle increased traffic.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Serverless Architecture (AWS Lambda)&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No server management required; AWS handles infrastructure.&lt;/li&gt;
&lt;li&gt;Pay per invocation, reducing costs for low-traffic scenarios.&lt;/li&gt;
&lt;li&gt;Automatic scaling to handle varying traffic loads.&lt;/li&gt;
&lt;li&gt;Simplified deployment and maintenance, ideal for dynamic and scalable applications.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>Backend Authentication</title>
      <dc:creator>Ashar</dc:creator>
      <pubDate>Mon, 11 Mar 2024 12:56:13 +0000</pubDate>
      <link>https://dev.to/asharali999/backend-authentication-2n1m</link>
      <guid>https://dev.to/asharali999/backend-authentication-2n1m</guid>
      <description>&lt;p&gt;&lt;strong&gt;Authentication Types and How They Work&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;There are two main ways to handle authentication on the backend: stateful and stateless.&lt;/p&gt;

&lt;p&gt;**&lt;/p&gt;

&lt;h2&gt;
  
  
  Stateful Authentication:
&lt;/h2&gt;

&lt;p&gt;**&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it does:&lt;/strong&gt; Stateful authentication keeps track of users' login status on the server.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works:
&lt;/h2&gt;

&lt;p&gt;When you log in, the server creates a special ID for you and remembers it along with your details.&lt;br&gt;
Each time you visit a page, you send this ID to the server to prove you're logged in.&lt;br&gt;
When you log out, the server deletes this ID, kicking you out.&lt;br&gt;
&lt;strong&gt;Good things about it:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It's good for banking apps or other secure places because it can control how long you stay logged in.&lt;br&gt;
It's easy for the server to kick out troublemakers by deleting their ID.&lt;br&gt;
&lt;strong&gt;Not-so-good things:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It can get tricky to handle lots of people logging in and out, especially on big websites.&lt;br&gt;
Sometimes, if the server messes up, you might get logged out for no reason.&lt;br&gt;
**&lt;/p&gt;

&lt;h2&gt;
  
  
  Stateless Authentication:
&lt;/h2&gt;

&lt;p&gt;**&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it does:&lt;/strong&gt; Stateless authentication doesn't keep track of your login status on the server.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How it works:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When you log in, the server gives you a special code called a token.&lt;br&gt;
You keep this token and show it to the server whenever you need to do something.&lt;br&gt;
The server checks the token to make sure it's real and lets you in.&lt;br&gt;
&lt;strong&gt;Good things about it:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It's good for websites that need to handle lots of people at once because it's simpler for the server.&lt;br&gt;
It's easy to use with newer kinds of server setups.&lt;br&gt;
&lt;strong&gt;Not-so-good things:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You have to be careful with your token because if someone steals it, they can pretend to be you.&lt;br&gt;
Sometimes, it can be hard to keep track of who's logged in because the server doesn't remember.&lt;/p&gt;

</description>
      <category>node</category>
      <category>javascript</category>
      <category>jsonwebtoken</category>
      <category>token</category>
    </item>
    <item>
      <title>VS Code Template Portfolio</title>
      <dc:creator>Ashar</dc:creator>
      <pubDate>Sat, 19 Aug 2023 10:15:51 +0000</pubDate>
      <link>https://dev.to/asharali999/vs-code-template-portfolio-46j9</link>
      <guid>https://dev.to/asharali999/vs-code-template-portfolio-46j9</guid>
      <description>&lt;p&gt;🚀 Just launched my portfolio website using React.js and Tailwind CSS, inspired by the clean look of VS Code! 🎉&lt;/p&gt;

&lt;p&gt;🌐 Explore my work: &lt;a href="https://ashar-psi.vercel.app"&gt;https://ashar-psi.vercel.app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;📌 Showcasing my projects and skills in an interactive and modern design. Let's connect and collaborate! 👨‍💻&lt;/p&gt;

&lt;p&gt;Comment below for source code!&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5mgv3s0ylify96bqusn2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5mgv3s0ylify96bqusn2.png" alt="Image description" width="800" height="401"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe2atnp2bsjbsjb0a8wrf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe2atnp2bsjbsjb0a8wrf.png" alt="Image description" width="800" height="388"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2jcsg4aouvt7cm8fq554.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2jcsg4aouvt7cm8fq554.png" alt="Image description" width="800" height="386"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Portfolio #ReactJS #TailwindCSS #WebDevelopment
&lt;/h1&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>vscode</category>
      <category>portfolio</category>
    </item>
  </channel>
</rss>
