<?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:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"><channel><title><![CDATA[NextGen PM: Tech for PM]]></title><description><![CDATA[Explore articles on technology, tailored specifically for Product Managers.]]></description><link>https://www.tusharchopra.com/s/tech-for-pm</link><image><url>https://substackcdn.com/image/fetch/$s_!_qH6!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a04f340-0d8c-4335-aefa-4c4fc9828ed2_1280x1280.png</url><title>NextGen PM: Tech for PM</title><link>https://www.tusharchopra.com/s/tech-for-pm</link></image><generator>Substack</generator><lastBuildDate>Sat, 11 Apr 2026 08:37:13 GMT</lastBuildDate><atom:link href="https://www.tusharchopra.com/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[Tushar Chopra]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[tusharchopra@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[tusharchopra@substack.com]]></itunes:email><itunes:name><![CDATA[Tushar Chopra]]></itunes:name></itunes:owner><itunes:author><![CDATA[Tushar Chopra]]></itunes:author><googleplay:owner><![CDATA[tusharchopra@substack.com]]></googleplay:owner><googleplay:email><![CDATA[tusharchopra@substack.com]]></googleplay:email><googleplay:author><![CDATA[Tushar Chopra]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[SQL vs NoSQL: A Simple Guide for Product Managers]]></title><description><![CDATA[As a Product Manager, you don&#8217;t need to write database queries every day, but you do need to make the right architectural decisions.]]></description><link>https://www.tusharchopra.com/p/sql-vs-nosql-a-simple-guide-for-pm</link><guid isPermaLink="false">https://www.tusharchopra.com/p/sql-vs-nosql-a-simple-guide-for-pm</guid><dc:creator><![CDATA[Tushar Chopra]]></dc:creator><pubDate>Tue, 04 Nov 2025 18:04:00 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!Fv8W!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5834b97c-c3e5-4d08-97ea-bc0e96cb95c2_1520x752.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>As a Product Manager, you don&#8217;t need to <em>write</em> database queries every day, but you do need to make the right architectural decisions. One of the most common (and confusing) choices is:</p><p><strong>Should we use SQL or NoSQL?</strong></p><p>Let&#8217;s break this down in plain English.</p><div><hr></div><h2>First, what is a database?</h2><p>A <strong>database</strong> is where your product stores data, including users, orders, payments, events, messages, logs, and more.</p><p>The two broad types you&#8217;ll hear engineers talk about are:</p><ul><li><p><strong>SQL databases</strong></p></li><li><p><strong>NoSQL databases</strong></p></li></ul><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Fv8W!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5834b97c-c3e5-4d08-97ea-bc0e96cb95c2_1520x752.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Fv8W!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5834b97c-c3e5-4d08-97ea-bc0e96cb95c2_1520x752.png 424w, https://substackcdn.com/image/fetch/$s_!Fv8W!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5834b97c-c3e5-4d08-97ea-bc0e96cb95c2_1520x752.png 848w, https://substackcdn.com/image/fetch/$s_!Fv8W!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5834b97c-c3e5-4d08-97ea-bc0e96cb95c2_1520x752.png 1272w, https://substackcdn.com/image/fetch/$s_!Fv8W!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5834b97c-c3e5-4d08-97ea-bc0e96cb95c2_1520x752.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Fv8W!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5834b97c-c3e5-4d08-97ea-bc0e96cb95c2_1520x752.png" width="1456" height="720" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5834b97c-c3e5-4d08-97ea-bc0e96cb95c2_1520x752.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:720,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:131500,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://www.tusharchopra.com/i/185742355?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5834b97c-c3e5-4d08-97ea-bc0e96cb95c2_1520x752.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Fv8W!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5834b97c-c3e5-4d08-97ea-bc0e96cb95c2_1520x752.png 424w, https://substackcdn.com/image/fetch/$s_!Fv8W!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5834b97c-c3e5-4d08-97ea-bc0e96cb95c2_1520x752.png 848w, https://substackcdn.com/image/fetch/$s_!Fv8W!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5834b97c-c3e5-4d08-97ea-bc0e96cb95c2_1520x752.png 1272w, https://substackcdn.com/image/fetch/$s_!Fv8W!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5834b97c-c3e5-4d08-97ea-bc0e96cb95c2_1520x752.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><h2>What is SQL?</h2><p>SQL stands for <strong>Structured Query Language</strong>.</p><h3>How SQL databases think</h3><ul><li><p>Data is stored in <strong>tables</strong></p></li><li><p>Tables have <strong>fixed columns</strong></p></li><li><p>Relationships between tables are clearly defined</p></li></ul><p>Think of SQL like an <strong>Excel sheet with rules</strong>.</p><h3>Example (SQL-style data)</h3><pre><code><strong>User Table</strong>

| user_id | name  | email                                     |
| ------- | ----- | ----------------------------------------- |
| 1       | Rahul | [rahul@gmail.com](mailto:rahul@gmail.com) |
| 2       | Anita | [anita@gmail.com](mailto:anita@gmail.com) |</code></pre><pre><code><strong>Order Table</strong>

