<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by MSS on Medium]]></title>
        <description><![CDATA[Stories by MSS on Medium]]></description>
        <link>https://medium.com/@mass-software-solutions?source=rss-7c1919f4abf6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by MSS on Medium</title>
            <link>https://medium.com/@mass-software-solutions?source=rss-7c1919f4abf6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 20:00:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mass-software-solutions/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[PostgreSQL Search Optimization: How We Fixed Real-World Search on 1.8M]]></title>
            <link>https://mass-software-solutions.medium.com/postgresql-search-optimization-how-we-fixed-real-world-search-on-1-8m-a2621dcc8a73?source=rss-7c1919f4abf6------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2621dcc8a73</guid>
            <category><![CDATA[scaling]]></category>
            <category><![CDATA[search]]></category>
            <category><![CDATA[database-design]]></category>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[MSS]]></dc:creator>
            <pubDate>Thu, 18 Jun 2026 07:15:51 GMT</pubDate>
            <atom:updated>2026-06-18T07:15:51.585Z</atom:updated>
            <content:encoded><![CDATA[<h3>PostgreSQL Search Optimization: How We Fixed Real-World Search on 1.8M Records Without Elasticsearch</h3><p><strong>How we solved real-world search problems on 1.8M records using only PostgreSQL (no Elasticsearch).</strong></p><p>When we first built search on top of PostgreSQL, everything looked fine.</p><p>Exact owner name? works<br>Exact address? works<br>Exact parcel ID? works</p><p>Then real users showed up.</p><p>They typed:</p><ul><li>1701 w 13</li><li>smith john</li><li>john smth</li><li>intown homes</li><li>eric ortiz cline</li></ul><p>…and PostgreSQL did exactly what we asked it to do:</p><p><strong>return nothing</strong>.</p><p>This article is not about <em>how to enable full-text search</em>.</p><p>It’s about <strong>why search breaks in real systems</strong>, and how we fixed each failure <strong>using only PostgreSQL</strong> — no Elasticsearch, no external search engine.</p><p>If you’ve ever thought <em>“Postgres search is too limited”</em>, this is for you.</p><h3>The Baseline: One Table, Millions of Rows</h3><p>Everything in this system depends on a single table with ~1.8M rows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*hMwfeJXgz6VLT4FX9o9AYw.png" /></figure><p>This looks over-engineered.</p><p>It wasn’t — every column exists because <strong>something broke without it</strong>.</p><p>Let’s walk through those failures.</p><blockquote>Challenge 1: “Why Do I Need the Full Address for Results?”</blockquote><h4>Problem #1: Partial Addresses Don’t Work</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*Z6fll4vRZIhnQpfde69o-A.png" /></figure><p>PostgreSQL full-text search performs token-exact matching. Partial addresses like ‘1701 w 13’ fail because tokens do not align.</p><p><strong>The fix: normalize addresses <em>before indexing</em></strong></p><p>We stopped indexing raw addresses and introduced generated columns:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*rWgT2mxm_k9smUMZm9AfaA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*byeuvlSgVIc5RGR_-jdBxw.png" /></figure><p>Indexes that actually matched how users search:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*T7kvZku-sw-K_j2JLMzuUA.png" /></figure><p>Query:</p><h4>Takeaway</h4><p>Full-text search is not address search.<br>If you don’t normalize addresses, PostgreSQL will punish you for it.</p><blockquote>Challenge 2: “First Name Last Name Works — Last Name First Name Doesn’t”</blockquote><h3>Problem #2: Word Order Matters (Too Much)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*Y-3qhckaNHhanmH-j-Eaqg.png" /></figure><h3>The problem</h3><ul><li>PostgreSQL full-text search respects word order. Searching ‘smith john’ fails if the stored order is ‘JOHN SMITH’</li></ul><h3>Why this happens</h3><p>PostgreSQL full-text search <strong>respects word order</strong>.</p><p>Your data says:</p><pre>SMITH JOHN A</pre><p>The user says:</p><pre>john smith</pre><p>Same words.<br>Different positions.<br>Different documents.</p><h3>The fix: pre-compute name permutations</h3><p>We generate all <em>safe</em> permutations <strong>once</strong>, at write time:</p><pre>SMITH JOHN A<br>JOHN SMITH A<br>JOHN A SMITH<br>A JOHN SMITH</pre><p>Then convert them into a single tsvector:</p><pre>owner_permuted_tsv = <br>to_tsvector (&#39;english&#39;, &#39;SMITH JOHN A JOHN SMITH A JOHN A SMITH..&#39;)</pre><p>And index it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7tBZOtamd8heB_uJTV4YYg.png" /></figure><p>Now this works:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5j7pwSp3iCk2pxBMwDdwZQ.png" /></figure><h3>Takeaway</h3><p>If word order shouldn’t matter, fix it at <strong>write time</strong>, not in queries.</p><blockquote>Challenge 3: “intown homes Doesn’t Match INTOWNHOMES LLC”</blockquote><h4>Problem #3: “intown homes” ≠ “INTOWNHOMES LLC”</h4><h3>The problem</h3><ul><li>intownhomes → Does not work</li><li>intown homes → Does not work</li></ul><h3>Why this happens</h3><p>Two separate issues:</p><ol><li>Entity suffixes (LLC, INC) pollute tokens</li><li>Spacing differences break matching</li></ol><h3>The fix: strip entities + trigram similarity</h3><p>Entity stripping:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PgXcZNidlqn4eJzdNQwOGg.png" /></figure><h3>Takeaway</h3><p>Business suffixes destroy relevance.<br>Remove them before PostgreSQL ever sees the text.</p><blockquote>Challenge 4: Owner + Address Queries Didn’t Work at All</blockquote><h4>Problem #4: Mixed Queries (Owner + Address)</h4><h4><strong>The problem</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NiF2J1uWDpKMVMLoi0pNGA.png" /></figure><p>Users mix owner and address terms in a single query. This requires token-level OR logic across columns.</p><h3>The fix: token-level OR across columns</h3><p>Each token must match <em>somewhere</em>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wum-e4gHlW05Mce6hKClrg.png" /></figure><p>With guardrails:</p><ul><li>at least one token matches owner</li><li>at least one token matches address</li></ul><h3>Takeaway</h3><p>Combined search is not a feature.<br>It’s a <strong>different query model</strong>.</p><blockquote><strong>Challenge 5: Autocomplete Worked — But Ranked the Wrong Results</strong></blockquote><h3>Problem #5: Autocomplete Ranked Wrong Results</h3><p>The Problem</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5PD44L9ltm4CagBtx1440w.png" /></figure><p>1701 w 13 returned results, but:</p><ul><li>wrong streets ranked higher</li><li>exact matches buried</li></ul><h3>Why this happens</h3><p>Trigram similarity measures closeness, not intent. Exact prefixes must be ranked first.</p><h3>The fix: prefix bias in ranking</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z0t4bOEadwNlFthEA626gQ.png" /></figure><h3>Takeaway</h3><p>Similarity is a signal — not ranking logic.</p><blockquote>Challenge 6: Typos Broke Everything (Until They Didn’t)</blockquote><h3>The problem</h3><ul><li>jhon smth → nothing</li></ul><h3>The fix: trigram + local threshold</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v7uIypBUs2ODEBC5qWtqzA.png" /></figure><h3>Mistake we made</h3><p>Row query used one threshold.<br>COUNT query used another.</p><p>Pagination broke.</p><h3>Final rule</h3><p>Always set pg_trgm.similarity_threshold <strong>locally and consistently</strong>.</p><h3>Indexes Decided Everything</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XJZKKapGtSbWJybkshTCbQ.png" /></figure><p>Every index exists because something broke in production.</p><p>We didn’t “optimize queries”.</p><p>We <strong>designed indexes around user mistakes</strong>.</p><p>If an index didn’t map to a real failure, it didn’t exist.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pFOEZrDDy-XneUTrx-q0hQ.png" /></figure><h3>Final Takeaway</h3><p>PostgreSQL search is powerful — but only if you stop assuming users behave logically.</p><p>Users:</p><ul><li>reorder words</li><li>mix concepts</li><li>type half addresses</li><li>misspell names</li></ul><p>PostgreSQL can handle all of this.</p><p>Not by magic — <br>but by <strong>modeling for failure instead of correctness</strong>.</p><h3>One Thing to Remember</h3><p>You don’t need Elasticsearch for most search problems.</p><p>You need to understand:</p><ul><li>how PostgreSQL actually works</li><li>and how users actually behave</li></ul><p>That’s where real search begins.</p><p>In an era where information is easily searchable and tools like AI can generate quick answers, what truly matters is <strong>understanding concepts deeply and applying them correctly</strong>.</p><p>At <strong>Mass Tech Bytes</strong>, we believe learning cloud technology should be <strong>clear, secure, and practical</strong>, and this series is built with that philosophy in mind.</p><h3>Contributors</h3><p>This article was written by <strong>Aditi Pal (Senior Developer)</strong></p><h3>Stay Connected with Massoftind</h3><p><em>Let’s Build the Future Together!</em></p><p>For your <strong>Generative AI solutions</strong> and <strong>project development needs and </strong>ongoing <strong>updates</strong>, <strong>technical articles</strong>, and <strong>insights</strong> from our team get in touch with <a href="https://masssoftwaresolutions.com/"><strong>MSS</strong></a> — we’re here to help bring your ideas to life.</p><p>👉 Follow us on <a href="https://www.linkedin.com/showcase/masstechbytes/">LinkedIn</a> and <a href="https://mass-software-solutions.medium.com/">Medium</a> for <strong>weekly tech insights</strong> and practical tips to supercharge your development journey!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2621dcc8a73" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Azure Series — Part 3 — Securing Your Azure Virtual Machine with Managed Identity, Azure Storage…]]></title>
            <link>https://mass-software-solutions.medium.com/azure-series-part-3-securing-your-azure-virtual-machine-with-managed-identity-azure-storage-e9018e44d7be?source=rss-7c1919f4abf6------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9018e44d7be</guid>
            <category><![CDATA[azure-virtual-machines]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[azure-devops]]></category>
            <category><![CDATA[microsoft-azure]]></category>
            <dc:creator><![CDATA[MSS]]></dc:creator>
            <pubDate>Fri, 23 Jan 2026 09:02:49 GMT</pubDate>
            <atom:updated>2026-01-23T09:02:49.770Z</atom:updated>
            <content:encoded><![CDATA[<h3>Azure Series: Deploying a Complete Web Application on Azure (Beginner to Production) — Part 3</h3><h3>Azure Series — Securing Your Azure Virtual Machine with Managed Identity, Azure Storage, and Best Practices</h3><p>In <strong>Part 2 of this Azure Series</strong>, we successfully created and configured a Virtual Machine (VM) in Microsoft Azure. We covered the basics of VM creation, networking, access, and initial setup.</p><p>Now, in <strong>Part 3</strong>, we take a crucial next step.</p><p>Creating a VM is only the beginning. In real-world cloud environments, <strong>security, identity management, and secure access to resources</strong> are just as important as deployment itself.</p><p>In this article, we will strengthen our VM setup by introducing <strong>secure, production-ready Azure integrations</strong>, focusing on identity-based access instead of secrets, keys, or passwords.</p><h3>What We Will Cover in Part 3</h3><p>In this part, you will learn how to:</p><ul><li>Configure <strong>Managed Identity</strong> for an Azure VM</li><li>Access <strong>Azure Storage (Blob / File)</strong> securely using identity-based authentication</li><li>Avoid using <strong>storage keys and passwords</strong></li><li>Apply <strong>recommended security configurations</strong> for VM connectivity</li><li>Prepare the VM environment for <strong>safer and smoother deployment workflows.</strong></li></ul><p>This guide is written step by step, assuming <strong>basic Azure knowledge</strong>, and is ideal for beginners who want to learn <strong>real Azure best practices</strong> rather than shortcuts.</p><h3>Why Managed Identity Matters</h3><p>Traditionally, applications and VMs authenticate to Azure services using:</p><ul><li>Access keys</li><li>Connection strings</li><li>Service principals with secrets</li></ul><p>These methods introduce risks:</p><ul><li>Secrets can be leaked</li><li>Keys must be rotated</li><li>Configuration becomes complex</li></ul><p><strong>Managed Identity solves this problem.</strong></p><h3>What is Managed Identity?</h3><p>Managed Identity is an Azure feature that:</p><ul><li>Automatically creates an identity for your VM in Azure Active Directory</li><li>Eliminates the need to store credentials in code or configuration</li><li>Allows secure, passwordless access to Azure resources</li></ul><p>Azure handles the identity lifecycle for you.</p><h3>Step 1: Enable Managed Identity for the Virtual Machine</h3><ol><li>Go to <strong>Azure Portal</strong></li><li>Navigate to <strong>Virtual Machines</strong></li><li>Select your VM (created in Part 2)</li><li>In the left menu, click <strong>Identity</strong></li><li>Under <strong>System assigned</strong>, set <strong>Status</strong> to <strong>On</strong></li><li>Click <strong>Save</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ftm9X-f35-7cR3YJHV3siQ.png" /></figure><p>Once enabled:</p><ul><li>Azure creates an identity linked to this VM</li><li>The identity can now be granted permissions to other Azure services</li></ul><p>— No usernames<br> — No passwords<br> — No secrets stored anywhere</p><h3>Step 2: Understanding System-Assigned vs User-Assigned Identity</h3><p>For this series, we use <strong>System-Assigned Managed Identity</strong>.</p><p><strong>System-Assigned Identity</strong></p><ul><li>Tied directly to the VM</li><li>Automatically removed if the VM is deleted</li><li>Perfect for simple and secure setups</li></ul><p>(User-Assigned identities are useful for advanced scenarios and shared identities, which we will cover in a future article.)</p><h3>Step 3: Secure Access to Azure Storage Using Identity</h3><p>Now let’s connect our VM to <strong>Azure Storage</strong> without using access keys.</p><h3>Why Avoid Storage Account Keys?</h3><p>Storage keys:</p><ul><li>Provide full access to storage</li><li>Are hard to rotate safely</li><li>Increase security risks if exposed</li></ul><p>Instead, we will use <strong>Azure RBAC + Managed Identity</strong>.</p><h3>Step 4: Assign Storage Permissions to the VM Identity</h3><ol><li>Go to <strong>Azure Storage Account</strong></li><li>Select your storage account</li><li>Open <strong>Access Control (IAM)</strong></li><li>Click <strong>Add → Add role assignment</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7oBNd-v8GMYOzk-k9lNXiQ.png" /></figure><h3>Recommended Roles:</h3><ul><li><strong>Storage Blob Data Contributor</strong> (for Blob access)</li><li><strong>Storage File Data SMB Share Contributor</strong> (for File Share access)</li></ul><p>5. Select <strong>Storage Blob Data Contributor </strong>&amp; Click Next</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m8WNW8cocijX_LVIKm6oJw.png" /></figure><p>6. Under <strong>Assign access to</strong>, select <strong>Managed identity</strong></p><p>7. Click<strong> + Select member</strong></p><p>8. Choose <strong>Virtual Machine</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JIXAT8S8OEwA-H-EaWPzWw.png" /></figure><p>9. Select your VM</p><p>10. Click <strong>Review + assign</strong></p><ol><li>Select your VM</li><li>Click <strong>Review + assign</strong></li></ol><p>Now your VM can access storage securely using its identity.</p><h3>Step 5: Access Azure Blob Storage from the VM (Without Keys)</h3><p>Once permissions are assigned, your VM can authenticate automatically.</p><h3>Example (Azure CLI inside VM)</h3><pre>az login --identity<br>az storage blob list \<br>  --account-name &lt;storage-account-name&gt; \<br>  --container-name &lt;container-name&gt; \<br>  --auth-mode login</pre><p>No keys. No secrets. Authentication happens using the VM’s identity.</p><h3>Step 6: Secure Connectivity Best Practices for the VM</h3><p>Security doesn’t stop at identity. Let’s apply some recommended VM security configurations.</p><h3>1. Limit Public Access</h3><ul><li>Avoid exposing ports unnecessarily</li><li>Use <strong>Network Security Groups (NSG)</strong> to restrict inbound traffic</li><li>Allow SSH (22) or RDP (3389) only from trusted IPs</li></ul><h3>2. Prefer Private Access Where Possible</h3><ul><li>Use <strong>Private Endpoints</strong> for Storage access (advanced but recommended)</li><li>Avoid public storage endpoints in production</li></ul><h3>3. Use Just-In-Time (JIT) VM Access</h3><ul><li>Enable <strong>JIT access</strong> from Microsoft Defender for Cloud</li><li>Open ports only when needed and for limited time</li></ul><h3>Step 7: Preparing the VM for Safer Deployment Workflows</h3><p>With identity and security in place, your VM is now ready for real workloads.</p><h3>Recommended Preparation Steps</h3><ul><li>Install required runtime (Docker, .NET, Node.js, Java, etc.)</li><li>Use Managed Identity for:</li><li>Azure Key Vault access</li><li>Azure Container Registry pulls</li><li>Azure Storage operations</li><li>Avoid hard-coding credentials in scripts</li><li>Use environment variables only when necessary (and never secrets)</li></ul><p>This setup allows:</p><ul><li>Cleaner deployments</li><li>Better security compliance</li><li>Easier scaling and maintenance</li></ul><h3>Key Takeaways from Part 3</h3><p>By the end of this article, you have:</p><p>— Enabled Managed Identity for your VM<br> — Connected Azure Storage using identity-based access<br> — Eliminated storage keys and passwords<br> — Applied secure connectivity best practices<br> — Prepared your VM for production-ready deployments</p><p>These are <strong>real Azure patterns used in enterprise environments</strong>, not shortcuts.</p><h3>What’s Coming in Part 4?</h3><p>In <strong>Part 4 of this Azure Series</strong>, we will move beyond the VM and focus on <strong>global access and performance</strong> by setting up:</p><ul><li><strong>Azure Front Door</strong> for secure and scalable traffic routing</li><li><strong>Front Door mapped with Static Website hosted on Azure Storage</strong></li><li><strong>Custom Domain configuration</strong> with HTTPS enabled</li><li>Best practices for improving <strong>performance, availability, and security</strong> at the edge</li></ul><p>This part will show how to expose applications and static content to users <strong>safely and efficiently</strong>, using Azure’s global networking capabilities.</p><h3>Final Thoughts</h3><p>In an era where information is easily searchable and tools like AI can generate quick answers, what truly matters is <strong>understanding concepts deeply and applying them correctly</strong>.</p><p>This series focuses on <strong>step-by-step, practical Azure guidance</strong> — the kind that helps you build confidence and real-world skills.</p><p>At <strong>Mass Tech Bytes</strong>, we believe learning cloud technology should be <strong>clear, secure, and practical</strong>, and this series is built with that philosophy in mind.</p><h3>Contributors</h3><p>This article was written by <a href="https://www.linkedin.com/in/mousumi-bakshi-8aa75b33/"><strong>Mousumi Bakshi</strong></a><strong> (Senior Solutions Architect)</strong></p><h3>Stay Connected with Massoftind</h3><p><em>Let’s Build the Future Together!</em></p><p>For your <strong>Generative AI solutions</strong> and <strong>project development needs and </strong>ongoing <strong>updates</strong>, <strong>technical articles</strong>, and <strong>insights</strong> from our team get in touch with <a href="https://masssoftwaresolutions.com/"><strong>MSS</strong></a> — we’re here to help bring your ideas to life.</p><p>👉 Follow us on <a href="https://www.linkedin.com/showcase/masstechbytes/">LinkedIn</a> and <a href="https://mass-software-solutions.medium.com/">Medium</a> for <strong>weekly tech insights</strong> and practical tips to supercharge your development journey!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9018e44d7be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Azure Series — Part 2: How to Create and Set Up a Virtual Machine (VM) in Microsoft Azure]]></title>
            <link>https://mass-software-solutions.medium.com/azure-series-part-2-how-to-create-and-set-up-a-virtual-machine-vm-in-microsoft-azure-d38274a345fe?source=rss-7c1919f4abf6------2</link>
            <guid isPermaLink="false">https://medium.com/p/d38274a345fe</guid>
            <category><![CDATA[azure-devops]]></category>
            <category><![CDATA[microsoft-azure]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[virtual-machine]]></category>
            <dc:creator><![CDATA[MSS]]></dc:creator>
            <pubDate>Mon, 05 Jan 2026 04:32:28 GMT</pubDate>
            <atom:updated>2026-01-05T04:32:28.285Z</atom:updated>
            <content:encoded><![CDATA[<h3>Azure Series — Part 2: How to Create and Set Up a Virtual Machine (VM) in Microsoft Azure</h3><p>In <strong>Part 1</strong> of this Azure Series, we discussed the basics required to start deploying a web application in Azure.<br> In this <strong>Part 2</strong>, we will build a strong foundation for hosting applications by creating and configuring a <strong>Virtual Machine (VM)</strong> in Microsoft Azure.</p><p>A well-configured VM is important because it becomes the environment where your application runs. Whether you’re hosting a web application, APIs, databases, or backend services, the VM setup plays a major role in <strong>performance, security, and stability</strong>.</p><p>At <strong>Mass Software Solutions</strong>, we believe in continuous learning and knowledge sharing. This article is designed to help beginners and learners understand Azure VM creation and setup step-by-step.</p><h3>What You Will Learn in This Article</h3><p>By the end of this guide, you will be able to:</p><ul><li>Create an Azure Virtual Machine (Linux or Windows)</li><li>Configure network settings (VNet, Subnet, Public IP, NSG)</li><li>Allow required ports for access (SSH, HTTP, HTTPS)</li><li>Connect to the VM securely</li><li>Perform initial VM configuration and system setup</li><li>Prepare your VM for application deployment</li></ul><h3>Prerequisites</h3><p>Before starting, make sure you have:</p><ul><li>An active <strong>Azure Account</strong></li><li>Basic understanding of:</li><li>Virtual Machines</li><li>Networking concepts (VNet, Subnet)</li><li>SSH/RDP (remote access)</li></ul><h3>1. Login to Azure Portal</h3><p>Open the Azure Portal and login:</p><p>— <a href="https://portal.azure.com/">https://portal.azure.com</a></p><p>Once logged in, you’ll be on the Azure dashboard where you can manage all your services.</p><p><strong>Tip:</strong> If you are new, explore the left-side menu — Azure services are grouped by category.</p><h3>2. Create a Virtual Machine</h3><ol><li>In the search bar, type <strong>Virtual Machines</strong></li><li>Select <strong>Virtual Machines</strong></li><li>Click <strong>Create</strong></li><li>Choose <strong>Azure Virtual Machine</strong></li></ol><p>Before we start creating our VM, it’s important to understand the options Azure provides under the <strong>Create</strong> menu. Depending on your workload, Azure allows you to launch a single VM, deploy scalable VM groups, use ready-made presets, or explore hybrid and high-volume solutions. Let’s quickly look at what each option means so you can choose the right one with confidence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-samqVhycuMsZmucfkK6xg.png" /></figure><h4>1) Virtual machine</h4><p>This option is the simplest way to get started — create a single Virtual Machine and use it like your own cloud-based computer.<br> It’s perfect for running web apps, hosting small services, testing configurations, or setting up a development environment.</p><h4>2) Virtual machine scale set (VMSS)</h4><p>If you’re planning for high traffic or need multiple VMs running together, VM Scale Sets are the best choice.<br> They allow you to deploy a group of identical VMs that can automatically scale up or down depending on demand.<br> This is widely used for production applications where availability, load balancing, and automation matter.</p><h4>3) Presets</h4><p>Azure Presets make VM creation faster by giving you pre-built configurations based on common workload needs.<br> Instead of selecting everything manually, you can start with a recommended setup and adjust it if required.</p><h4>4) Hybrid, preconfigured, and high volume solutions</h4><p>This section is designed for enterprise and large-scale deployments where you need consistency and efficiency.<br> It’s especially useful when working with Azure Arc, bulk VM provisioning, or standardized deployment templates.</p><h4>3. Configure Basics</h4><p>Azure will open a VM creation form with multiple tabs.</p><h3>Step 3. Basics (Subscription &amp; Resource Group)</h3><ul><li><strong>Subscription</strong>: Select your subscription</li><li><strong>Resource Group</strong>:</li><li>Choose an existing Resource Group or</li><li>Create a new one (recommended for project organization)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s-ohMLLcwuuN3beOFPLepg.png" /></figure><h3>Step 4. VM Instance Details</h3><p>Set:</p><ul><li><strong>Virtual machine name</strong>: e.g., demo1</li><li><strong>Region</strong>: choose nearest location for best performance e.g., US(East US)</li><li><strong>Availability options</strong>: keep default unless you need high availability</li><li>For Linux: Ubuntu Server 22.04 LTS (recommended)</li><li>For Windows: Windows Server 2019/2022</li><li><strong>Size</strong>: For practice: Standard B1s or B2s</li><li>For real apps: choose based on workload</li></ul><p>When creating a Virtual Machine in Azure, you’ll also choose a <strong>Security type</strong>. This setting defines how protected your VM will be against threats such as malware, unauthorized boot changes, and advanced attacks. Azure offers three main security options</p><p>Which one should you choose?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0k5UvLkIVOD-pj9xTwaz0A.png" /></figure><p><strong>Standard</strong> is a good choice if you are learning Azure, testing setups, or running low-risk workloads where advanced security is not required.</p><p><strong>Trusted launch</strong> is recommended for most real-world applications, especially production workloads, because it adds stronger protection through Secure Boot and vTPM with minimal extra effort.</p><p><strong>Confidential VM</strong> should be selected when your workload deals with highly sensitive or regulated data and you need maximum confidentiality — even for data being processed in memory.</p><ul><li>For Linux: Ubuntu Server 24.04 LTS (recommended)</li><li>For Windows: Windows Server 2019/2022</li><li><strong>Size</strong>: For practice: Standard B1s or B2s</li><li>For real apps: choose based on workload</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*15DjEoJS9xNk7BkXcVhNCQ.png" /></figure><ul><li>For Linux: Ubuntu Server 24.04 LTS (recommended)</li><li>For Windows: Windows Server 2019/2022</li><li><strong>Size</strong>: For practice: Standard B1s or B2s</li><li>For real apps: choose based on workload</li></ul><h3>5. Administrator Account</h3><ul><li><strong>Authentication type</strong>: Choose how you want to securely access the VM (SSH key is recommended for Linux).</li><li><strong>SSH public key</strong>: The most secure method — connect to your VM using a key instead of a password.</li><li><strong>Password</strong>: Easier to set up, but less secure and not recommended for production VMs.</li><li><strong>Username</strong>: The admin username you will use to log in to the VM.</li><li><strong>SSH public key source</strong>: Select whether Azure should generate a new key pair or you want to use an existing one.</li><li><strong>Generate new key pair</strong>: Azure creates a fresh SSH key pair during VM creation for secure access.</li><li><strong>SSH Key Type (RSA)</strong>: Common and widely supported format, often preferred for compatibility.</li><li><strong>SSH Key Type (Ed25519)</strong>: Modern and secure option with smaller key size and strong security.</li><li><strong>Key pair name</strong>: Name assigned to your SSH key pair so you can identify and reuse it later.</li><li><strong>Inbound port rules</strong>: Controls which ports are open to the public internet for accessing your VM services.</li><li><strong>Public inbound ports (None)</strong>: Keeps the VM closed from public access — recommended unless you need SSH/HTTP/HTTPS.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2SgZ1PerFPbIxRHDZ8iv3w.png" /></figure><h4>For Linux VM</h4><ul><li>Authentication type: <strong>SSH public key</strong> (recommended)</li><li>Username: e.g., azureuser</li><li>SSH public key:</li><li>Generate a new key (Azure can generate)</li><li>Or upload your existing SSH key</li></ul><p><strong>Why SSH key is recommended?</strong><br> Because it provides stronger security than password authentication.</p><h4>For Windows VM</h4><ul><li>Create:</li><li>Admin username</li><li>Admin password</li></ul><h3>6. DISK</h3><p>The <strong>Disks</strong> tab is where you configure the storage for your Virtual Machine, including the <strong>OS disk</strong> and any additional data disks you may want to attach later. Azure automatically creates an OS disk based on the selected image, and you can choose the disk size and performance type depending on your workload.</p><p>By default, Azure encrypts the VM disks at rest.</p><ul><li><strong>VM disk encryption</strong>: Azure automatically encrypts your managed disks (OS and data disks) at rest by default.</li><li><strong>Encryption at host</strong>: Adds extra encryption at the host server level for stronger security (if enabled for your subscription).</li><li><strong>OS disk size</strong>: Defines the storage size of the operating system disk (default comes from the selected image).</li><li><strong>OS disk type</strong>: Selects the performance tier of the OS disk such as Standard HDD, Standard SSD, or Premium SSD.</li><li><strong>Delete with VM</strong>: When enabled, the OS disk will be deleted automatically when the VM is deleted (helps avoid extra storage cost).</li><li><strong>Key management</strong>: Controls whether encryption keys are managed by Azure (platform-managed) or by you (customer-managed).</li><li><strong>Enable Ultra Disk compatibility</strong>: Allows the VM to attach Ultra Disks for very high-performance workloads (only needed for advanced scenarios).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8D7xeIZSYQB7V-T51GollA.png" /></figure><h3>7. Configure Networking</h3><p>Networking is critical because it controls how your VM connects to the internet and what traffic is allowed.</p><p>The <strong>Networking</strong> tab is where we define how our Azure Virtual Machine connects to the internet and how it will be accessed securely. In this setup, we used the following configuration to keep the VM reachable for administration while maintaining controlled access.</p><h4>Network Interface Settings</h4><ul><li><strong>Virtual Network (VNet):</strong> Dev-backend-vnet<br> We selected an existing Virtual Network to keep the VM within a structured network environment. This also helps in future scenarios where multiple services need to communicate securely.</li><li><strong>Subnet:</strong> default (10.0.0.0/24)<br> The VM is placed inside the default subnet so it can receive an internal IP and communicate with other resources in the same network.</li><li><strong>Public IP:</strong> (new) demo1-ip<br> A new Public IP address is created so that we can connect to the VM from our local machine using SSH.</li></ul><h4>NIC Network Security Group</h4><p>We selected <strong>Basic</strong>, which allows Azure to automatically configure a Network Security Group (NSG) with simple inbound rules.<br> This is a good choice for beginners and lab environments where we need quick setup without complex rule management.</p><h4>Public inbound ports</h4><p>We selected <strong>Allow selected ports</strong>, and allowed only:</p><p><strong>SSH (22)</strong><br> This enables secure remote access to the VM (Linux) using SSH.</p><blockquote><em>⚠️ Note: Allowing inbound ports makes your VM accessible from the public internet. In real production environments, it’s recommended to restrict SSH access to specific trusted IPs.</em></blockquote><p>Cleanup &amp; Performance Options</p><ul><li><strong>Delete public IP and NIC when VM is deleted:</strong> Not enabled<br> Since it’s unchecked, the Public IP and NIC will remain even if the VM is deleted, which can result in extra charges if not cleaned up manually.</li><li><strong>Enable accelerated networking:</strong> Enabled ✅<br> This improves network performance by reducing latency and improving throughput, which is beneficial for high-performance workloads.</li></ul><h4>Load Balancing</h4><p>For this setup, we kept the <strong>Load balancing option as None</strong>, since this VM is intended for a single instance use case and does not require traffic distribution across multiple servers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V9Y0BrzsQ8YJ4QeCrVffRg.png" /></figure><h4>Best Practice for Networking</h4><p>For better security, allow only the ports you truly need (for example, keep <strong>SSH (22)</strong> enabled only for administration). In production environments, avoid opening SSH to the public internet — instead, restrict access to trusted IP addresses or use <strong>Azure Bastion</strong> for secure remote connectivity. Also, enable cleanup options like <strong>Delete public IP and NIC when VM is deleted</strong> in test environments to avoid unnecessary resource costs.</p><h3>Allow Required Ports</h3><p>Select inbound ports based on what you want to do with your VM.</p><p>✅ Common ports:</p><ul><li><strong>22</strong> → SSH (Linux)</li><li><strong>3389</strong> → RDP (Windows)</li><li><strong>80</strong> → HTTP (web app)</li><li><strong>443</strong> → HTTPS (secure web app)</li></ul><h3>Recommended for Web Application Deployment:</h3><p>✅ Allow:</p><ul><li>22 (SSH)</li><li>80 (HTTP)</li><li>443 (HTTPS)</li></ul><p>⚠️ <strong>Security Note:</strong><br> Only open ports you actually need. Too many open ports increases risk.</p><h3>8. <strong>Management</strong>, <strong>Monitoring</strong>, <strong>Advanced </strong>and Tag</h3><p>At this stage, we don’t need any special customization, so we kept the <strong>Management</strong>, <strong>Monitoring</strong>, <strong>Advanced </strong>and <strong>Tag </strong>tab settings as <strong>default</strong>. This is a good approach for beginner setups and lab environments.</p><h3>9. Review + Create VM</h3><p>After filling the Basics and Networking configuration:</p><ol><li>Click <strong>Review + Create</strong></li><li>Azure validates your selections</li><li>Click <strong>Create</strong></li><li><strong>Download</strong> key Pair.</li></ol><p>Azure will start deployment.</p><p>Deployment usually takes <strong>2–5 minutes</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-WhKm4jnmWHhUaLseK4fPg.png" /></figure><h3>8. Connect to the VM</h3><p>Once deployment is complete, go to:<br> <strong>Virtual Machines → Your VM</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HVP11XLL2r23oiKnjdbT0w.png" /></figure><h4>For Linux VM (SSH)</h4><ol><li>Click <strong>Connect</strong></li><li>Choose <strong>SSH</strong></li><li>Copy the SSH command shown, example:</li></ol><pre>ssh azureadmin@&lt;public-ip&gt;</pre><p>If using a key file:</p><pre>ssh -i &lt;private-key.pem&gt; azureadmin@&lt;public-ip&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vumcCQmPo35eKnp33uM4hA.png" /></figure><p>Now you are connected to your Linux server.</p><h4>For Windows VM (RDP)</h4><ol><li>Click <strong>Connect</strong></li><li>Download <strong>RDP file</strong></li><li>Open RDP file and login using credentials</li></ol><h3>9. Update and Set Up the VM Environment (Linux)</h3><p>After connecting to a Linux VM, the first thing is to update and upgrade the system packages.</p><h4><strong>Update VM Packages</strong></h4><p>Run:</p><pre>sudo apt update<br>sudo apt upgrade -y</pre><h4>Install Essential Tools</h4><p>Install useful tools:</p><pre>sudo apt install -y curl wget unzip git</pre><p>These help in downloading dependencies and managing code deployment.</p><h4>Install Web Server (Optional: Nginx)</h4><p>If your application will be accessed through a browser, installing a web server is helpful.</p><p>Install Nginx:</p><pre>sudo apt install -y nginx</pre><p>Start and enable Nginx:</p><pre>sudo systemctl start nginx<br>sudo systemctl enable nginx</pre><p>Now check in browser: <strong>Site can’t be reached</strong></p><pre>http://&lt;public-ip&gt;</pre><p>You can see below screens</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ULUYVB95E9kW5YXQI3uttQ.png" /></figure><p>Now you need to allow http port in network settings</p><p>If you visit <strong>network settings </strong>you can see like below settings</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sC7Cw7plEpUP9PVsv2SImA.png" /></figure><p>ADD Inbound rule — allow http port</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*14JyrLc_z1QldJl17SLqsQ.png" /></figure><p>You should see the <strong>Nginx default page</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oQ-F4PcLt6IXTJYBcCq4cQ.png" /></figure><h3>Common Issues and Fixes</h3><blockquote>SSH Connection Timeout</blockquote><p>Check:</p><ul><li>NSG inbound rule allows port <strong>22</strong></li><li>VM is running</li><li>You are using correct IP</li><li>You are using correct SSH key</li></ul><blockquote>Cannot Access HTTP (Port 80)</blockquote><p>Ensure:</p><ul><li>Port 80 is allowed in NSG</li><li>Nginx/Apache is installed and running</li><li>Firewall inside VM allows port 80</li></ul><h3>Final Thoughts</h3><p>Creating and setting up an Azure VM is one of the most essential skills for any cloud learner.<br> Once your VM is configured properly, you can use it for application deployment, automation, DevOps pipelines, cloud security testing, and more.</p><p>At <strong>Mass Software Solutions</strong>, we believe that sharing practical knowledge helps teams grow stronger and builds better cloud engineering practices across the community.</p><h3>What’s Next? (Part 3 Preview)</h3><p>In <strong>Part 3</strong> of this Azure Series, we will take the next step by strengthening our VM setup with more secure and practical cloud integrations. We will cover:</p><p><strong>— Configuring Managed Identity</strong> for the VM to enable secure, passwordless access to Azure services</p><p><strong>— Connecting Azure Storage</strong> (Blob/File) using identity-based access instead of keys</p><p>— Implementing <strong>more secure connectivity options</strong> and recommended security configurations</p><p>— Preparing the VM environment for smoother and safer deployment workflows</p><p>This will help us move closer to a real-world, production-ready setup with stronger security and better resource access control.</p><h3>Contributors</h3><p>This article was written by <a href="https://www.linkedin.com/in/mousumi-bakshi-8aa75b33/"><strong>Mousumi Bakshi</strong></a><strong> (Senior Solutions Architect)</strong></p><h3>Stay Connected with Massoftind</h3><p><em>Let’s Build the Future Together!</em></p><p>For your <strong>Generative AI solutions</strong> and <strong>project development needs and </strong>ongoing <strong>updates</strong>, <strong>technical articles</strong>, and <strong>insights</strong> from our team get in touch with <a href="https://masssoftwaresolutions.com/"><strong>MSS</strong></a> — we’re here to help bring your ideas to life.</p><p>👉 Follow us on <a href="https://www.linkedin.com/showcase/masstechbytes/">LinkedIn</a> and <a href="https://mass-software-solutions.medium.com/">Medium</a> for <strong>weekly tech insights</strong> and practical tips to supercharge your development journey!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d38274a345fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Azure Series: Deploying a Complete Web Application on Azure (Beginner to Production)]]></title>
            <link>https://mass-software-solutions.medium.com/azure-series-deploying-a-complete-web-application-on-azure-beginner-to-production-0c295026b834?source=rss-7c1919f4abf6------2</link>
            <guid isPermaLink="false">https://medium.com/p/0c295026b834</guid>
            <category><![CDATA[static-hosting]]></category>
            <category><![CDATA[learn-devop]]></category>
            <category><![CDATA[microsoft-azure]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[MSS]]></dc:creator>
            <pubDate>Wed, 17 Dec 2025 05:32:05 GMT</pubDate>
            <atom:updated>2025-12-17T05:32:05.956Z</atom:updated>
            <content:encoded><![CDATA[<p>Deploying a web application on <strong>Microsoft Azure</strong> for the first time can be confusing. Azure provides many services, and beginners often struggle to understand <strong>which service to use, when to use it, and how everything connects together</strong>.</p><p>This <strong>Azure Series</strong> is designed to help developers and DevOps beginners <strong>deploy a real-world web application step by step</strong>, using Azure best practices.</p><p>Instead of isolated tutorials, this series focuses on <strong>building a complete architecture</strong>, starting from frontend hosting and gradually moving toward backend services, messaging, monitoring, scalability, and performance optimization.</p><h3>Why this Azure Series is useful</h3><p>Many first-time Azure users face problems such as:</p><ul><li>Where should I host my frontend?</li><li>Do I really need a Virtual Machine?</li><li>How do I store and serve static files efficiently?</li><li>How do Azure services communicate with each other?</li><li>How do I scale and monitor my application?</li></ul><h3>Common problems beginners face in Azure</h3><p>When working with Azure for the first time, people often struggle with:</p><ul><li>Choosing between <strong>App Service, VM, or Static Web Hosting</strong></li><li>Understanding <strong>where frontend and backend should live</strong></li><li>Connecting <strong>Blob Storage with a VM</strong></li><li>Implementing <strong>background tasks</strong> (queues, workers)</li><li>Setting up <strong>logging and monitoring</strong></li><li>Improving performance using <strong>Load Balancer and CDN</strong></li></ul><p>This series addresses all of these challenges in a <strong>simple and structured way</strong>.</p><h3>Azure Series roadmap</h3><ul><li><strong>Part 1</strong>: Static Website Hosting on <strong>Azure Blob Storage</strong></li><li><strong>Part 2</strong>: <strong>Virtual Machine</strong> setup for backend API</li><li><strong>Part 3</strong>: Access <strong>Blob Storage</strong> from VM</li><li><strong>Part 4</strong>: Background processing using <strong>Azure Service Bus</strong> + Celery (Python)</li><li><strong>Part 5</strong>: Application logging with <strong>Log Analytics</strong></li><li><strong>Part 6</strong>: Load Balancer for <strong>scalability</strong></li><li><strong>Part 7</strong>: <strong>Azure CDN</strong> integration for faster global access</li></ul><h3>Part 1: Static Website Hosting on Azure Blob Storage</h3><p>In this first part, we focus on the <strong>frontend</strong> of the web application.</p><p>Azure Blob Storage provides a <strong>built-in static website hosting feature</strong>, which allows you to host HTML, CSS, and JavaScript files without managing servers. This is one of the <strong>simplest and most cost-effective</strong> ways to deploy a frontend on Azure.</p><h3>Why use Azure Blob Storage for static websites?</h3><p>Azure Blob Storage static website hosting offers:</p><ul><li>Low cost (pay only for storage and bandwidth)</li><li>No server management</li><li>High availability and scalability</li><li>Easy integration with CDN and backend services</li></ul><p>It is ideal for:</p><ul><li>Landing pages</li><li>Frontend frameworks (React, Vue, Angular — build output)</li><li>Documentation sites</li><li>Static dashboards</li></ul><h3>Architecture explanation (simple)</h3><ol><li><strong>User (Browser)</strong><br> A user opens your website using a URL in their browser.</li><li><strong>Azure Blob Storage — Static Website Endpoint</strong><br> The request goes directly to Azure Blob Storage’s static website endpoint.</li><li><strong>$web Container</strong><br> Azure serves files (HTML, CSS, JS, images) from a special container named $web.</li><li><strong>Response to User</strong><br> Azure returns the static files to the browser, and the website loads.</li></ol><p>There is <strong>no Virtual Machine</strong>, <strong>no backend</strong>, and <strong>no server logic</strong> involved at this stage.</p><h3>Prerequisites</h3><ul><li>An Azure account</li><li>A static site build folder (examples):</li><li>Plain HTML: index.html, styles.css, etc.</li><li>React/Angular: the <strong>build/dist</strong> output folder</li></ul><h3>Step 1: Create a Storage Account</h3><ol><li>Go to <strong>Azure Portal → Storage accounts → Create</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RsezcO86yyFoLW93AB32Fw.png" /></figure><ol><li>Choose:</li></ol><ul><li>Subscription: your subscription</li><li><strong>Resource group</strong>: create one like hiresense</li><li><strong>Storage account name</strong>: must be unique (e.g., demoblog1)</li><li><strong>Region</strong>: choose nearest</li><li><strong>Performance</strong>: Standard</li><li><strong>Redundancy</strong>: LRS (fine for most demos)</li><li><strong>Preferred storage type</strong> : Blob Stoarge</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Dk2_R0GZdEy-fiR3wC06g.png" /></figure><p>— Click <strong>Next</strong></p><h3>Preferred storage type (what it means)</h3><p>Azure asks for <strong>Preferred storage type</strong> to understand <strong>what kind of workload</strong> you plan to run on this storage account. This helps Azure optimize defaults and recommendations.</p><p>You’ll usually see these options:</p><p><strong>Azure Blob Storage or Azure Data Lake Storage Gen2</strong><br> Use this for:</p><ul><li>Static website hosting</li><li>Images, videos, documents</li><li>Application assets</li><li>Logs and backups</li></ul><p>👉 <strong>This is the correct choice for static website hosting</strong> and most web applications.</p><p><strong>Azure Files — </strong>Use this when:</p><ul><li>You need a <strong>shared file system</strong></li><li>Multiple VMs must access files like a network drive<br> 👉 Not suitable for static website hosting.</li></ul><p><strong>Other (Tables and Queues) </strong>Use this for:</p><ul><li>Key-value storage (Tables)</li><li>Simple message queues (Queues)<br> 👉 Not used for frontend hosting.</li></ul><p><strong>For this series</strong>, we select <strong>Azure Blob Storage</strong> because it is designed to store and serve static web content efficiently.</p><h3>Step 2 — Network access</h3><p>For static website hosting, <strong>Public network access must be enabled</strong> so users on the internet can access your website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t3TciGvF2zhNJP-uRSw-xw.png" /></figure><p>In production environments, access can later be restricted using <strong>private endpoints, selected networks, or CDN in front of Blob Storage</strong> for better security.</p><p>— Click <strong>Next</strong></p><h3>Step 3 — Encryption</h3><p>Azure encrypts all data in Blob Storage <strong>at rest by default</strong> using <strong>Microsoft-managed keys (MMK)</strong>, which is sufficient for most applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hmCNUnoFjwINNhLg4RYHCw.png" /></figure><p>Customer-managed keys and infrastructure encryption are typically required only for <strong>strict compliance or enterprise security policies</strong>, so we keep the default settings for this setup.</p><p>Click <strong>Review + Create → Create</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n8HdkH3Uu-qWScPdEpz0XA.png" /></figure><p>Once <strong>Validated</strong> Click <strong>→ Create</strong></p><h3>Step 4: Enable Static Website hosting</h3><ol><li>Open your Storage Account</li><li>Go to <strong>Data management → Static website</strong></li><li>Toggle <strong>Enabled</strong></li><li>Set:</li></ol><ul><li><strong>Index document name</strong>: index.html</li><li><strong>Error document path</strong>: index.html (optional but recommended)</li></ul><p>Click <strong>Save. </strong>After saving, Azure will generate a <strong>Primary endpoint</strong> like:</p><p>https://&lt;storage-name&gt;.z13.web.core.windows.net/</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kNwNGD73mHhHyYIyiz8cKQ.png" /></figure><p>This endpoint is your static website URL.</p><h3>Step 5: Upload your site files to $web</h3><ol><li>Go to <strong>Data storage → Containers</strong></li><li>You’ll see a container created automatically: <strong>$web</strong></li><li>Open $web → <strong>Upload</strong></li><li>Upload your static files:</li><li>index.html must be at the root Include CSS/JS/assets folders as needed</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zufUOGrY4696zDEIwO11hQ.png" /></figure><p>— Example structure inside $web:</p><ul><li>index.html</li><li>assets/</li><li>css/</li><li>js/</li></ul><h3>Step 6: Test your website</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yoU3gKIfe416xVYLe6ypoQ.png" /></figure><p>Open the <strong>Primary endpoint</strong> in your browser- <a href="https://demoblog1.z13.web.core.windows.net/">https://demoblog1.z13.web.core.windows.net/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CRkxD6lRtDD_HP4KyhrkTQ.png" /></figure><p>If you get 404:</p><ul><li>Make sure index.html exists in $web root</li><li>Confirm the index document setting is index.html</li></ul><h3>Common issues (quick fixes)</h3><h3>1) Site loads but CSS/JS is broken</h3><p>This usually happens due to wrong paths.</p><p>For React/Vue builds:</p><ul><li>Ensure the build is produced with correct base href or publicPath</li><li>Prefer <strong>relative paths</strong> when possible</li></ul><h3>2) You updated files but browser shows old version</h3><p>That’s caching.</p><ul><li>Hard refresh (Ctrl + Shift + R)</li><li>Later in the series, <strong>CDN</strong> will make caching more powerful (and needs cache invalidation strategy).</li></ul><h3>What’s next?</h3><p>👉 In <strong>Part 2</strong>, we will set up a <strong>Virtual Machine</strong> and start building the backend side of the application.</p><h3>Contributors</h3><p>This article was written by <a href="https://www.linkedin.com/in/mousumi-bakshi-8aa75b33/"><strong>Mousumi Bakshi</strong></a><strong> (Senior Solutions Architect)</strong></p><p><strong>Let’s Build the Future Together!</strong><br>For your <strong>Generative AI solutions</strong> and <strong>project development needs</strong>, get in touch with <a href="https://masssoftwaresolutions.com/"><strong>MSS</strong></a> — we’re here to help bring your ideas to life.</p><p>👉 Follow us on <a href="https://www.linkedin.com/showcase/masstechbytes/">LinkedIn</a> and <a href="https://mass-software-solutions.medium.com/">Medium</a> for <strong>weekly tech insights</strong> and practical tips to supercharge your development journey!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0c295026b834" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Amazon S3 Vectors — S3 Embedding Series — Part 1: Serverless Semantic Search with Amazon S3 Vectors]]></title>
            <link>https://mass-software-solutions.medium.com/amazon-s3-vectors-s3-embedding-series-part-1-serverless-semantic-search-with-amazon-s3-vectors-7c13e98e4c17?source=rss-7c1919f4abf6------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c13e98e4c17</guid>
            <category><![CDATA[rag-application]]></category>
            <category><![CDATA[qdrant]]></category>
            <category><![CDATA[vector-embeddings]]></category>
            <category><![CDATA[vector-database]]></category>
            <category><![CDATA[aws-s3]]></category>
            <dc:creator><![CDATA[MSS]]></dc:creator>
            <pubDate>Mon, 18 Aug 2025 04:01:58 GMT</pubDate>
            <atom:updated>2025-08-18T04:01:58.949Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Amazon S3 Vectors — <em>S3 Embedding Series — Part 1: Serverless Semantic Search with Amazon S3 Vectors</em></strong></h3><h4><strong>Introduction</strong></h4><p>In the age of AI, vector embeddings are at the heart of semantic search, recommendations, and Retrieval-Augmented Generation (RAG). Until now, if you wanted to store and search embeddings, you needed to run a vector database like <strong>Qdrant</strong>, <strong>Pinecone</strong>, or <strong>Weaviate</strong>.</p><p>But now, AWS has changed the game.</p><p>Meet “<strong>Amazon S3 Vectors”</strong> — a <strong>serverless vector database</strong> embedded directly into <strong>Amazon S3</strong>. It lets you store, index, and query high-dimensional embeddings <strong>without managing any infrastructure</strong>.</p><p><strong>Part of the S3 Embedding Series</strong></p><blockquote><strong><em>Part 1</em></strong>: Introduction to S3 Vectors &amp; Serverless Semantic Search with Amazon S3 Vectors</blockquote><blockquote><strong><em>Part 2</em></strong>: Beyond Text: Storing and Searching Image Embeddings in S3 Vectors <em>*</em><strong><em>(coming soon)</em></strong><em>*</em></blockquote><blockquote><strong><em>Part 3</em></strong>: Serverless Enterprise Search with S3 Vectors, Lambda, and Athena <em>*</em><strong><em>(coming soon)</em></strong><em>*</em></blockquote><h4><strong>What Is S3 Vectors?</strong></h4><p>S3 Vectors is a new feature of Amazon S3 that turns your S3 bucket into a <strong>vector-capable store</strong>. It enables:</p><p>- Native storage of vectors (`float32`)</p><p>- Automatic indexing</p><p>- <strong>Semantic similarity search</strong> with the `QueryVectors` API</p><p>- Metadata filtering</p><p>- Seamless integration with Bedrock, SageMaker, and OpenSearch</p><h4><strong>Why It Matters for AI &amp; RAG</strong></h4><p>Traditional RAG pipelines need:</p><p>- A retriever (typically FAISS or Qdrant)</p><p>- An embedding store (local or cloud)</p><p>- A generator (LLM)</p><p>With <strong>S3 Vectors</strong>, the retriever and store are <strong>merged into S3</strong>, meaning:</p><p>- No infra to deploy</p><p>- Scalable with your storage</p><p>- Integrated with your existing S3 data lake</p><h4><strong>Hands-on Example: PDF Ingestion &amp; Search</strong></h4><ol><li>Craete s3 vector bucket in AWS</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*miwXyWy3AJF8Xa3Et5AYrQ.png" /></figure><p>2. Install dependencies:</p><pre>pip install boto3 python-dotenv PyPDF2 openai</pre><p>3. Set `.env` variables:</p><pre>AWS_REGION=us-west-2<br>VECTOR_BUCKET=your_s3_vector_bucket_name<br>VECTOR_INDEX=your_s3_vector_index</pre><h4><strong>4. Ingest PDFs into S3 Vectors</strong></h4><p>Use the script from `ingest_vector.py` to:</p><p>1. Extract text from each PDF page</p><p>2. Chunk into ~500 tokens</p><p>3. Generate embeddings (OpenAI or any model)</p><p>4. Store in <strong>S3 Vector Index</strong> with metadata</p><blockquote>python ingest_vector.py</blockquote><pre>import os<br>import json<br>from utils import extract_pdf_text, chunk_text, get_embedding<br>from dotenv import load_dotenv<br>import boto3<br>from botocore.exceptions import ClientError<br><br>load_dotenv()<br><br>VECTOR_BUCKET=your_s3_vector_bucket_name<br>VECTOR_INDEX=your_s3_vector_index<br>REGION = &quot;us-west-2&quot;<br><br>if not VECTOR_BUCKET or not VECTOR_INDEX:<br>    raise ValueError(&quot;S3_VECTOR_BUCKET and S3_VECTOR_INDEX environment variables must be set.&quot;)<br><br>s3vectors = boto3.client(&quot;s3vectors&quot;, region_name=REGION)<br><br>BATCH_SIZE = 10  # Number of vectors to insert per batch<br><br># Only create the index if it does not exist<br>print(VECTOR_BUCKET)<br>def ensure_index_exists():<br>    try:<br>        s3vectors.get_index(<br>            vectorBucketName=VECTOR_BUCKET,<br>            indexName=VECTOR_INDEX<br>        )<br>        print(f&quot;Index &#39;{VECTOR_INDEX}&#39; already exists.&quot;)<br>    except ClientError as e:<br>        error_code = e.response[&#39;Error&#39;][&#39;Code&#39;]<br>        if error_code == &#39;NotFoundException&#39;:<br>            s3vectors.create_index(<br>                vectorBucketName=VECTOR_BUCKET,<br>                indexName=VECTOR_INDEX,<br>                dimension=1536,  # or your embedding dimension<br>                dataType=&quot;float32&quot;,<br>                distanceMetric=&quot;cosine&quot;  # or &quot;Euclidean&quot;<br>            )<br>            print(f&quot;Index &#39;{VECTOR_INDEX}&#39; created!&quot;)<br>        else:<br>            raise<br><br>def ingest_pdf_to_vector_index(pdf_file):<br>    pdf_path = os.path.join(&quot;pdfs&quot;, pdf_file)<br>    pages = extract_pdf_text(pdf_path)<br>    vectors = []<br>    for page in pages:<br>        page_num = page[&quot;page_number&quot;]<br>        chunks = chunk_text(page[&quot;text&quot;])<br>        for idx, chunk in enumerate(chunks):<br>            embedding = get_embedding(chunk)<br>            vector_id = f&quot;{pdf_file}_p{page_num}_c{idx}&quot;<br>            metadata = {<br>                &quot;file_name&quot;: pdf_file,<br>                &quot;page_number&quot;: str(page_num),<br>                &quot;chunk_index&quot;: str(idx),<br>                &quot;chunk_text&quot;: chunk[:500]  # Truncate for metadata<br>            }<br>            vectors.append({<br>                &quot;key&quot;: vector_id,<br>                &quot;data&quot;: {&quot;float32&quot;: embedding},<br>                &quot;metadata&quot;: metadata<br>            })<br>            if len(vectors) == BATCH_SIZE:<br>                s3vectors.put_vectors(<br>                    vectorBucketName=VECTOR_BUCKET,<br>                    indexName=VECTOR_INDEX,<br>                    vectors=vectors<br>                )<br>                vectors = []<br>    # Insert any remaining vectors<br>    if vectors:<br>        s3vectors.put_vectors(<br>            vectorBucketName=VECTOR_BUCKET,<br>            indexName=VECTOR_INDEX,<br>            vectors=vectors<br>        )<br>    print(f&quot;Ingestion to S3 Vector index complete for {pdf_file}.&quot;)<br><br>if __name__ == &quot;__main__&quot;:<br>    ensure_index_exists()<br>    pdf_dir = &quot;pdfs&quot;<br>    for file_name in os.listdir(pdf_dir):<br>        if file_name.lower().endswith(&quot;.pdf&quot;):<br>            ingest_pdf_to_vector_index(file_name) </pre><p>You’ll see:</p><blockquote>Index ‘your_vector_index’ created!</blockquote><blockquote>Ingestion to S3 Vector index complete for report.pdf.</blockquote><h4><strong>5. Semantic Search via Query</strong></h4><p>The `search_vector.py` script sends a user query, gets its embedding, and retrieves the top K matches:</p><blockquote>python search_vector.py “What is the impact of GenAI on banking?”</blockquote><pre>import os<br>import sys<br>import json<br>from utils import get_embedding<br>from dotenv import load_dotenv<br>import boto3<br><br>load_dotenv()<br><br>VECTOR_BUCKET=your_s3_vector_bucket_name<br>VECTOR_INDEX=your_s3_vector_index<br>REGION = &quot;us-west-2&quot;<br><br>if not VECTOR_BUCKET or not VECTOR_INDEX:<br>    raise ValueError(&quot;S3_VECTOR_BUCKET and S3_VECTOR_INDEX environment variables must be set.&quot;)<br><br>s3vectors = boto3.client(&quot;s3vectors&quot;, region_name=REGION)<br><br>def search_vector_index(query: str, top_k: int = 3):<br>    query_emb = get_embedding(query)<br>    response = s3vectors.query_vectors(<br>        vectorBucketName=VECTOR_BUCKET,<br>        indexName=VECTOR_INDEX,<br>        queryVector={&quot;float32&quot;: query_emb},<br>        topK=top_k,<br>        returnDistance=True,<br>        returnMetadata=True<br>    )<br>    matches = response.get(&quot;vectors&quot;, [])<br>    if not matches:<br>        print(&quot;No matches found.&quot;)<br>        return<br>    for match in matches:<br>        score = match.get(&quot;distance&quot;)<br>        meta = match.get(&quot;metadata&quot;, {})<br>        print(f&quot;Score: {score:.3f}\nFile: {meta.get(&#39;file_name&#39;)} | Page: {meta.get(&#39;page_number&#39;)} | Chunk: {meta.get(&#39;chunk_index&#39;)}\nText: {meta.get(&#39;chunk_text&#39;, &#39;&#39;)[:200]}...\n---&quot;)<br><br>if __name__ == &quot;__main__&quot;:<br>    if len(sys.argv) &lt; 2:<br>        print(&quot;Usage: python search_vector.py &#39;your query text&#39;&quot;)<br>        sys.exit(1)<br>    query = sys.argv[1]<br>    search_vector_index(query) </pre><p>Example output:</p><blockquote>Score: 0.12</blockquote><blockquote>File: report1.pdf | Page: 3 | Chunk: 1</blockquote><blockquote>Text: Generative AI is redefining banking by…</blockquote><h3><strong>Qdrant vs. S3 Vectors: Feature</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hNJG7iRYqjOSoC4z32ZHuQ.png" /></figure><h3><strong>When to Use S3 Vectors</strong></h3><p>Use <strong>S3 Vectors</strong> if you want:</p><p>- Document/semantic search at scale</p><p>- Serverless architecture (no DBs to maintain)</p><p>- Integration with AWS-native workflows</p><p>- Simplicity over complexity</p><h3><strong>When Qdrant Makes Sense</strong></h3><p>Use <strong>Qdrant</strong> if you need:</p><p>- Real-time response for interactive apps</p><p>- Score filtering, complex query logic</p><p>- Open-source extensibility and custom logic</p><p>- AI experiments needing full vector query control</p><h3><strong>Hybrid Strategy (Best of Both Worlds)</strong></h3><p>You can even combine the two:</p><p>- <strong>S3 Vectors</strong> as cold, scalable embedding store</p><p>- <strong>Qdrant</strong> as real-time hot index for frequently queried data</p><h3><strong>Final Thoughts</strong></h3><p>Amazon S3 Vectors is a <strong>big leap forward</strong> for AI developers building RAG, search, and assistant systems. By embedding vector search into storage, AWS makes semantic retrieval <strong>as simple as uploading to S3</strong>.</p><p>For many teams, it eliminates the need to manage another database — and for others, it becomes a perfect long-term backend for embedding-driven systems.</p><p><strong>Resources</strong></p><p>- [Official AWS S3 Vectors Documentation](<a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-vectors.html">https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-vectors.html</a>)</p><h3>Contributors</h3><p>This article was written by <a href="https://www.linkedin.com/in/mousumi-bakshi-8aa75b33/"><strong>Mousumi Bakshi</strong></a><strong> (Senior Solutions Architect)</strong></p><p><strong>Let’s Build the Future Together!</strong><br>For your <strong>Generative AI solutions</strong> and <strong>project development needs</strong>, get in touch with <a href="https://masssoftwaresolutions.com/"><strong>MSS</strong></a> — we’re here to help bring your ideas to life.</p><p>👉 Follow us on <a href="https://www.linkedin.com/showcase/masstechbytes/">LinkedIn</a> and <a href="https://mass-software-solutions.medium.com/">Medium</a> for <strong>weekly tech insights</strong> and practical tips to supercharge your development journey!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c13e98e4c17" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Architecting Activity Log Analytics on S3 + Athena — Without Glue]]></title>
            <link>https://mass-software-solutions.medium.com/architecting-activity-log-analytics-on-s3-athena-without-glue-a07a8a3bd037?source=rss-7c1919f4abf6------2</link>
            <guid isPermaLink="false">https://medium.com/p/a07a8a3bd037</guid>
            <category><![CDATA[application-logs]]></category>
            <category><![CDATA[cost-optimization]]></category>
            <category><![CDATA[s3]]></category>
            <category><![CDATA[parquet]]></category>
            <category><![CDATA[athena]]></category>
            <dc:creator><![CDATA[MSS]]></dc:creator>
            <pubDate>Fri, 25 Jul 2025 09:59:57 GMT</pubDate>
            <atom:updated>2025-07-25T09:59:57.738Z</atom:updated>
            <content:encoded><![CDATA[<h3>Architecting Activity Log Analytics on S3 + Athena — Without Glue</h3><p>A <strong>Step-by-Step Guide with Code to Store, Partition, and Query Logs </strong>Efficiently<strong> </strong>— Plus Our <strong>Migration Story from MongoDB to S3 + Athena</strong></p><h3>Why This Matters</h3><p>When building any modern cloud-native application — whether it’s a SaaS platform, mobile backend, or analytics dashboard — <strong>activity logging is critical</strong>. But logging isn’t just about writing files. You need:</p><ul><li>Structured, queryable logs</li><li>Cost-efficient storage</li><li>Scalable analytics</li></ul><p>That’s where <strong>Amazon S3 + Athena</strong> shines. Even better — you can do it <strong>without AWS Glue</strong>, making it lightweight, fast to prototype, and free of crawler overhead.</p><h4>Architecture Overview</h4><p>Here’s what we’ll build:</p><ul><li>Store activity logs in <strong>S3</strong> as <strong>Parquet</strong> files for performance</li><li>Partition data by main_event_id, year, month, and day</li><li>Query logs efficiently using <strong>Amazon Athena</strong></li><li>Skip AWS Glue — define schema manually</li><li>Everything is easily automatable with Python + Boto3</li></ul><h4>What Are Activity Logs?</h4><p>Here’s a sample log entry:</p><pre>{<br>  &quot;fk_company_id&quot;: 101,<br>  &quot;fk_project_id&quot;: 201,<br>  &quot;done_by_id&quot;: 1,<br>  &quot;done_by_email&quot;: &quot;alice@example.com&quot;,<br>  &quot;done_by_name&quot;: &quot;Alice&quot;,<br>  &quot;main_event_id&quot;: 15,<br>  &quot;action_name&quot;: &quot;Update&quot;,<br>  &quot;action_date&quot;: &quot;2025-07-04T10:15:30Z&quot;,<br>  &quot;sub_event_id&quot;: 51,<br>  &quot;log_details&quot;: &quot;{\&quot;msg\&quot;: \&quot;Capital adjusted successfully.\&quot;}&quot;<br>}</pre><p><strong>Why Use Parquet Instead of JSON?</strong></p><p>When storing activity logs, you might be tempted to just dump raw JSON files into S3. It’s simple. It works. But it <strong>doesn’t scale</strong> well.</p><h4>Real Impact Example</h4><p>Let’s say you store 1 million log records:</p><p>In <strong>JSON</strong>, this might be 1.5 GB of text</p><p>In <strong>Parquet</strong>, it could be as small as <strong>150 MB</strong></p><p>With Athena pricing at <strong>$5 per TB scanned</strong>, using Parquet can save <strong>90%+ in cost</strong> per query!</p><h4>Bonus: Column Pruning in Action</h4><p>If your JSON has 20 fields but your Athena query selects only 2 fields:</p><ul><li><strong>Parquet</strong> will read only those 2 columns</li><li><strong>JSON</strong> will scan the entire 1.5 GB file regardless</li></ul><p>That’s not just slower — it’s expensive.</p><p>Here’s a detailed comparison of <strong>why Parquet is preferred over JSON for S3 logs</strong>, explained in bullet points:</p><ul><li><strong>Columnar Storage for Faster Queries:</strong><br> Parquet stores data in a <strong>columnar format</strong>, meaning only the columns required by a query are read from storage. JSON is row-based, so every field in every record must be scanned, which slows down queries and increases costs.</li><li><strong>Significant Cost Savings with Athena:</strong><br> Since Athena pricing is based on the amount of data scanned, Parquet’s ability to <strong>read only required columns and compressed data</strong> drastically reduces the number of bytes processed, resulting in much lower query costs compared to JSON.</li><li><strong>Built-in Compression and Encoding:</strong><br> Parquet inherently supports <strong>highly efficient compression (like Snappy, Gzip)</strong> and data encoding, reducing storage size by <strong>up to 10x</strong> compared to raw JSON. JSON is plain text and less compact.</li><li><strong>Schema Evolution Support:</strong><br> Parquet supports <strong>rich schema definitions</strong> and data types (e.g., INT, FLOAT, TIMESTAMP), making it easier to query and integrate with analytics tools. JSON is schemaless, requiring constant parsing and type inference during queries, which is slower.</li><li><strong>Better Performance with Partitioned Data:</strong><br> When combined with S3 partitioning, Parquet’s columnar layout allows Athena to <strong>skip irrelevant partitions and columns</strong>, making queries faster. JSON files still need to be fully parsed, even within partitions.</li><li><strong>Compatibility with Data Analytics Tools:</strong><br> Parquet is widely used in <strong>big data ecosystems (Spark, Presto, Hive, EMR)</strong>, ensuring smooth integration for ETL and analytics pipelines. JSON is less optimized for these environments.</li><li><strong>Reduced Network I/O and Memory Footprint:</strong><br> Smaller, compressed Parquet files mean <strong>less data transfer from S3 to Athena</strong> and <strong>less memory usage</strong> during queries, improving performance and reducing resource consumption.</li></ul><h4>Choose Parquet for Logs If You:</h4><ul><li>Want <strong>faster query performance</strong></li><li>Need <strong>lower storage and query costs</strong></li><li>Prefer <strong>schema enforcement</strong></li><li>Are building any kind of <strong>data lake or analytics platform</strong></li></ul><h4>Step 1: Prepare Logs in Parquet Format</h4><p>Parquet is <strong>columnar</strong>, <strong>compressed</strong>, and far more efficient than JSON.</p><h4>Convert Logs Using Python</h4><pre>import pandas as pd<br>import pyarrow as pa<br>import pyarrow.parquet as pq<br><br># Sample logs<br>logs = [<br>    {<br>        &quot;fk_company_id&quot;: 101,<br>        &quot;fk_project_id&quot;: 201,<br>        &quot;done_by_id&quot;: 1,<br>        &quot;done_by_email&quot;: &quot;alice@example.com&quot;,<br>        &quot;done_by_name&quot;: &quot;Alice&quot;,<br>        &quot;main_event_id&quot;: 15,<br>        &quot;action_name&quot;: &quot;Update&quot;,<br>        &quot;action_date&quot;: &quot;2025-07-04T10:15:30Z&quot;,<br>        &quot;sub_event_id&quot;: 51,<br>        &quot;log_details&quot;: &#39;{&quot;msg&quot;: &quot;Capital adjusted successfully.&quot;}&#39;<br>    }<br>]<br># DataFrame + schema enforcement<br>df = pd.DataFrame(logs)<br>df[&quot;action_date&quot;] = pd.to_datetime(df[&quot;action_date&quot;])<br>df = df.astype({<br>    &quot;fk_company_id&quot;: &quot;int32&quot;,<br>    &quot;fk_project_id&quot;: &quot;int32&quot;,<br>    &quot;done_by_id&quot;: &quot;int32&quot;,<br>    &quot;sub_event_id&quot;: &quot;int32&quot;,<br>    &quot;main_event_id&quot;: &quot;int32&quot;<br>})<br># Save to Parquet<br>table = pa.Table.from_pandas(df)<br>pq.write_table(table, &quot;log.parquet&quot;, compression=&quot;snappy&quot;)</pre><h4>Step 2: Upload to S3 with Partitioned Folders</h4><p>Create this folder path:</p><pre>s3://your-bucket-name/audit_logs/<br> └── main_event_id=15/<br>     └── year=2025/<br>         └── month=07/<br>             └── day=04/<br>                 └── log.parquet</pre><p>Upload with AWS CLI:</p><pre>aws s3 cp log.parquet s3://your-bucket-name/audit_logs/main_event_id=15/year=2025/month=07/day=04/</pre><h4>Step 3: Create Athena Table (No Glue!)</h4><p>Run this DDL in Athena:</p><pre>CREATE EXTERNAL TABLE IF NOT EXISTS audit_logs (<br>  fk_company_id INT,<br>  fk_project_id INT,<br>  done_by_id INT,<br>  done_by_email STRING,<br>  done_by_name STRING,<br>  action_name STRING,<br>  action_date TIMESTAMP,<br>  sub_event_id INT,<br>  log_details STRING<br>)<br>PARTITIONED BY (<br>  main_event_id INT,<br>  year STRING,<br>  month STRING,<br>  day STRING<br>)<br>STORED AS PARQUET<br>LOCATION &#39;s3://your-bucket-name/audit_logs/&#39;<br>TBLPROPERTIES (&#39;parquet.compress&#39;=&#39;SNAPPY&#39;);</pre><h4>Step 4: Add Partition</h4><p>When you upload a new day of logs or a new event ID, add that as a partition:</p><pre>ALTER TABLE audit_logs ADD IF NOT EXISTS <br>PARTITION (main_event_id=15, year=&#39;2025&#39;, month=&#39;07&#39;, day=&#39;04&#39;)<br>LOCATION &#39;s3://your-bucket-name/audit_logs/main_event_id=15/year=2025/month=07/day=04/&#39;;</pre><h4>Step 5: Query Logs with SQL</h4><p>Now you can run blazing-fast SQL queries on raw log data:</p><pre>SELECT * FROM audit_logs<br>WHERE main_event_id = 15<br>  AND year = &#39;2025&#39;<br>  AND month = &#39;07&#39;<br>  AND day = &#39;04&#39;;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S_2AIG3zpcHwMnLc2jjdXA.png" /></figure><h4>Bonus: Automate Partitioning with Python</h4><pre>import boto3<br>athena = boto3.client(&#39;athena&#39;)<br>def add_partition(event_id, year, month, day):<br>    location = f&quot;s3://your-bucket-name/audit_logs/main_event_id={event_id}/year={year}/month={month}/day={day}/&quot;<br>    sql = f&quot;&quot;&quot;<br>    ALTER TABLE audit_logs ADD IF NOT EXISTS <br>    PARTITION (main_event_id={event_id}, year=&#39;{year}&#39;, month=&#39;{month}&#39;, day=&#39;{day}&#39;)<br>    LOCATION &#39;{location}&#39;;<br>    &quot;&quot;&quot;<br>    athena.start_query_execution(<br>        QueryString=sql,<br>        QueryExecutionContext={&quot;Database&quot;: &quot;default&quot;},<br>        ResultConfiguration={&quot;OutputLocation&quot;: &quot;s3://your-query-results/&quot;}<br>    )</pre><h3>Migration from MongoDB to Amazon S3 + Athena</h3><p><strong>Why We Migrated:</strong><br> We transitioned from MongoDB to an S3 + Athena architecture to significantly reduce infrastructure costs and gain more flexibility for analytics. The pay-per-query model and serverless architecture of Athena allow us to handle large datasets without managing complex database infrastructure.</p><h4>Cost Impact</h4><ul><li>By migrating from MongoDB to S3 + Athena, we have observed a <strong>cost reduction of approximately 60–70%</strong> on monthly database and storage expenses.</li><li><strong>MongoDB Costs:</strong> Always-on instances and storage for large datasets incurred fixed monthly charges, regardless of query frequency.</li><li><strong>S3 + Athena Costs:</strong> With low-cost S3 storage and a <strong>pay-as-you-go</strong> model for queries, costs scale only when data is actively queried.</li><li>We also eliminated expenses for <strong>indexing, replication servers, and backup clusters</strong>, which further contributed to cost savings.</li></ul><h3>Quick Comparison Table</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*JioKKJYiAF2MM00zO-SVAw.png" /></figure><h4>Key Differences</h4><p><strong>1. Cost Efficiency</strong></p><p><strong>MongoDB:</strong></p><ul><li>Requires dedicated instances (self-hosted or Atlas) with ongoing compute and storage costs.</li><li>Costs scale with dataset size, indexes, and performance requirements.</li><li>Continuous costs even for infrequent queries due to always-on infrastructure.</li></ul><p><strong>S3 + Athena:</strong></p><ul><li><strong>Pay-per-query model</strong> — you only pay when running queries.</li><li>S3 provides <strong>low-cost, durable object storage</strong> (11 nines durability) with no provisioning overhead.</li><li>No server costs; infrastructure is fully managed by AWS, reducing operational expenses.</li></ul><p><strong>2. Query Engine and Data Access</strong></p><p><strong>MongoDB:</strong></p><ul><li>Document-based database, optimized for fast operational queries (CRUD).</li><li>Requires indexing strategies to ensure performance for large datasets.</li></ul><p><strong>Athena (with S3):</strong></p><ul><li>Serverless, SQL-based query engine that works directly on data stored in S3.</li><li>Ideal for <strong>ad-hoc analytics</strong>, reporting, and data exploration without data movement.</li><li>Uses <strong>Presto/Trino under the hood</strong>, with support for various file formats (Parquet, ORC, JSON, CSV).</li></ul><p><strong>3. Scalability</strong></p><p><strong>MongoDB</strong></p><ul><li>Horizontal scaling is possible (sharding), but involves significant management complexity and costs.</li></ul><p><strong>S3 + Athena:</strong></p><ul><li>Automatically scales to handle <strong>large-scale analytics</strong> across petabytes of data without manual provisioning.</li></ul><p><strong>4. Maintenance &amp; Operations</strong></p><p><strong>MongoDB:</strong></p><ul><li>Requires backups, replication, performance tuning, and instance scaling.</li><li>Higher operational overhead for large-scale deployments.</li></ul><p><strong>S3 + Athena</strong></p><ul><li>Fully managed, <strong>no server maintenance</strong>, <strong>automatic high availability</strong>, and <strong>no infrastructure tuning</strong>.</li></ul><p><strong>5. Use Cases</strong></p><ul><li><strong>MongoDB:</strong> Ideal for real-time transactional workloads.</li><li><strong>S3 + Athena:</strong> Best suited for <strong>batch analytics, BI reporting, and historical data queries</strong>.</li></ul><h3>The Takeaway</h3><p>By moving to <strong>S3 + Athena</strong>, we’ve shifted from managing infrastructure to focusing on insights and analytics. This approach gives us <strong>scalability on demand, minimal maintenance, and major cost savings</strong>, making it the right fit for our current data strategy.</p><h3>Final Thoughts</h3><p>This approach gives you:</p><blockquote>Scalable log analytics</blockquote><blockquote>Cost savings with Parquet &amp; partitioning</blockquote><blockquote>Flexibility (no Glue dependency)</blockquote><blockquote>Fast queries via Athena</blockquote><p>You can easily plug this into real-time pipelines using Lambda or Airflow. For production systems, consider lifecycle policies to auto-expire S3 data.</p><h3>Contributors</h3><p>This article was written by <a href="https://www.linkedin.com/in/mousumi-bakshi-8aa75b33/"><strong>Mousumi Bakshi</strong></a><strong> (Senior Solutions Architect)</strong></p><p><strong>Let’s Build the Future Together!</strong><br>For your <strong>Generative AI solutions</strong> and <strong>project development needs</strong>, get in touch with <a href="https://masssoftwaresolutions.com/"><strong>MSS</strong></a> — we’re here to help bring your ideas to life.</p><p>👉 Follow us on <a href="https://www.linkedin.com/showcase/masstechbytes/">LinkedIn</a> and <a href="https://mass-software-solutions.medium.com/">Medium</a> for <strong>weekly tech insights</strong> and practical tips to supercharge your development journey!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a07a8a3bd037" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS and Azure in 2025: Why Smart Teams Build With Both, Not Just One]]></title>
            <link>https://mass-software-solutions.medium.com/aws-and-azure-in-2025-why-smart-teams-build-with-both-not-just-one-b3ce3d49ff35?source=rss-7c1919f4abf6------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3ce3d49ff35</guid>
            <category><![CDATA[cloudops]]></category>
            <category><![CDATA[aws-sagemaker]]></category>
            <category><![CDATA[azure-devops]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[MSS]]></dc:creator>
            <pubDate>Fri, 20 Jun 2025 08:35:54 GMT</pubDate>
            <atom:updated>2025-06-20T08:35:54.792Z</atom:updated>
            <content:encoded><![CDATA[<p>Cloud computing isn’t just a backend choice — it’s a <strong>business strategy</strong> that impacts everything from product velocity to innovation capacity.</p><p>In the modern enterprise, two platforms dominate the discussion: <strong>Amazon Web Services (AWS)</strong> and <strong>Microsoft Azure</strong>.</p><p>While both offer enterprise-grade infrastructure, high availability, and robust services, they shine in very different areas. And in 2025, cloud strategy isn’t about picking one — it’s about <strong>knowing where each excels</strong>.</p><h3>AWS: The Cloud Innovation Powerhouse</h3><p><strong>Amazon Web Services</strong> remains the pioneer of public cloud infrastructure. Since its launch in 2006, AWS has built the most comprehensive service portfolio available.</p><h3>Why AWS Continues to Lead the Cloud Innovation Race</h3><p><strong>Amazon Web Services</strong> isn’t just the oldest major cloud platform — it’s also the most comprehensive. Since launching in 2006, AWS has become a favorite for developers, startups, and high-scale tech companies.</p><h4>What AWS Does Best:</h4><p><strong>— Unmatched Breadth and Depth of Services</strong></p><ul><li>200+ services across compute, storage, AI, machine learning, analytics, IoT, and more.</li><li>Core services like <strong>EC2</strong>, <strong>S3</strong>, <strong>RDS</strong>, and <strong>CloudFront</strong> offer massive flexibility and scalability.</li></ul><p><strong>— Machine Learning &amp; AI Leadership</strong></p><ul><li>Tools like <strong>SageMaker</strong> enable end-to-end ML workflows.</li><li><strong>Bedrock</strong> lets you build generative AI apps using foundation models.</li><li>Vision, speech, NLP tools (like Rekognition, Polly, Comprehend) are production-ready.</li></ul><p><strong>— Global Infrastructure</strong></p><ul><li>AWS operates in <strong>100+ Availability Zones</strong> across <strong>30+ regions</strong>, more than any other provider.</li></ul><p><strong>— Customization for Developers</strong></p><ul><li>SDKs for every major language.</li><li>Extensive CLI support, deep integration with infrastructure-as-code tools like Terraform and CloudFormation.</li></ul><p><strong>— Security and Compliance at Scale</strong></p><ul><li>Over 90 compliance certifications.</li><li>Fine-grained IAM policies, threat detection via <strong>GuardDuty</strong>, and data encryption options.</li></ul><h3>Why Azure Wins with Enterprises and Hybrid Cloud</h3><p><strong>Microsoft Azure</strong> has surged in popularity, especially among large enterprises. If your organization runs on Microsoft technologies — Windows Server, Active Directory, Office 365, Dynamics — Azure fits like a glove.</p><h3>What Azure Does Best:</h3><p><strong>— Enterprise-Grade Integration</strong></p><ul><li>Seamless connection with <strong>Office 365</strong>, <strong>Teams</strong>, <strong>SharePoint</strong>, and <strong>Windows environments</strong>.</li><li>Azure Active Directory (AAD) extends identity management across cloud and on-prem.</li></ul><p><strong>— Hybrid Cloud Excellence</strong></p><ul><li>Tools like <strong>Azure Arc</strong> and <strong>Azure Stack</strong> enable hybrid and multi-cloud setups.</li><li>Ideal for organizations with both cloud and on-prem systems (e.g., banks, government, healthcare).</li></ul><p><strong>— Cost Efficiency with Existing Licenses</strong></p><ul><li><strong>Azure Hybrid Benefit</strong> allows customers to use their Windows Server and SQL Server licenses to save on cloud costs.</li></ul><p><strong>— Integrated Data Analytics</strong></p><ul><li><strong>Azure Synapse Analytics</strong>, <strong>Data Factory</strong>, and <strong>Power BI</strong> deliver powerful insights across systems.</li><li>Great for enterprises investing in BI and real-time reporting.</li></ul><p><strong>— Compliance-Ready for Regulated Industries</strong></p><ul><li>Deep support for industries like healthcare (HIPAA), finance (SOX), and public sector (FedRAMP, ITAR).</li></ul><h3>Azure: AI-Forward</h3><p><strong>Microsoft Azure</strong> has risen to dominate the enterprise cloud space, and it’s winning major ground in <strong>AI adoption</strong> — especially thanks to <strong>its exclusive partnership with OpenAI</strong>.</p><h3>What Makes Azure Stand Out:</h3><ul><li>Seamless integration with <strong>Office 365, SharePoint, Teams, and Windows Server</strong>.</li><li>Hybrid cloud tools like <strong>Azure Arc</strong> and <strong>Azure Stack</strong> offer unmatched multicloud flexibility.</li><li><strong>Power BI</strong>, <strong>Azure Synapse</strong>, and <strong>Data Factory</strong> enable robust analytics workflows.</li><li>Azure Government and industry-specific cloud services address <strong>strict compliance needs</strong>.</li></ul><h3>AWS vs Azure: Head-to-Head Comparison</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lVJiO2BStI946oShJjyPdg.png" /></figure><h3>AI in Azure: The OpenAI Advantage</h3><p>In 2025, <strong>AI is no longer a buzzword</strong> — it’s a requirement. Whether it’s customer service, personalization, document generation, or predictive analytics, <strong>AI is embedded into every modern product</strong>.</p><h3>Why Azure Is a Game-Changer for AI Projects</h3><p><strong>— Exclusive OpenAI Partnership</strong></p><ul><li>Microsoft is the <strong>only cloud provider offering full access to OpenAI’s models (GPT-4, GPT-4o, DALL·E, Whisper, Codex)</strong> via Azure.</li><li>Azure OpenAI Service lets you <strong>deploy these models in a secure, compliant environment</strong> — ideal for regulated industries.</li></ul><p><strong>— Fine-Tuning and Safety Controls</strong></p><ul><li>Azure gives you more granular control over <strong>prompt filters</strong>, <strong>data privacy</strong>, and <strong>content moderation</strong>, critical for enterprise use of generative AI.</li></ul><p><strong>— Integration with Microsoft Stack</strong></p><ul><li>You can integrate OpenAI models directly into <strong>Power Platform</strong>, <strong>Office apps</strong>, or internal tools with <strong>Azure Functions</strong>, <strong>Logic Apps</strong>, or <strong>Power Automate</strong>.</li></ul><p><strong>— Multimodal AI Support</strong></p><ul><li>GPT-4o brings <strong>vision, audio, and text</strong> into a single model — fully supported via Azure’s cloud endpoints.</li></ul><p><strong>— Developer Acceleration</strong></p><ul><li>Use <strong>Azure ML</strong> to combine OpenAI with your proprietary data for fine-tuned use cases like:</li><li>Legal document summarization</li><li>Financial forecasting</li><li>HR applicant screening</li><li>Customer support agents</li></ul><h3>In Short: If You’re Building an AI-Powered Application — Azure Wins</h3><p>AWS has great AI tooling with SageMaker and Bedrock, but if your focus is <strong>generative AI, language models, or enterprise AI solutions</strong>, <strong>Azure with OpenAI is a more ready-to-use, enterprise-aligned solution</strong> in 2025.</p><h3>⚖ AWS vs Azure: Head-to-Head Comparison</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EKGRXGXnlCMRzNti-vPmyg.png" /></figure><h3>Why the Smartest Companies Use Both</h3><p>In 2025, the <strong>cloud is not a zero-sum game</strong>.</p><ul><li>Use <strong>AWS</strong> when you need infrastructure performance, massive scalability, and custom cloud-native architecture.</li><li>Use <strong>Azure</strong> when you need enterprise AI capabilities, Microsoft integration, and low-friction rollout of OpenAI-powered tools.</li></ul><p>A <strong>multicloud strategy</strong> gives you the agility to match each platform to its strength.</p><h3>Side-by-Side: AWS vs Azure Service Equivalents</h3><p>When choosing between AWS and Azure — or working across both — it’s essential to understand how their core services align.</p><p>Whether you’re deploying virtual machines, storing data, running containers, or building AI-powered applications, <strong>both platforms offer similar capabilities — but under different names</strong>.</p><p>Below is a <strong>service-by-service comparison</strong> to help you map equivalent tools across AWS and Azure. This is especially useful for architects, DevOps engineers, and product teams designing hybrid or multicloud solutions:</p><blockquote><strong><em>Tip</em></strong><em>: If you’re familiar with AWS and moving to Azure (or vice versa), use this table as your cloud-native Rosetta Stone</em></blockquote><h3>AWS vs Azure: Service-by-Service Comparison Table</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*H9GpcYsLVGfzAjFMhF9lWA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*oo452QhQYM62fVTGjcjkTQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*ffmdbTRKLVFS4iZELoEiGQ.png" /></figure><h3>Final Thought</h3><p>If your business is betting big on <strong>AI</strong>, <strong>Azure has a clear edge</strong> today, especially for LLM-based and generative AI solutions.<br> If you’re building <strong>custom, scalable platforms</strong>, AWS offers unparalleled flexibility.</p><p>But if you’re thinking long-term, it may not be <strong>AWS <em>or</em> Azure</strong>. It may be <strong>AWS <em>and</em> Azure</strong> — combined, strategically.</p><p>👀 Curious which cloud suits your product vision?</p><h3>Contributors</h3><p>This article was written by <a href="https://www.linkedin.com/in/mousumi-bakshi-8aa75b33/"><strong>Mousumi Bakshi</strong></a><strong> (Technical Manager)</strong></p><p><strong>Let’s Build the Future Together!</strong><br>For your <strong>Generative AI solutions</strong> and <strong>project development needs</strong>, get in touch with <a href="https://masssoftwaresolutions.com/"><strong>MSS</strong></a> — we’re here to help bring your ideas to life.</p><p>👉 Follow us on <a href="https://www.linkedin.com/showcase/masstechbytes/">LinkedIn</a> and <a href="https://mass-software-solutions.medium.com/">Medium</a> for <strong>weekly tech insights</strong> and practical tips to supercharge your development journey!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3ce3d49ff35" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Angular Performance Series 2: Supercharge Your LCP with NgOptimizedImage]]></title>
            <link>https://mass-software-solutions.medium.com/angular-performance-series-2-supercharge-your-lcp-with-ngoptimizedimage-0795e7870d3e?source=rss-7c1919f4abf6------2</link>
            <guid isPermaLink="false">https://medium.com/p/0795e7870d3e</guid>
            <category><![CDATA[angular-universal]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[gtmetrix]]></category>
            <category><![CDATA[search-engine-optimizati]]></category>
            <dc:creator><![CDATA[MSS]]></dc:creator>
            <pubDate>Fri, 30 May 2025 10:33:25 GMT</pubDate>
            <atom:updated>2025-05-30T10:33:25.540Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to the <strong>second article in our Angular Performance Series</strong>! In the first article, we tackled <strong>SEO optimization and achieving GTmetrix A-grade scores</strong> for Angular applications. If you missed it, <a href="https://mass-software-solutions.medium.com/have-an-angular-website-but-struggling-with-seo-gtmetrix-a-grade-heres-the-solution-ca9cd21a4d0f"><strong><em>check it out here</em></strong></a><em>.</em></p><p>Now, let’s turn our focus to <strong>Core Web Vitals</strong>, specifically <strong>Largest Contentful Paint (LCP)</strong> — a critical factor for both <strong>SEO rankings</strong> and <strong>user experience</strong>.</p><p>In this article, we’ll explore how Angular’s built-in <strong>NgOptimizedImage</strong> directive can supercharge your LCP, making your apps feel lightning-fast, even on mobile networks.</p><p>This series is your <strong>one-stop guide</strong> to mastering Angular performance — step by step, metric by metric.</p><blockquote>👉 Follow us on <a href="https://www.linkedin.com/showcase/masstechbytes/">LinkedIn</a> and <a href="https://mass-software-solutions.medium.com/">Medium</a> for <strong>weekly tech insights</strong> and practical tips to supercharge your development journey!</blockquote><h3>Why LCP Matters for Your Angular App</h3><p>LCP measures how quickly the largest visible element (often an image or heading) loads in the viewport. A good LCP is <strong>under 2.5 seconds</strong> — this is Google’s benchmark for a fast website. A slow LCP impacts:</p><p>🔻 SEO rankings</p><p>🔻 User engagement</p><p>🔻 Conversion rates</p><p>For Angular sites with rich visuals, <strong>images are usually the biggest culprit</strong> behind a sluggish LCP. That’s why optimizing how images load is crucial.</p><h3>Meet NgOptimizedImage: Your LCP Performance Booster</h3><p>Introduced in <strong>Angular 15</strong>, NgOptimizedImage is a powerful directive that automates many best practices for image optimization:</p><p><strong>— Lazy loading and async decoding</strong></p><p><strong>— Validates image dimensions to prevent layout shifts</strong></p><p><strong>— Supports modern formats like WebP and AVIF</strong></p><p><strong>— Preloads LCP-critical images for faster load times</strong></p><p>By integrating NgOptimizedImageYou’ll boost not just LCP, but also <strong>overall Core Web Vitals</strong>.</p><h3>How to Use NgOptimizedImage: Step-by-Step Guide</h3><h3>1️⃣ Enable the Directive</h3><p>Import NgOptimizedImage In your Angular component:</p><pre><br>import { NgOptimizedImage } from &#39;@angular/common&#39;;<br>@Component({<br>  standalone: true,<br>  imports: [NgOptimizedImage],<br>  // ...<br>})</pre><h3>2️⃣ Replace &lt;img&gt; with &lt;img ngSrc&gt;</h3><p>Update your image tags like this:</p><pre><br>&lt;imgngSrc=&quot;assets/images/banner.webp&quot;<br>  width=&quot;1200&quot;<br>  height=&quot;600&quot;<br>  priority<br>  alt=&quot;Banner Image&quot; /&gt;</pre><p>Notice the priority attribute? That’s the magic for <strong>LCP-critical images</strong>—load them eagerly!</p><h3>3️⃣ Use Modern Formats: WebP or AVIF</h3><p>Always prefer compressed, modern image formats like <strong>WebP</strong> or <strong>AVIF</strong> for better performance without sacrificing quality.</p><h3>4️⃣ Avoid Lazy Loading LCP Images</h3><p>For images that are key to LCP, <strong>don’t lazy load</strong>. Instead, set the priority flag.</p><h3>5️⃣ Serve Responsive Images</h3><p>Use srcset and sizes for adaptive image loading based on device screen size:</p><pre><br>&lt;imgngSrc=&quot;assets/images/banner.webp&quot;<br>  width=&quot;1200&quot;<br>  height=&quot;600&quot;<br>  priority<br>  alt=&quot;Banner Image&quot;<br>  [sizes]=&quot;&#39;(max-width: 600px) 100vw, 600px&#39;&quot;<br>  [srcset]=&quot;[<br>    &#39;assets/images/banner-600w.webp 600w&#39;,<br>    &#39;assets/images/banner-1200w.webp 1200w&#39;<br>  ]&quot;<br>/&gt;</pre><h3>Preconnect for Lightning-Fast CDN Image Loading</h3><p>Want to shave off extra milliseconds? <strong>Preconnect</strong> to your image CDN:</p><pre><br>&lt;link rel=&quot;preconnect&quot; href=&quot;&lt;https://your-cdn.com&gt;&quot;&gt;</pre><p>Angular’s NgOptimizedImage <strong>auto-generates preconnect hints</strong> when it can detect the image origin. If not, add them manually in your index.html &lt;head&gt; section.</p><h3>Handling Dynamic Images? Use a Custom Image Loader</h3><p>If your images come from a CMS, API, or CDN, you’ll need a <strong>custom image loader</strong>. Here’s how to set it up in app.config.ts:</p><pre><br>import { ApplicationConfig } from &#39;@angular/core&#39;;<br>import { IMAGE_LOADER, ImageLoaderConfig } from &#39;@angular/common&#39;;<br><br>export const appConfig: ApplicationConfig = {<br>  providers: [<br>    {<br>      provide: IMAGE_LOADER,<br>      useValue: (config: ImageLoaderConfig) =&gt; {<br>        return `https://your-cdn.com/images?src=${config.src}&amp;width=${config.width}`;<br>      },<br>    }<br>  ],<br>};</pre><p>This ensures Angular knows how to <strong>fetch and optimize images dynamically</strong> based on the provided width and source.</p><h3>Final Takeaways</h3><ul><li>Optimize <strong>LCP</strong> by loading images <strong>smartly</strong> with NgOptimizedImage</li><li>Use <strong>modern formats</strong> like WebP and AVIF</li><li><strong>Preload</strong> critical images (set priority)</li><li>Add <strong>preconnect hints</strong> for CDN-hosted images</li><li>Configure a <strong>custom image loader</strong> for dynamic content</li></ul><p>By applying these strategies, you’ll unlock faster LCP times, happier users, and better SEO for your Angular web apps.</p><p>Watch this space for upcoming articles on:</p><ul><li>SVG file optimization to avoid excessive DOM size.</li><li>‘OnPush change detection’ strategy to optimize performance by reducing unnecessary change detection.</li><li>Handled leverage browser caching for images &amp; enabled compression for asset files.</li></ul><h3>Contributors</h3><p>This article was written by <strong>Mahadev Maity</strong> <strong>(Frontend Lead)</strong></p><p><strong>Let’s Build the Future Together! </strong><br> For your <strong>Generative AI solutions</strong> and <strong>project development needs</strong>, get in touch with <a href="https://masssoftwaresolutions.com/"><strong>MSS</strong></a> — we’re here to help bring your ideas to life.</p><p>👉 Follow us on <a href="https://www.linkedin.com/showcase/masstechbytes/">LinkedIn</a> and <a href="https://mass-software-solutions.medium.com/">Medium</a> for <strong>weekly tech insights</strong> and practical tips to supercharge your development journey!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0795e7870d3e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Have an Angular Website but Struggling with SEO & GTmetrix A-Grade? …. Here’s the Solution!]]></title>
            <link>https://mass-software-solutions.medium.com/have-an-angular-website-but-struggling-with-seo-gtmetrix-a-grade-heres-the-solution-ca9cd21a4d0f?source=rss-7c1919f4abf6------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca9cd21a4d0f</guid>
            <category><![CDATA[seo-optimization]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[gtmetrix]]></category>
            <category><![CDATA[server-side-rendering]]></category>
            <category><![CDATA[angular-ssr]]></category>
            <dc:creator><![CDATA[MSS]]></dc:creator>
            <pubDate>Fri, 28 Mar 2025 11:47:53 GMT</pubDate>
            <atom:updated>2025-03-28T11:47:53.701Z</atom:updated>
            <content:encoded><![CDATA[<h3>Have an Angular Website but Struggling with SEO &amp; GTmetrix A-Grade? …. Here’s the Solution!</h3><blockquote>Build an SEO-Friendly Angular Website and Achieve an A-Grade on GTmetrix — With Animations &amp; Particles.js</blockquote><h3>Introduction</h3><p>Many developers believe Angular is not ideal for SEO compared to React, but with the right strategies, you can make an Angular site <strong>SEO-friendly and high-performing</strong>. This guide explains how we optimized an <strong>Angular 17</strong> application to achieve an <strong>A-grade on GTmetrix</strong>, even while using <strong>Particles.js and heavy animations</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C-EsMZks4h53A2rXBZOUkA.jpeg" /></figure><h3>Why Server-Side Rendering (SSR) is Essential for SEO</h3><p>Angular applications typically render content on the client-side, which makes it difficult for search engines to crawl. Server-Side Rendering (SSR) solves this by rendering HTML on the server before sending it to the client, significantly improving SEO and initial load speed.</p><h3>Challenges in Angular 17 SSR</h3><ol><li>Handling browser-specific APIs in a server environment.</li><li>Dynamically updating meta tags for SEO</li><li>Implementing server-side caching</li><li>Generating and optimizing a sitemap.xml</li><li>Pre-rendering routes for faster loading</li><li>Lazy loading images to improve performance</li><li><strong>Optimizing sites with Particles.js and complex animations</strong></li></ol><h3>1. Handling Browser Scope in Angular SSR</h3><p>In Angular SSR, code that relies on browser-specific APIs (e.g., <strong>window</strong>, <strong>document</strong>, <strong>localStorage</strong>) can cause errors because these APIs are not available on the server.</p><h4>Solution</h4><p>Use Angular’s <strong>isPlatformBrowser</strong> utilities to execute browser-specific code conditionally. It will throw errors because they don’t exist in the <strong>Node.js</strong> environment where the server runs.</p><p>To avoid these errors, you need to conditionally execute browser-specific code only when the application is running in the browser.</p><pre>import { Injectable, Inject, PLATFORM_ID } from &#39;@angular/core&#39;;<br>import { isPlatformBrowser } from &#39;@angular/common&#39;;<br><br><br>@Injectable({<br> providedIn: &#39;root&#39;,<br>})<br>export class BrowserService {<br> constructor(@Inject(PLATFORM_ID) private platformId: Object) {}<br><br><br> isBrowser(): boolean {<br>   return isPlatformBrowser(this.platformId);<br> }<br>}</pre><h4>Usage:</h4><ul><li><strong>Accessing local storage</strong></li></ul><pre>if (this.browserService.isBrowser()) {<br> const userData = localStorage.getItem(&#39;user&#39;);<br>}</pre><ul><li><strong>Accessing window</strong></li></ul><pre>if (this.browserService.isBrowser()) {<br> window.scrollTo(0, 0); // Scroll to the top of the page<br>}</pre><ul><li><strong>Using document</strong></li></ul><pre>if (this.browserService.isBrowser()) {<br> const element = document.getElementById(&#39;myElement&#39;);<br> if (element) {<br>   element.style.color = &#39;red&#39;;<br> }<br>}</pre><h3>2. Updating Meta Tags Dynamically in SSR</h3><p>Meta tags are essential for SEO. We dynamically injected metadata into the rendered HTML before serving it.</p><h4>i. Handling Dynamic Metadata Injection</h4><p>The server retrieves metadata from an external API and injects it into the rendered HTML before sending the response.</p><h4>ii. Optimized Asynchronous Operations</h4><p>To reduce latency, HTML rendering and metadata fetching are performed concurrently using <strong>Promise.all</strong>.</p><h4>iii. Error Handling and Fallbacks</h4><ul><li>If metadata API calls fail, the application falls back to default values.</li><li>Ensures that HTML rendering proceeds even if metadata is unavailable.</li></ul><h4>Example:</h4><p>How the <strong>server.ts</strong> file dynamically updates meta tags before sending the final HTML response to the client using <strong>res.send(finalHtml);</strong>.</p><pre>server.get(&#39;*&#39;, async (req, res, next) =&gt; {<br>   const { protocol, originalUrl, baseUrl, headers } = req;<br>   const page = getPageIDByUrl.find((item) =&gt; item.slug === req.url);<br>   try {<br>     // Render HTML and fetch metadata concurrently<br>     const [renderedHtml, metadataResponse] = await Promise.all([<br>       commonEngine.render({<br>         bootstrap,<br>         documentFilePath: indexHtml,<br>         url: `${protocol}://${headers.host}${originalUrl}`,<br>         publicPath: browserDistFolder,<br>         providers: [{ provide: APP_BASE_HREF, useValue: baseUrl }],<br>       }),<br>       axios<br>         .post(<br>           `${environment.host}/page/details`,<br>           { slug: page.slug },<br>           {<br>             headers: {<br>               &#39;Content-Type&#39;: &#39;application/json&#39;,<br>             },<br>           }<br>         )<br>         .catch((error) =&gt; {<br>           return null; // Fallback to no metadata<br>         }),<br>     ]);<br><br><br>     if (!renderedHtml) {<br>       res.status(500).send(&#39;Error rendering HTML.&#39;);<br>       return;<br>     }<br>     let finalHtml = renderedHtml;<br>     if (metadataResponse &amp;&amp; metadataResponse.data) {<br>       let metadata = metadataResponse.response;<br>       finalHtml = finalHtml<br>         .replace(<br>           /&lt;title&gt;.*&lt;\/title&gt;/,<br>           `&lt;title&gt;${metadata.page_title || &#39;&#39;}&lt;/title&gt;`<br>         )<br>         .replace(<br>           &#39;&lt;/head&gt;&#39;,<br>           `&lt;meta name=&quot;keywords&quot; content=&quot;${metadata.page_keyword || &#39;&#39;}&quot;&gt;<br>           &lt;meta name=&quot;description&quot; content=&quot;${<br>            metadata.page_description || &#39;&#39;<br>           }&quot;&gt;<br>           &lt;/head&gt;`<br>         );<br>     }<br>     res.send(finalHtml);<br>   } catch (error) {<br>     next(error); // Forward error to centralized error handler<br>   }<br> });</pre><h3>3. Implementing Server-Side Caching</h3><p>To reduce rendering time, we used cache-manager to store HTML responses.</p><h4>Installation:</h4><pre>npm i cache-manager</pre><p>i. We use <strong>cache-manager </strong>to store HTML responses:</p><pre>import { createCache } from &quot;cache-manager&quot;;<br>const cache = createCache({<br>   ttl: 10000, // Cache TTL in milliseconds<br>   refreshThreshold: 3000,<br>});</pre><p>ii. Check Cache Before Rendering</p><p>Before processing a request, check if it’s <strong>already cached</strong>:</p><pre>server.use(async (req, res, next) =&gt; {<br> const { protocol, originalUrl, headers } = req;<br> const cacheKey = `${protocol}://${headers.host}${originalUrl}`;<br> const cachedHtml = await cache.get(cacheKey);<br> if (cachedHtml) {<br>   console.log(`Cache hit: ${cacheKey}`);<br>   res.send(cachedHtml);<br> } else next();<br>});</pre><h3>4. Implementing sitemap.xml</h3><p>A sitemap.xml file helps search engines efficiently index pages.</p><h4>Example:</h4><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;urlset xmlns=&quot;http://www.sitemaps.org/schemas/sitemap/0.9&quot;&gt;<br>   &lt;url&gt;<br>       &lt;loc&gt;https://example.com/&lt;/loc&gt;<br>       &lt;lastmod&gt;2025-03-25&lt;/lastmod&gt;<br>       &lt;priority&gt;1.0&lt;/priority&gt;<br>   &lt;/url&gt;<br>   &lt;url&gt;<br>       &lt;loc&gt;https://example.com/about&lt;/loc&gt;<br>       &lt;lastmod&gt;2025-03-20&lt;/lastmod&gt;<br>       &lt;priority&gt;0.8&lt;/priority&gt;<br>   &lt;/url&gt;<br>&lt;/urlset&gt;</pre><h3>5. Pre-rendering Routes</h3><p>Pre-rendering generates static HTML files for key routes, improving performance.</p><p>A <strong>routes.txt</strong> file is used in pre-rendering to specify which routes should be pre-rendered.</p><p><strong>Setup Steps:</strong></p><ol><li>Create a <strong>routes.txt</strong> file and list all pages that should be pre-rendered (one per line).</li><li>Update the <strong>angular.json</strong> to include the <strong>routesFile</strong> option.</li><li>Deploy the pre-rendered pages for faster initial load and better SEO.</li></ol><pre>&quot;prerender&quot;: {<br> &quot;discoverRoutes&quot;: false,<br> &quot;routesFile&quot;: &quot;src/routes.txt&quot;<br>}</pre><h4>6. Lazy Loading Images</h4><p>Lazy loading delays loading images until needed, improving performance.</p><p>i. Create a directive for lazy loading images:</p><pre>import { isPlatformBrowser } from &#39;@angular/common&#39;;<br>import {  Directive,ElementRef,Inject,Input,inject,PLATFORM_ID,Output,EventEmitter} from &#39;@angular/core&#39;;<br>@Directive({<br> selector: &#39;[lazyLoadSrc]&#39;,<br> standalone: true,<br>})<br>export class LazyLoadSrcDirective {<br> private _el = inject(ElementRef);<br> private platformId!: Object;<br> @Input() lazyLoadSrc = &#39;&#39;;<br> @Output() fullyLoaded = new EventEmitter&lt;Event&gt;();<br> constructor(@Inject(PLATFORM_ID) platformId: Object) {<br>   this.platformId = platformId;<br> }<br> ngOnInit(): void {<br>   const img = this._el.nativeElement as HTMLImageElement;<br>   if (isPlatformBrowser(this.platformId)) {<br>     const observer = new IntersectionObserver((entries) =&gt; {<br>       entries.forEach((entry) =&gt; {<br>         if (entry.isIntersecting) {<br>           img.src = this.lazyLoadSrc;<br>           observer.unobserve(img);<br>           img.onload = (event: Event) =&gt; {<br>             this.fullyLoaded.emit(event);<br>           };<br>         }<br>       });<br>     });<br>     observer.observe(img);<br>   } else {<br>     img.src = this.lazyLoadSrc;<br>   }<br> }<br>}</pre><p>ii. Use the directive in the template:</p><pre>&lt;img [lazyLoadSrc]=&quot;imageSrc&quot; alt=&quot;Lazy loaded image&quot;&gt;</pre><h3>7. Handling Particles.js and Heavy Animations</h3><p>Particles.js and complex animations can slow down a site. We optimized animations by:</p><p>While integrating animations into this website it impacts performance, leading to SEO issues. While using <strong>@tsparticles/angular</strong> and <strong>@tsparticles/slim</strong> in our project, we encountered performance challenges reflected in our <strong>GTmetrix</strong> reports.</p><h3>The Problem: Performance and SEO Issues</h3><p>When we initially implemented <strong>tsParticles</strong>, we noticed the following issues in our GTmetrix reports:</p><ol><li><strong>Increased JavaScript Execution Time</strong> — Heavy particle animations caused longer page load times.</li><li><strong>Higher Total Blocking Time (TBT)</strong> — tsParticles script execution was delaying interactive elements.</li><li><strong>Decreased First Contentful Paint (FCP)</strong> — Render-blocking resources led to slower initial loading.</li><li><strong>Lower SEO Score</strong> — Poor page speed negatively impacted search engine rankings.</li></ol><h3>Our Optimization</h3><ul><li><strong>Disabled Full-Screen Mode</strong>: Prevented tsParticles from covering the entire viewport unnecessarily.</li><li><strong>Limited FPS to 30</strong>: Reduced CPU load while maintaining smooth animations.</li><li><strong>Reduced Particle Count</strong>: Lowered from default values to 80, balancing visuals and performance.</li><li><strong>Controlled Particle Size</strong>: Avoided random sizes to reduce rendering complexity.</li><li><strong>Removed Interactivity Options</strong>: Reduced event listeners and calculations, improving page responsiveness.</li><li><strong>Disabled Retina Detection</strong>: Prevented high-density displays from increasing particle count dynamically.</li></ul><h4>Example: Optimized Particles.js Configuration</h4><pre>{<br>   fullScreen: { enable: false },<br>   fpsLimit: 30,<br>   particles: {<br>     number: {<br>       value: 80, // Reduced particle count<br>       density: { enable: true, area: 800 },<br>     },<br>     color: { value: &#39;#ffffff&#39; },<br>     shape: { type: &#39;circle&#39; },<br>     opacity: {<br>       value: 0.6,<br>       random: false,<br>       animation: { enable: false },<br>     },<br>     size: {<br>       value: 4, // Controlled size for better optimization<br>       random: false,<br>     },<br>     move: {<br>       enable: true,<br>       speed: 0.5,<br>       direction: MoveDirection.none,<br>       outModes: { default: OutMode.out },<br>       straight: false,<br>     },<br>     links: {<br>       enable: true,<br>       distance: 150,<br>       color: &#39;#ffffff&#39;,<br>       opacity: 0.5,<br>       width: 1.5,<br>     },<br>   },<br>   detectRetina: false,<br>}</pre><h3>7. AOS animation SEO Issues</h3><p>We integrated <strong>AOS (Animate On Scroll)</strong> in our project to enhance the user experience with smooth animations. After running a <strong>GTmetrix</strong> performance test, we noticed a <strong>drop in our SEO and Core Web Vitals scores</strong>.</p><p>We found that AOS was affecting our <strong>page speed, LCP (Largest Contentful Paint), and Cumulative Layout Shift (CLS)</strong>.</p><p><strong>We Fixed AOS SEO Issues — Configuration Changes:</strong></p><p>After debugging, we found that modifying specific AOS configurations resolve most of these issues without removing animations.</p><pre>AOS.init({<br> delay: 50, // Minimal delay for animations<br> duration: 600, // Keep animations smooth but fast<br> easing: &quot;ease&quot;,<br> once: true, // Run animation only once (prevents re-execution)<br>});</pre><h4>GTmetrix Performance Report</h4><p>After these optimizations, our Angular site achieved an <strong>A-grade</strong> on GTmetrix. Improvements included:</p><ul><li><strong>Faster load times</strong></li><li><strong>Lower server load</strong></li><li><strong>Better SEO rankings</strong></li><li><strong>Smoother user experience</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*20VQm6cidN7UiXvv" /></figure><h3><strong>Conclusion</strong></h3><p>It is absolutely possible to make an Angular application SEO-friendly and high-performing. By leveraging SSR, optimizing metadata, caching, pre-rendering, lazy loading images, and handling heavy animations, we <strong>achieved top-tier performance</strong>.</p><p>If you’re looking for expert help in building a high-performance, SEO-friendly Angular website, <strong>contact us today</strong>! 🚀</p><h3>Contributors</h3><p>This article was written by <strong>Abhisek Dhua (</strong>Senior Developer)<strong> </strong>&amp; <strong>Mahadev Maity</strong> (Frontend Lead)</p><p>Get in touch with <a href="https://masssoftwaresolutions.com/">MSS </a>for your Generative AI use case implementation and other project development tasks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca9cd21a4d0f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Seamless Cisco Webex Meeting Integration in Node.js: A Complete Guide]]></title>
            <link>https://mass-software-solutions.medium.com/seamless-cisco-webex-meeting-integration-in-node-js-a-complete-guide-51a7941fbe5c?source=rss-7c1919f4abf6------2</link>
            <guid isPermaLink="false">https://medium.com/p/51a7941fbe5c</guid>
            <category><![CDATA[integration]]></category>
            <category><![CDATA[online-meeting-platforms]]></category>
            <category><![CDATA[online-meeting-solutions]]></category>
            <category><![CDATA[cisco-webex]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[MSS]]></dc:creator>
            <pubDate>Sat, 15 Mar 2025 03:05:12 GMT</pubDate>
            <atom:updated>2025-03-15T03:05:12.837Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Integrating Cisco Webex into your Node.js application enables seamless scheduling, managing, and conducting virtual meetings. This guide provides a step-by-step approach to implementing Cisco Webex meetings with Node.js using TypeScript, covering authentication, meeting creation, updating, and deletion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NxgEp3oWKgZQRmuRpEWm8w.jpeg" /></figure><p><em>As part of our series on online meeting integrations, this is our second guide.</em></p><ol><li><a href="https://medium.com/@mass-software-solutions/mastering-microsoft-teams-meetings-integration-with-node-js-a-step-by-step-guide-925bf20dfe49"><em>Microsoft Teams API implementation in Node.js</em></a><em>.</em></li><li><a href="https://medium.com/@mass-software-solutions/creating-a-zoom-meeting-link-using-express-js-node-js-typescript-297d3f2cb1cc">Zoom Meeting<em> API implementation in Node.js.</em></a></li></ol><p><em>Stay tuned for upcoming guides on </em><strong><em>Zoho, Google Meet</em></strong><em>.</em></p><h3>Prerequisites</h3><p>To use Webex APIs, you need the following credentials:</p><ul><li>WEBEX_CLIENT_ID</li><li>WEBEX_CLIENT_SECRET</li><li>WEBEX_REFRESH_TOKEN</li></ul><h3>Generating Webex Credentials</h3><ol><li>Visit the <a href="https://developer.webex.com/">Webex Developer Portal</a> and log in.</li><li>Navigate to <strong>My Apps</strong> and click <strong>Create a New App</strong>.</li><li>Choose <strong>Integration</strong> as the app type.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*u-g6dZjfwhZNKDac" /></figure><p>4. Fill in the required details:</p><ul><li><strong>App Name</strong></li><li><strong>Description</strong></li><li><strong>Redirect URL</strong></li><li><strong>Scopes</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fFrcTARRLY8aXTMb" /></figure><p>5. Select the following Webex Meeting scopes:</p><ul><li>meeting:schedules_read</li><li>meeting:schedules_write</li><li>meeting:participants_read</li><li>meeting:participants_write</li><li>meeting:controls_read</li><li>meeting:controls_write</li><li>meeting:recordings_read</li><li>Meeting:recordings_write</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*N9XYlH5FP2RfuQQr" /></figure><p>6. Click <strong>Save</strong> to generate your CLIENT_ID and CLIENT_SECRET.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TYEdPFvK0pZYzCA0" /></figure><blockquote><strong><em>Note:</em></strong><em> Free Webex accounts do not have access to different scopes. To test the integration, you can create a sandbox org using this guide, which allows you to assign multiple scope roles to users.</em></blockquote><h3>Obtaining Webex Access Token</h3><p>To get an access token, make a POST request to <a href="https://webexapis.com/v1/access_token:">https://webexapis.com/v1/access_token:</a></p><p><strong>Headers:</strong></p><p>Content-Type: application/x-www-form-urlencoded</p><p><strong>Body Parameters:</strong></p><pre>{<br>   &quot;client_id&quot;: &quot;YOUR_CLIENT_ID&quot;,<br>   &quot;client_secret&quot;: &quot;YOUR_CLIENT_SECRET&quot;,<br>   &quot;grant_type&quot;: &quot;refresh_token&quot;,<br>   &quot;refresh_token&quot;: &quot;YOUR_REFRESH_TOKEN&quot;<br>}</pre><p>Response:</p><pre>{<br>   &quot;access_token&quot;: &quot;BH903MGE*************Ux_P0A1_9ec56a80-6a77-4ec0-8430-7488fd8245aa&quot;,<br>   &quot;expires_in&quot;: 1209599,<br>   &quot;refresh_token&quot;: &quot;HYUJKlZDAzMzI*****************4NDQtNDUz_P0A1_9ec56a80-6a77-4ec0-8430-7488fd8245aa&quot;,<br>   &quot;refresh_token_expires_in&quot;: 7709704,<br>   &quot;token_type&quot;: &quot;Bearer&quot;,<br>   &quot;scope&quot;: &quot;meeting:recordings_read spark:kms meeting:controls_write meeting:schedules_read meeting:participants_read meeting:controls_read meeting:recordings_write meeting:participants_write meeting:schedules_write&quot;<br>}</pre><h3>Implementing Webex Meeting API in Node.js</h3><h3>1. Refreshing the Access Token</h3><p>Use this function to refresh your token when it expires:</p><pre>async function refreshAccessTokenWebex(): Promise&lt;string | false&gt; {<br>    if (!webexRefreshToken) {<br>        throw new Error(&quot;Refresh token not available&quot;);<br>    }</pre><pre>const response = await axios.post(<br>        &#39;https://webexapis.com/v1/access_token&#39;,<br>        querystring.stringify({<br>            grant_type: &#39;refresh_token&#39;,<br>            client_id: webexClientId,<br>            client_secret: webexClientSecret,<br>            refresh_token: webexRefreshToken,<br>        }),<br>        {<br>            headers: { &#39;Content-Type&#39;: &#39;application/x-www-form-urlencoded&#39; },<br>        }<br>    );<br>    return response.data.access_token;<br>}</pre><h3>Creating a Webex Meeting in Node.js</h3><pre>async function createWebexMeeting(): Promise&lt;void&gt; {<br>    const accessToken = await refreshAccessToken();<br>    if (!accessToken) {<br>        throw new Error(&#39;Access token is not available&#39;);<br>    }</pre><pre>const response = await axios.post(<br>        &#39;https://webexapis.com/v1/meetings&#39;,<br>        {<br>            title: &quot;Team Sync&quot;,<br>            start: &quot;2025-03-14T10:00:00Z&quot;,<br>            end: &quot;2025-03-14T11:00:00Z&quot;,<br>            timezone: &quot;UTC&quot;,<br>            invitees: [&quot;user1@example.com&quot;, &quot;user2@example.com&quot;],<br>        },<br>        {<br>            headers: {<br>                Authorization: `Bearer ${accessToken}`,<br>                &#39;Content-Type&#39;: &#39;application/json&#39;,<br>            },<br>        }<br>    );<br>    console.log(&#39;Meeting Created:&#39;, response.data);<br>}</pre><h3>Updating an Existing Webex Meeting</h3><pre>async function updateWebexMeeting(meetingId: string, newMeetingData: object): Promise&lt;void&gt; {<br>    const accessToken = await refreshAccessTokenWebex();<br>    <br>    await axios.put(<br>        `https://webexapis.com/v1/meetings/${meetingId}`,<br>        JSON.stringify(meetingData),<br>        {<br>            headers: {<br>                Authorization: `Bearer ${accessToken}`,<br>                &#39;Content-Type&#39;: &#39;application/json&#39;,<br>            },<br>        }<br>    );<br>}</pre><h3>Deleting a Webex Meeting</h3><p>To delete a scheduled meeting, use the function below:</p><pre>async function deleteWebexMeeting(meetingId: string): Promise&lt;void&gt; {<br>    const accessToken = await refreshAccessTokenWebex();<br>    <br>    await axios.delete(<br>        `https://webexapis.com/v1/meetings/${meetingId}`,<br>        {<br>            headers: { Authorization: `Bearer ${accessToken}` },<br>        }<br>    );<br>}</pre><h3>Conclusion</h3><p>By following this guide, you can successfully integrate Cisco Webex Meetings into your Node.js application. This integration will enable you to:</p><ul><li>Programmatically <strong>schedule</strong>, <strong>update</strong>, and <strong>delete</strong> Webex meetings.</li><li><strong>Automate</strong> meeting token refresh to keep sessions active.</li><li>Manage Webex meetings using API calls with <strong>TypeScript</strong> and axios.</li></ul><p>This integration helps streamline online meetings for businesses, offering seamless meeting management without leaving the app.</p><h3>Contributors</h3><p>This article was written by <strong>Subhadeep Halder(Technical Lead)</strong> and <strong>Sumit Sil (Senior developer).</strong></p><p>Get in touch with <a href="https://masssoftwaresolutions.com/">MSS </a>for your integration use case implementation and other project development tasks.</p><h3>Related Post</h3><p>— <a href="https://medium.com/@mass-software-solutions/mastering-microsoft-teams-meetings-integration-with-node-js-a-step-by-step-guide-925bf20dfe49">Microsoft Teams API implementation in Node.js</a>.</p><p>— <a href="https://medium.com/@mass-software-solutions/creating-a-zoom-meeting-link-using-express-js-node-js-typescript-297d3f2cb1cc">Zoom Meeting API implementation in Node.js</a>.</p><p><em>Feel free to reach out for further clarifications or improvements!</em></p><h3>🚀 Stay Connected</h3><p>If you found this guide helpful, feel free to share it on LinkedIn or Medium. Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51a7941fbe5c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>