| order_id | user_id | amount |
| -------  | -----   | -------|
| 2314     | 1       | 999    |
| 2315     | 2       | 432    |</code></pre><p>Here, <code>user_id</code> connects users and orders.</p><h3>Key characteristics of SQL</h3><ul><li><p>Fixed schema (structure decided upfront).</p></li><li><p>Strong data consistency.</p></li><li><p>Great for complex queries and reporting.</p></li></ul><div><hr></div><h2>What is NoSQL?</h2><p>NoSQL stands for <strong>Not Only SQL</strong>.</p><h3>How NoSQL databases think</h3><ul><li><p>Data is stored in <strong>flexible formats</strong></p></li><li><p>No fixed schema</p></li><li><p>Each record can look different</p></li></ul><p>Think of NoSQL like <strong>Google Docs</strong>, flexible and fast.</p><h3>Example (NoSQL-style data)</h3><pre><code>{
  "user_id": 1,
  "name": "Rahul",
  "email": "rahul@gmail.com",
  "orders": [
    { "order_id": 2314, "amount": 999 },
    { "order_id": 2315, "amount": 439 }
  ]
}</code></pre><p></p><p>Another user might have different fields altogether.</p><h3>Key characteristics of NoSQL</h3><ul><li><p>Schema-less or flexible schema.</p></li><li><p>Highly scalable.</p></li><li><p>Optimized for speed and large volumes.</p></li></ul><h2>When should a Product Manager choose SQL?</h2><p>Choose <strong>SQL</strong> when:</p><p>&#10004; Data structure is clear and stable<br>&#10004; Relationships matter (users &#8594; orders &#8594; payments)<br>&#10004; Accuracy is critical (finance, billing, inventory)<br>&#10004; You need analytics &amp; reporting</p><h3>Product example</h3><p><strong>Payment, Insurance, Banking, ERP systems</strong></p><p>If an order is paid, it <em>must</em> be recorded correctly in a structured way, no compromise.</p><p>&#128073; SQL shines here.</p><div><hr></div><h2>When should a Product Manager choose NoSQL?</h2><p>Choose <strong>NoSQL</strong> when:</p><p>&#10004; Data structure changes frequently<br>&#10004; Scale is unpredictable or massive<br>&#10004; You need very fast reads/writes<br>&#10004; Data doesn&#8217;t need complex joins</p><h3>Product example</h3><p><strong>Chat apps, activity feeds, logs, analytics events</strong></p><p>A WhatsApp message or user activity log doesn&#8217;t require a strict structure; speed is more important.</p><p>&#128073; NoSQL wins here.</p><div><hr></div><h2>A Real Product Scenario (Hybrid Approach)</h2><p>Most modern products use <strong>both</strong>.</p><h3>Example: E-commerce app</h3><ul><li><p><strong>SQL</strong> &#8594; Users, orders, payments, refunds</p></li><li><p><strong>NoSQL</strong> &#8594; Search history, product views, clickstream events</p></li></ul><p>As a PM, this helps you:</p><ul><li><p>Ask better questions.</p></li><li><p>Understand trade-offs.</p></li><li><p>Align tech decisions with business goals.</p></li></ul>]]></content:encoded></item><item><title><![CDATA[API Lifecycle: All you need to know as a Product Manager]]></title><description><![CDATA[API is a software intermediary that allows different applications to communicate and share data.]]></description><link>https://www.tusharchopra.com/p/api-lifecycle-all-you-need-to-know</link><guid isPermaLink="false">https://www.tusharchopra.com/p/api-lifecycle-all-you-need-to-know</guid><dc:creator><![CDATA[Tushar Chopra]]></dc:creator><pubDate>Wed, 14 Aug 2024 18:36:30 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!8S5j!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1d599639-c2bb-41a0-ad4b-4ebabf96cc7d_1470x980.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!8S5j!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1d599639-c2bb-41a0-ad4b-4ebabf96cc7d_1470x980.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!8S5j!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1d599639-c2bb-41a0-ad4b-4ebabf96cc7d_1470x980.jpeg 424w, https://substackcdn.com/image/fetch/$s_!8S5j!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1d599639-c2bb-41a0-ad4b-4ebabf96cc7d_1470x980.jpeg 848w, https://substackcdn.com/image/fetch/$s_!8S5j!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1d599639-c2bb-41a0-ad4b-4ebabf96cc7d_1470x980.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!8S5j!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1d599639-c2bb-41a0-ad4b-4ebabf96cc7d_1470x980.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!8S5j!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1d599639-c2bb-41a0-ad4b-4ebabf96cc7d_1470x980.jpeg" width="1456" height="971" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/1d599639-c2bb-41a0-ad4b-4ebabf96cc7d_1470x980.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:971,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:34671,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!8S5j!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1d599639-c2bb-41a0-ad4b-4ebabf96cc7d_1470x980.jpeg 424w, https://substackcdn.com/image/fetch/$s_!8S5j!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1d599639-c2bb-41a0-ad4b-4ebabf96cc7d_1470x980.jpeg 848w, https://substackcdn.com/image/fetch/$s_!8S5j!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1d599639-c2bb-41a0-ad4b-4ebabf96cc7d_1470x980.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!8S5j!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1d599639-c2bb-41a0-ad4b-4ebabf96cc7d_1470x980.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><strong>API</strong> is a software intermediary that allows different applications to communicate and share data. In simple words, An API acts as a middleman, receiving requests from the client, processing them with the backend, and returning the results to the client.</p><p></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!9gtg!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd9fe428-88ac-4496-a0fe-e00204d54cd6_1920x1080.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!9gtg!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd9fe428-88ac-4496-a0fe-e00204d54cd6_1920x1080.png 424w, https://substackcdn.com/image/fetch/$s_!9gtg!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd9fe428-88ac-4496-a0fe-e00204d54cd6_1920x1080.png 848w, https://substackcdn.com/image/fetch/$s_!9gtg!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd9fe428-88ac-4496-a0fe-e00204d54cd6_1920x1080.png 1272w, https://substackcdn.com/image/fetch/$s_!9gtg!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd9fe428-88ac-4496-a0fe-e00204d54cd6_1920x1080.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!9gtg!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd9fe428-88ac-4496-a0fe-e00204d54cd6_1920x1080.png" width="478" height="268.875" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/dd9fe428-88ac-4496-a0fe-e00204d54cd6_1920x1080.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:819,&quot;width&quot;:1456,&quot;resizeWidth&quot;:478,&quot;bytes&quot;:62051,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!9gtg!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd9fe428-88ac-4496-a0fe-e00204d54cd6_1920x1080.png 424w, https://substackcdn.com/image/fetch/$s_!9gtg!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd9fe428-88ac-4496-a0fe-e00204d54cd6_1920x1080.png 848w, https://substackcdn.com/image/fetch/$s_!9gtg!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd9fe428-88ac-4496-a0fe-e00204d54cd6_1920x1080.png 1272w, https://substackcdn.com/image/fetch/$s_!9gtg!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd9fe428-88ac-4496-a0fe-e00204d54cd6_1920x1080.png 1456w" sizes="100vw"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The API (Application Programming Interface) lifecycle encompasses several stages through which an API goes from conception to retirement. Here&#8217;s a breakdown of the key stages with explanations and examples to help make it easier for a fresher to understand:</p><p></p><p><strong>1. Planning Phase: </strong>In this phase, the stakeholders (business owners, product managers, and developers) come together to identify the need for the API. They gather requirements by considering potential users and the use cases.</p><p>Example: </p><p>Stakeholders may want to build an API that gives access to real-time weather data and 7-day forecasts. They identify target users such as mobile app developers, web developers, and data analysts.</p><p></p><p><strong>2. Design Phase: </strong>This stage involves creating a detailed API specification which includes the decision on the API Protocol like REST or SOAP, API End Points with Query Parameters if any, Final URL, API Method (GET, DELETE, PATCH, or POST), Headers, Request and Response Body, and Authentication.</p><p>Example:</p><p>API Format can be JSON or XML.</p><p>API endpoint: /weather/current?location={city} with full URL as /https://api.tusharchopra.com/v1//weather/current?location={city}</p><p>In this example, GET is the HTTP method to fetch the current weather of a city and the response would be</p><pre><code>JSON Response Example for Current Weather:

{
  "location": "San Francisco, CA",
  "temperature": "68&#176;F",
  "condition": "Cloudy",
  "humidity": "78%"
}
</code></pre><p><strong>3. Development Phase:</strong> Developers build the API according to the design specifications. This includes writing backend logic to handle requests, integrating with databases or third-party weather data providers, implementing security protocols to avoid unauthorized access and attacks, and finally returning the data in a specific format.</p><p></p><p><strong>4. Testing Phase:</strong> It ensures that the API behaves as expected. Testing includes not just functional testing but also error handling and load testing.</p><p>Example:</p><p>Test scripts validate that GET /api/v1/weather/current?location=San Francisco returns a successful response with the correct data structure and handles erroneous requests like GET /api/v1/weather/current?location= gracefully by returning a meaningful error message:</p><p>{</p><p>  "error": "Location parameter is required"</p><p>}</p><p></p><p><strong>5. Deployment Phase:</strong> Once testing is complete, the API is deployed to a production environment where developers and applications can access it.</p><p></p><p><strong>6. Monitoring Phase: </strong>After deployment, monitoring is critical to ensure the API remains functional, performs well, and meets user expectations. It tracks usage patterns, error rates, and response times.</p><p>Example:</p><p>Setting up logging (using tools like ELK stack) and monitoring services (like Grafana, New Relic, or Datadog). Gathering usage data to see which endpoints are most popular and how users interact with the API.</p><p></p><p><strong>7. Maintenance Phase:</strong> APIs require ongoing maintenance to fix bugs, improve performance, and update functionality based on user feedback. Regular updates ensure the API stays relevant and continues to meet user needs.</p><p></p><p><strong>8. Versioning: </strong>As the API evolves, versioning helps maintain backward compatibility. When new features are introduced or existing ones are modified, updating the version number ensures that existing integrations remain unaffected.</p><p></p><p><strong>9. Deprecation and Retirement: </strong>Eventually, some APIs may become outdated or replaced by better alternatives. To retire an API gracefully, communication with users is critical, providing them with opportunities to migrate to newer versions or APIs.</p>]]></content:encoded></item><item><title><![CDATA[Importance of SQL for Product Managers and some commonly used SQL queries]]></title><description><![CDATA[Product management involves steering your product in the right direction quickly.]]></description><link>https://www.tusharchopra.com/p/importance-of-sql-for-product-managers</link><guid isPermaLink="false">https://www.tusharchopra.com/p/importance-of-sql-for-product-managers</guid><dc:creator><![CDATA[Tushar Chopra]]></dc:creator><pubDate>Wed, 10 Jul 2024 13:12:56 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!ZWzA!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31829aaf-cd51-449c-9485-a8e26715cddd_1200x734.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ZWzA!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31829aaf-cd51-449c-9485-a8e26715cddd_1200x734.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ZWzA!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31829aaf-cd51-449c-9485-a8e26715cddd_1200x734.png 424w, https://substackcdn.com/image/fetch/$s_!ZWzA!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31829aaf-cd51-449c-9485-a8e26715cddd_1200x734.png 848w, https://substackcdn.com/image/fetch/$s_!ZWzA!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31829aaf-cd51-449c-9485-a8e26715cddd_1200x734.png 1272w, https://substackcdn.com/image/fetch/$s_!ZWzA!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31829aaf-cd51-449c-9485-a8e26715cddd_1200x734.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ZWzA!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31829aaf-cd51-449c-9485-a8e26715cddd_1200x734.png" width="1200" height="734" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/31829aaf-cd51-449c-9485-a8e26715cddd_1200x734.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:734,&quot;width&quot;:1200,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:15380,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!ZWzA!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31829aaf-cd51-449c-9485-a8e26715cddd_1200x734.png 424w, https://substackcdn.com/image/fetch/$s_!ZWzA!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31829aaf-cd51-449c-9485-a8e26715cddd_1200x734.png 848w, https://substackcdn.com/image/fetch/$s_!ZWzA!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31829aaf-cd51-449c-9485-a8e26715cddd_1200x734.png 1272w, https://substackcdn.com/image/fetch/$s_!ZWzA!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31829aaf-cd51-449c-9485-a8e26715cddd_1200x734.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p>Product management involves steering your product in the right direction quickly. Data is a crucial component of decision-making, and conducting primary analysis yourself can significantly enhance your efficiency as a product manager.</p><p>Given that relational databases are still the most common types of databases, learning SQL (Structured Query Language) becomes crucial for PMs.</p><p></p><p>Relational databases such as MySQL, PostgreSQL, Oracle, and SQL Server are extensively used across industries. These databases store and manage vast amounts of critical data. Since SQL is the standard language for interacting with these databases, understanding SQL is essential for accessing and manipulating this data.</p><p></p><h2>Why Should Product Managers Learn SQL?</h2><ol><li><p>They can independently query databases without constantly relying on data analysts or engineers, speeding up the process of data retrieval.</p><p></p></li><li><p>Understanding SQL enables better communication with data engineers, analysts, and developers, ensuring clear and precise data requirements.</p><p></p></li><li><p>Working knowledge of SQL helps PMs comprehend the limitations and possibilities of data retrieval, leading to more realistic expectations and effective collaboration.</p></li></ol><p></p><h2>SQL for Product Managers</h2><p>While SQL allows you to read, insert, update, or delete data in relational databases, as a product manager, your primary focus will be on reading data as read queries in SQL will help you extract valuable data from relational databases. </p><p>Here are some of the most common read queries, along with examples:</p><p></p><p>1. <strong>SELECT Query</strong></p><pre><code>SELECT <em>* 
</em>FROM <em>table_name</em>;</code></pre><pre><code><code>SELECT * 
FROM users;</code></code></pre><p>This query retrieves all columns and rows from the users table.</p><p></p><p>2. <strong>SELECT Specific Columns</strong></p><p>You can specify which columns to retrieve by listing them after the <code>SELECT</code> keyword.</p><pre><code><code>SELECT column1, column2, ...
FROM table_name;</code></code></pre><pre><code><code>SELECT first_name, last_name, email 
FROM users;</code></code></pre><p>This query retrieves the <code>first_name</code>, <code>last_name</code>, and <code>email</code> columns from the users table.</p><p></p><p><strong>3. WHERE Clause</strong></p><p>The <code>WHERE</code> clause is used to filter records based on specific conditions.</p><pre><code>SELECT <em>*
</em>FROM <em>table_name 
</em>WHERE <em>condition</em>;</code></pre><pre><code>SELECT * 
FROM users 
WHERE age &gt; 25;</code></pre><p>This query retrieves all columns for users who are older than 25.</p><p></p><p>4. <strong>LIMIT Clause</strong></p><p>The <code>LIMIT</code> clause is used to specify the number of records to return.</p><pre><code><code>SELECT * 
FROM table_name 
LIMIT number;</code></code></pre><pre><code>SELECT * FROM users LIMIT 10;</code></pre><p>This query retrieves the first 10 rows from the users table.</p><p></p><p><strong>5. DISTINCT Keyword</strong></p><p>The <code>DISTINCT</code> keyword is used to return only distinct (different) values.</p><pre><code><code>SELECT DISTINCT column_name
FROM table_name;</code></code></pre><pre><code><code>SELECT DISTINCT country 
FROM users;</code></code></pre><p>This query retrieves the list of unique countries from the users table stored inside the country column.</p><p></p><p><strong>6. COUNT Function</strong></p><p>The COUNT function in SQL is used to count the number of rows in a table that match a specified condition. Here are a few examples to illustrate how it works:</p><p>Counting All Rows in a Table - </p><pre><code><code>SELECT Count(*)
FROM table_name;</code></code></pre><pre><code><code>SELECT Count(*)
FROM users;</code></code></pre><p>This query retrieves the count of rows from the users table.</p><p></p><p>Counting Rows with a Specific Condition - </p><pre><code><code>SELECT Count (*)
FROM table_name 
WHERE condition;</code></code></pre><pre><code><code>SELECT * 
FROM users 
WHERE age &gt; 25;</code></code></pre><p>This query retrieves the count of rows from the <code>users</code> table where users have an age greater than 25.</p><p></p><p><strong>7. SUM Function</strong></p><p>The <code>SUM()</code> function in SQL is used to calculate the total sum of a numeric column.</p><pre><code><code>SELECT SUM(column_name)
FROM table_name
WHERE condition;</code></code></pre><pre><code><code>SELECT SUM (total_sales)
FROM users; </code></code></pre><p>This query returns the sum of total_sales for all the records in the users table.</p><p></p><p><strong>8. AVG Function</strong></p><p>The <code>AVG()</code> function in SQL is used to calculate the average of a numeric column.</p><pre><code><code>SELECT AVG(column_name)
FROM table_name
WHERE condition;</code></code></pre><pre><code><code>SELECT AVG (total_sales)
FROM users; </code></code></pre><p>This query returns the average of total_sales for all the records in the users table.</p><p></p><p><strong>9. ORDER BY</strong></p><p>It is used to sort the result set of a query by one or more columns. Sorting can be done in ascending order (default) or descending order.</p><pre><code><code>SELECT *
FROM table_name
ORDER BY columnname;</code></code></pre><pre><code><code>SELECT *
FROM users
ORDER BY age;</code></code></pre><p>This query returns all the records in the <code>users</code> table sorted in ascending order by age.</p><p></p><p><strong>10. LIKE</strong></p><p>is used to search for a specified pattern in a column. It is often used with <code>WHERE</code> clause to filter data based on partial matches. The <code>LIKE</code> operator can be used with two wildcard characters:</p><ul><li><p><code>%</code> - Represents zero or more characters.</p></li><li><p><code>_</code> - Represents a single character.</p></li></ul><p>Here are some examples to illustrate how the <code>LIKE</code> operator works:</p><p>Example 1: Using <code>%</code> Wildcard</p><p>Suppose you have a table named <code>users</code> and you want to find all users whose names start with the letter 'A':</p><pre><code><code>SELECT *
FROM users
WHERE name LIKE 'A%';</code></code></pre><p>Example 2: Using <code>_</code> Wildcard</p><p>To find all users whose names have 'B' as the second character:</p><pre><code><code>SELECT *
FROM users
WHERE name LIKE '_B%';</code></code></pre><p>SQL <code>LIKE</code> is case-insensitive in some databases like MySQL, but it is case-sensitive in others like PostgreSQL. For case-insensitive searches in PostgreSQL, you can use the <code>ILIKE</code> operator.</p><p></p>]]></content:encoded></item><item><title><![CDATA[Know the Difference Between Frontend and Backend in Application Development]]></title><description><![CDATA[In application development, "front-end" and "back-end" are essential concepts.]]></description><link>https://www.tusharchopra.com/p/difference-between-frontend-backend</link><guid isPermaLink="false">https://www.tusharchopra.com/p/difference-between-frontend-backend</guid><dc:creator><![CDATA[Tushar Chopra]]></dc:creator><pubDate>Sun, 16 Jun 2024 08:46:56 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!EsWJ!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F65720602-fa79-4761-aaa0-e225b7a504e6_1920x1080.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!EsWJ!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F65720602-fa79-4761-aaa0-e225b7a504e6_1920x1080.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!EsWJ!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F65720602-fa79-4761-aaa0-e225b7a504e6_1920x1080.png 424w, https://substackcdn.com/image/fetch/$s_!EsWJ!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F65720602-fa79-4761-aaa0-e225b7a504e6_1920x1080.png 848w, https://substackcdn.com/image/fetch/$s_!EsWJ!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F65720602-fa79-4761-aaa0-e225b7a504e6_1920x1080.png 1272w, https://substackcdn.com/image/fetch/$s_!EsWJ!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F65720602-fa79-4761-aaa0-e225b7a504e6_1920x1080.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!EsWJ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F65720602-fa79-4761-aaa0-e225b7a504e6_1920x1080.png" width="1456" height="819" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/65720602-fa79-4761-aaa0-e225b7a504e6_1920x1080.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:819,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:54920,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!EsWJ!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F65720602-fa79-4761-aaa0-e225b7a504e6_1920x1080.png 424w, https://substackcdn.com/image/fetch/$s_!EsWJ!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F65720602-fa79-4761-aaa0-e225b7a504e6_1920x1080.png 848w, https://substackcdn.com/image/fetch/$s_!EsWJ!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F65720602-fa79-4761-aaa0-e225b7a504e6_1920x1080.png 1272w, https://substackcdn.com/image/fetch/$s_!EsWJ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F65720602-fa79-4761-aaa0-e225b7a504e6_1920x1080.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p>In application development, "front-end" and "back-end" are essential concepts. The <strong>front end </strong>refers to the <strong>part of the website that users see and interact with</strong>, whereas the <strong>back end encompasses the underlying processes that make everything function</strong>. A seamless collaboration between the front-end and back-end is crucial for a website's operation.</p><p></p><h2>What is Front-End?</h2><p>The front-end is the client side of a web application, encompassing everything that users see and interact with directly in their web browsers. It is responsible for a website's visual and interactive aspects, aiming to provide an engaging and user-friendly experience.</p><p></p><h2>Key Components of the Front-end</h2><p><strong>HTML (HyperText Markup Language)</strong>: It's like a skeleton that defines the structure of a web page.</p><p><strong>CSS (Cascading Style Sheets)</strong>: It's like interior designing. It provides the look and feel of a web page.</p><p><strong>Javascript: </strong>While HTML gives structure and CSS provides style, JavaScript brings web pages to life by enabling dynamic elements and interactive features like animations, pop-up alerts, interactive forms,&nbsp;drop-down menus, and real-time updates without reloading the page.</p><p></p><h2><strong>Frontend Frameworks and JS Libraries</strong></h2><p>Provide tools and pre-written code to simplify the development of complex user interfaces.</p><p>Front-end CSS frameworks like Bootstrap, Semantic UI, and Tailwind CSS simplify the process of designing responsive, mobile-first web pages. They have Pre-designed CSS styles and components like buttons, forms, navbars, and more.</p><p>A JS (JavaScript) library is a collection of pre-written JavaScript code that provides functionalities to simplify the development of web applications. It focuses on enhancing the behavior and interactivity of web pages. </p><p>Examples include libraries like <strong>jQuery</strong> which Simplifies DOM manipulation, event handling, and AJAX interactions. and <strong>React</strong> which is a library for building user interfaces with a component-based architecture.</p><p></p><h2>What is Back-End?</h2><p>The backend is the server side of a web application. It's responsible for managing the data, business logic, and server configuration. It serves as the engine behind the scenes, enabling the front end (the user interface) to function smoothly.</p><p></p><h2>Key Components of the Back-end</h2><p><strong>Server-Side Programming Languages</strong>: Backend development involves writing code that runs on the server. Some popular server-side programming languages include JavaScript, Python, Ruby, PHP, Java, .Net, etc. </p><p>These languages are used to build the logic of the web application, handle requests, and manage responses.</p><p><strong>Databases</strong>: Databases store and manage data. There are two main types of databases:</p><ul><li><p><strong>Relational Databases (SQL):</strong> Use structured query language (SQL) for defining and manipulating data. Examples include MySQL, PostgreSQL, and Oracle.</p></li><li><p><strong>NoSQL Databases:</strong> Designed for specific data models and have flexible schemas. Examples include MongoDB, Cassandra, and Redis.</p><p></p></li></ul><p><strong>Server and Hosting</strong>: Backend services need to be hosted on servers. These can be:</p><ul><li><p><strong>On-Premises Servers:</strong> Physical servers managed by an organization.</p></li><li><p><strong>Cloud Servers:</strong> Virtual servers provided by cloud services such as AWS, Google Cloud, and Microsoft Azure.</p></li><li><p><strong>Serverless Computing:</strong> A cloud-computing execution model where the cloud provider dynamically manages the allocation of machine resources.</p></li></ul><p></p><h2><strong>Backend Programming Language Frameworks</strong></h2><p>A backend framework is a collection of tools and libraries that help you build the server side of a web application. Frameworks provide pre-built components and tools, so you don't have to start from scratch.</p><p><strong>Express.js</strong> is a popular choice for JavaScript developers. <strong>Django</strong>, a high-level Python framework. <strong>Ruby on Rails</strong> is a framework written in the <strong>Ruby</strong> programming language. <strong>Laravel</strong> is a popular PHP framework. </p><p>For enterprise-level applications, <strong>Spring</strong> is a popular Java framework with features like dependency injection and MVC architecture, catering to complex and large-scale projects.</p>]]></content:encoded></item><item><title><![CDATA[Understand How Sessions and Cookies Work and the Difference]]></title><description><![CDATA[HTTP is stateless, meaning each request is independent.]]></description><link>https://www.tusharchopra.com/p/understand-sessions-and-cookies</link><guid isPermaLink="false">https://www.tusharchopra.com/p/understand-sessions-and-cookies</guid><dc:creator><![CDATA[Tushar Chopra]]></dc:creator><pubDate>Sat, 15 Jun 2024 07:21:31 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!OyL_!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe1ae20f0-4f27-434c-b91a-3c0763c7d421_2048x1280.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!OyL_!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe1ae20f0-4f27-434c-b91a-3c0763c7d421_2048x1280.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!OyL_!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe1ae20f0-4f27-434c-b91a-3c0763c7d421_2048x1280.png 424w, https://substackcdn.com/image/fetch/$s_!OyL_!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe1ae20f0-4f27-434c-b91a-3c0763c7d421_2048x1280.png 848w, https://substackcdn.com/image/fetch/$s_!OyL_!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe1ae20f0-4f27-434c-b91a-3c0763c7d421_2048x1280.png 1272w, https://substackcdn.com/image/fetch/$s_!OyL_!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe1ae20f0-4f27-434c-b91a-3c0763c7d421_2048x1280.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!OyL_!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe1ae20f0-4f27-434c-b91a-3c0763c7d421_2048x1280.png" width="1456" height="910" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e1ae20f0-4f27-434c-b91a-3c0763c7d421_2048x1280.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:910,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1778318,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!OyL_!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe1ae20f0-4f27-434c-b91a-3c0763c7d421_2048x1280.png 424w, https://substackcdn.com/image/fetch/$s_!OyL_!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe1ae20f0-4f27-434c-b91a-3c0763c7d421_2048x1280.png 848w, https://substackcdn.com/image/fetch/$s_!OyL_!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe1ae20f0-4f27-434c-b91a-3c0763c7d421_2048x1280.png 1272w, https://substackcdn.com/image/fetch/$s_!OyL_!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe1ae20f0-4f27-434c-b91a-3c0763c7d421_2048x1280.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p>HTTP is stateless, meaning each request is independent. However, tracking user activity is sometimes necessary. For example, on an e-commerce website, we don't want items added to a shopping cart to disappear when navigating to a different page. Therefore, we need a way to maintain this type of information.</p><p>In web development, sessions, and cookies are crucial for storing and retrieving user information.</p><p>Websites use sessions and cookies to store user data across different pages. Both are crucial for tracking information provided by visitors for various purposes. The main difference is that sessions are saved on the server-side, while cookies are saved on the user's browser (client-side). Additionally, there are several other differences between them. </p><p>In this discussion, we will explore a detailed description of sessions and cookies and how they differ.</p><p></p><h2><strong>What Are Sessions?</strong></h2><p>Sessions are a way for websites to keep track of your activity and information while you navigate through different pages. When you visit a website, a session starts, and it helps the site remember who you are and what you&#8217;re doing during that visit.</p><p>Let's take an example. Suppose you log into a web application with your username (or email) and password, then submit. You're then redirected to the dashboard page, which you can access if you're logged in.</p><p>Without a session mechanism, you wouldn't be able to access the dashboard, even after logging in. This is because HTTP requests are independent of each other, so when you request the dashboard page, the server doesn't recognize you.</p><p></p><h2><strong>How Does Session Work?</strong></h2><p></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!_7v4!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7695a48c-8423-4175-a7e0-aa2f0182e5b6_742x320.webp" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!_7v4!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7695a48c-8423-4175-a7e0-aa2f0182e5b6_742x320.webp 424w, https://substackcdn.com/image/fetch/$s_!_7v4!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7695a48c-8423-4175-a7e0-aa2f0182e5b6_742x320.webp 848w, https://substackcdn.com/image/fetch/$s_!_7v4!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7695a48c-8423-4175-a7e0-aa2f0182e5b6_742x320.webp 1272w, https://substackcdn.com/image/fetch/$s_!_7v4!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7695a48c-8423-4175-a7e0-aa2f0182e5b6_742x320.webp 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!_7v4!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7695a48c-8423-4175-a7e0-aa2f0182e5b6_742x320.webp" width="742" height="320" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7695a48c-8423-4175-a7e0-aa2f0182e5b6_742x320.webp&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:320,&quot;width&quot;:742,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:8822,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/webp&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!_7v4!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7695a48c-8423-4175-a7e0-aa2f0182e5b6_742x320.webp 424w, https://substackcdn.com/image/fetch/$s_!_7v4!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7695a48c-8423-4175-a7e0-aa2f0182e5b6_742x320.webp 848w, https://substackcdn.com/image/fetch/$s_!_7v4!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7695a48c-8423-4175-a7e0-aa2f0182e5b6_742x320.webp 1272w, https://substackcdn.com/image/fetch/$s_!_7v4!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7695a48c-8423-4175-a7e0-aa2f0182e5b6_742x320.webp 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><ol><li><p><strong>Session Creation</strong>: When you first visit a website, the server creates a unique session ID for you. This ID is like a temporary name tag that identifies your session.</p></li><li><p><strong>Session ID Storage</strong>: The session ID is usually stored in a cookie on your browser. This allows the website to recognize your session ID when you move from page to page.</p></li><li><p><strong>Data Storage on the Server</strong>: All the information about your session (like login status, items in your shopping cart, or preferences) is stored on the server. The session ID links your activity to this data.</p></li></ol><p></p><h2><strong>Example of a Session in Action:</strong></h2><ol><li><p><strong>Login</strong>: You log into a website.</p></li><li><p><strong>Session ID</strong>: The server assigns a session ID and sends it to your browser.</p></li><li><p><strong>Navigation</strong>: As you browse, the session ID is sent back to the server with each request, so the server knows it&#8217;s you.</p></li><li><p><strong>Persistent Data</strong>: Your login status, preferences, and actions are tracked through this session ID.</p></li></ol><p></p><h2><strong>Session Lifetime:</strong></h2><ul><li><p><strong>Temporary Nature</strong>: Sessions are temporary and usually last as long as your browser is open. Once you close your browser, the session typically ends.</p></li><li><p><strong>Expiration</strong>: Some sessions may expire after a certain period of inactivity, requiring you to log in again.</p></li></ul><p></p><h1><strong>What are Cookies?</strong></h1><p>Cookies are small pieces of data stored on your computer by your web browser when you visit a website. They help websites remember information about you and your preferences, making your browsing experience more personalized and efficient.</p><p>Cookies can be either first-party or third-party. First-party cookies are created by the website that the user is visiting, while third-party cookies are created by domains other than the website being visited. Third-party cookies are often used for advertising and tracking purposes.</p><p></p><h2><strong>How Cookies Work:</strong></h2><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!jAkm!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab55bd0a-309a-4148-bd40-237849df2911_742x103.webp" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!jAkm!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab55bd0a-309a-4148-bd40-237849df2911_742x103.webp 424w, https://substackcdn.com/image/fetch/$s_!jAkm!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab55bd0a-309a-4148-bd40-237849df2911_742x103.webp 848w, https://substackcdn.com/image/fetch/$s_!jAkm!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab55bd0a-309a-4148-bd40-237849df2911_742x103.webp 1272w, https://substackcdn.com/image/fetch/$s_!jAkm!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab55bd0a-309a-4148-bd40-237849df2911_742x103.webp 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!jAkm!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab55bd0a-309a-4148-bd40-237849df2911_742x103.webp" width="742" height="103" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/ab55bd0a-309a-4148-bd40-237849df2911_742x103.webp&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:103,&quot;width&quot;:742,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:8222,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/webp&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!jAkm!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab55bd0a-309a-4148-bd40-237849df2911_742x103.webp 424w, https://substackcdn.com/image/fetch/$s_!jAkm!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab55bd0a-309a-4148-bd40-237849df2911_742x103.webp 848w, https://substackcdn.com/image/fetch/$s_!jAkm!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab55bd0a-309a-4148-bd40-237849df2911_742x103.webp 1272w, https://substackcdn.com/image/fetch/$s_!jAkm!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab55bd0a-309a-4148-bd40-237849df2911_742x103.webp 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!7L7I!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F47a50032-ea2e-45fa-b51b-ee31f9d02a72_742x501.webp" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!7L7I!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F47a50032-ea2e-45fa-b51b-ee31f9d02a72_742x501.webp 424w, https://substackcdn.com/image/fetch/$s_!7L7I!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F47a50032-ea2e-45fa-b51b-ee31f9d02a72_742x501.webp 848w, https://substackcdn.com/image/fetch/$s_!7L7I!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F47a50032-ea2e-45fa-b51b-ee31f9d02a72_742x501.webp 1272w, https://substackcdn.com/image/fetch/$s_!7L7I!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F47a50032-ea2e-45fa-b51b-ee31f9d02a72_742x501.webp 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!7L7I!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F47a50032-ea2e-45fa-b51b-ee31f9d02a72_742x501.webp" width="742" height="501" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/47a50032-ea2e-45fa-b51b-ee31f9d02a72_742x501.webp&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:501,&quot;width&quot;:742,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:26594,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/webp&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!7L7I!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F47a50032-ea2e-45fa-b51b-ee31f9d02a72_742x501.webp 424w, https://substackcdn.com/image/fetch/$s_!7L7I!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F47a50032-ea2e-45fa-b51b-ee31f9d02a72_742x501.webp 848w, https://substackcdn.com/image/fetch/$s_!7L7I!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F47a50032-ea2e-45fa-b51b-ee31f9d02a72_742x501.webp 1272w, https://substackcdn.com/image/fetch/$s_!7L7I!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F47a50032-ea2e-45fa-b51b-ee31f9d02a72_742x501.webp 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><ol><li><p><strong>Creation</strong>: When you visit a website, it may send a cookie to your browser. This cookie contains information such as a unique identifier.</p></li><li><p><strong>Storage</strong>: The cookie is stored on your computer in a specific folder designated by your browser.</p></li><li><p><strong>Retrieval</strong>: Each time you return to the website, your browser sends the cookie back to the server. This allows the website to recognize you and recall your preferences or login status.</p></li></ol><p></p><h2>Types of Cookies Based on Expiry:</h2><ul><li><p><strong>Session Cookies</strong>: These are temporary cookies that are deleted when you close your browser. They are used to store information during your browsing session, such as items in a shopping cart.</p></li><li><p><strong>Persistent Cookies</strong>: These cookies remain on your computer even after you close your browser. They have an expiration date and are used to remember your preferences and login details for future visits.</p></li></ul><p></p><h2><strong>Managing Cookies:</strong></h2><ol><li><p><strong>Browser Settings</strong>: Most browsers allow you to view, delete, and manage cookies through their settings. You can choose to accept or block cookies from specific sites.</p></li><li><p><strong>Privacy Tools</strong>: Use privacy tools and browser extensions to control cookie usage and enhance your online privacy.</p></li></ol><p></p><p>When comparing sessions and cookies from a security perspective, sessions are generally considered more secure than cookies. Here's why:</p><ol><li><p><strong>Server-Side Storage</strong>: Sessions store data on the server side. Only a session ID is sent to the client, reducing the risk of sensitive data being exposed or manipulated.</p></li><li><p><strong>Limited Exposure</strong>: Since the actual session data is not stored on the user's device, it is less susceptible to being stolen through client-side attacks like Cross-Site Scripting (XSS).</p></li><li><p><strong>Session Expiry</strong>: Sessions often have short lifetimes and can expire after a period of inactivity or when the user logs out, reducing the window of opportunity for potential attackers.</p></li></ol>]]></content:encoded></item></channel></rss>