<?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 Mareen Perera on Medium]]></title>
        <description><![CDATA[Stories by Mareen Perera on Medium]]></description>
        <link>https://medium.com/@mareenp99?source=rss-b3888cee3f8e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3KzUmuK5FeFaffajN1L1fw.png</url>
            <title>Stories by Mareen Perera on Medium</title>
            <link>https://medium.com/@mareenp99?source=rss-b3888cee3f8e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 04:02:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mareenp99/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[Why Role-Based Authentication Matters in VisaEase: A Deep Dive into JWT Strategy]]></title>
            <link>https://medium.com/@mareenp99/why-role-based-authentication-matters-in-visaease-a-deep-dive-into-jwt-strategy-120d676dcdc8?source=rss-b3888cee3f8e------2</link>
            <guid isPermaLink="false">https://medium.com/p/120d676dcdc8</guid>
            <category><![CDATA[jwt]]></category>
            <category><![CDATA[role-based-access]]></category>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[microservices]]></category>
            <dc:creator><![CDATA[Mareen Perera]]></dc:creator>
            <pubDate>Sun, 20 Apr 2025 17:10:20 GMT</pubDate>
            <atom:updated>2025-04-20T17:10:20.619Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Introduction - The Gatekeeper of Digital Access</strong></h3><p>In any digital system, managing who gets access to what is not just about security and it’s about delivering the right user experience for the right role.</p><p>In <strong>VisaEase</strong>, our microservices-driven visa processing platform, <strong>role-based authentication</strong> is one of the most critical foundations. It ensures that a tourist can apply for a visa, a visa officer can review applications, and an admin can manage the system <strong>each with secure, distinct access</strong>.</p><h3><strong>Why Role-Based Access Is a Must</strong></h3><p>VisaEase serves three key user groups:</p><ul><li>🧳 <strong>Tourists</strong> — Apply for Tourist, Business, or Transit visas.</li><li>🛂 <strong>Visa Approval Officers</strong> — Review and process submitted applications.</li><li>🏢 <strong>System Administrators</strong> — Manage platform operations and users.</li></ul><p>Each role requires access to different parts of the system. Exposing too much can result in confusion or security risks. So Our solution is <strong>JWT-based role-driven authentication</strong> that adapts to each user journey.</p><h3><strong>The Role of JWT in VisaEase</strong></h3><p>Instead of traditional session-based logins, we use <strong>JSON Web Tokens (JWT)</strong> to keep things <strong>stateless, secure, and scalable</strong> which is ideal for our microservices setup.</p><h4>Here’s how it works (in simple terms):</h4><p>✅ A user logs in using their role-based credentials<br>✅ A JWT is generated with user ID, role, and expiry<br>✅ The token is stored in the browser (localStorage)<br>✅ The frontend sends this token with every request<br>✅ Backend services decode it to validate identity and permission<br>✅ Based on the role inside the token, the system redirects;</p><ul><li>Tourist → Application Dashboard</li><li>Visa Officer → Approval Panel</li><li>Admin → Admin Control Panel</li></ul><h3><strong>Why This Approach Works So Well</strong></h3><p>🔒 The system is <strong>secure</strong> because only users with a valid token can access protected resources, reducing the risk of unauthorized access.<br> ⚙️ It is <strong>scalable</strong>, as each microservice independently validates tokens without relying on a centralized session manager.<br> 🚦 The model is highly <strong>flexible</strong>, allowing new roles or permissions to be added easily without overhauling the core authentication logic.<br> 🔁 Being <strong>stateless</strong>, it’s ideal for modern distributed systems, supporting seamless scaling and deployment across environments.</p><h3>Conclusion: Security as a Foundation</h3><p>A scalable system must begin with scalable security. With JWT-driven role-based authentication, VisaEase ensures every user is recognized, authorized, and guided to the right part of the system.</p><p><strong>This is the first building block of trust in our platform and a key step toward modernizing the visa application experience.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=120d676dcdc8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Breaking Ground with “VisaEase”: How We’re Building a Scalable Visa Processing System with…]]></title>
            <link>https://medium.com/@mareenp99/breaking-ground-with-visaease-how-were-building-a-scalable-visa-processing-system-with-9daeba0a46a0?source=rss-b3888cee3f8e------2</link>
            <guid isPermaLink="false">https://medium.com/p/9daeba0a46a0</guid>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[jwt-authentication]]></category>
            <category><![CDATA[travel-plan]]></category>
            <category><![CDATA[visa-processing]]></category>
            <dc:creator><![CDATA[Mareen Perera]]></dc:creator>
            <pubDate>Fri, 21 Feb 2025 19:38:42 GMT</pubDate>
            <atom:updated>2025-02-21T19:38:42.677Z</atom:updated>
            <content:encoded><![CDATA[<h3>Breaking Ground with “VisaEase”: How We’re Building a Scalable Visa Processing System with Microservices</h3><h3>Introduction: Rethinking Visa Processing in the Digital Age</h3><p>In today’s fast-moving world, applying for a visa should be <strong>quick, efficient, and seamless</strong>. However, many visa processing systems still <strong>struggle with inefficiencies</strong>, making it difficult for applicants to track their status, for officers to streamline approvals, and for countries to enhance their tourism and business travel experience.</p><p>While Sri Lanka <strong>already offers an online visa application system</strong>, there are still <strong>critical gaps</strong> — <strong>lack of personalized services, real-time notifications, and automated decision-making</strong>. This is where our project comes in. We are developing an <strong>advanced, microservices-driven visa processing system</strong> to bridge these gaps, ensuring a <strong>modern, scalable, and highly efficient solution</strong>.</p><p>In this blog, we introduce the <strong>core idea</strong> behind our project, explain <strong>why we chose Microservices Architecture</strong>, and provide insights into our <strong>five-service model</strong> that will transform how visa applications are processed.</p><h3>The Core Vision: A Smarter Visa Processing System</h3><p>Our project is not just about digitizing visa applications — it’s about <strong>enhancing the entire process</strong>. We aim to:</p><p>✅ <strong>Simplify Visa Applications</strong> — A seamless interface for tourists, business travelers, and agents.<br>✅ <strong>Automate the Approval Process</strong> — An intelligent system that speeds up decision-making.<br>✅ <strong>Provide Real-Time Updates</strong> — Instant notifications for applicants and visa officers.<br>✅ <strong>Deliver Personalized Travel Plans</strong> — Enhance tourism by offering custom itineraries upon visa approval.</p><p>Instead of a <strong>monolithic system</strong>, we are <strong>building a Microservices-based architecture</strong> to ensure <strong>scalability, security, and flexibility</strong> as the system grows.</p><h3>Why Microservices? The Backbone of Our Architecture</h3><p>Visa processing involves <strong>multiple interconnected services</strong>, each handling different functionalities. A <strong>monolithic system</strong> would make scaling, updating, and debugging difficult. <strong>Microservices</strong>, on the other hand, allow us to:</p><p>✅ <strong>Develop services independently</strong> — Teams can work on different components without affecting others.<br>✅ <strong>Scale specific services</strong> — If visa approvals require more processing power, only that service can be scaled.<br>✅ <strong>Ensure system resilience</strong> — A failure in one service doesn’t bring down the entire system.</p><p>By adopting <strong>Microservices Architecture</strong>, we can break down our visa processing system into <strong>five independent yet interconnected services</strong>.</p><h3>Our Five Microservices: Powering a Seamless Visa System</h3><p><strong>1. User Authentication Service</strong><br>Handles <strong>secure login and access control</strong> for different user roles:</p><ul><li>🧑‍💻 <strong>Tourists</strong> — Apply for visas and track status.</li><li>🏛 <strong>Administrators</strong> — Oversee the visa system.</li><li>✅ <strong>Visa Approval Officers</strong> — Review and process applications.<br>This service uses <strong>JWT-based authentication</strong> to ensure <strong>secure and role-based access</strong>.</li></ul><p><strong>2. Visa Application Service</strong><br>The <strong>core</strong> of the system, where applicants can:</p><ul><li>Choose between <strong>Tourist, Business, or Transit visas</strong>.</li><li>Apply as an <strong>individual, group, or third party</strong>.</li><li>Follow a <strong>structured 4-step process</strong>: <strong>Submit application → Review Information → Payment → ETA Confirmation</strong>.</li></ul><p><strong>3. Review &amp; Approval Service</strong><br>This service is <strong>designed to streamline decision-making</strong>:</p><ul><li>Visa officers see <strong>pending applications categorized by type</strong>.</li><li>An <strong>external API check</strong> flags applicants as <strong>Red (rejected), Yellow (needs review), or Green (approved)</strong>.</li><li>If <strong>Green</strong>, officers can manually approve applications.</li><li>If <strong>Red/Yellow</strong>, applications are <strong>automatically rejected</strong>, with reasons displayed in the officer’s dashboard.</li></ul><p><strong>4. Notification Service</strong></p><ul><li>Sends <strong>real-time email and SMS notifications</strong> to applicants.</li><li>Updates users on <strong>visa status, payment confirmations, and review updates</strong>.</li></ul><p><strong>5. Travel Plan Recommendation Service</strong></p><ul><li>Upon approval, applicants receive a <strong>personalized travel itinerary</strong> based on their interests.</li><li>Promotes Sri Lanka’s <strong>top destinations</strong>, enhancing tourism.</li></ul><h3>Challenges &amp; Our Approach to Solving Them</h3><p>⚡ <strong>Ensuring a Secure Authentication System</strong><br>✅ Solution: Implement <strong>JWT-based authentication</strong> with <strong>role-based access control</strong>.</p><p>⚡ <strong>Handling Large-Scale Processing Efficiently</strong><br>✅ Solution: <strong>Microservices-based architecture</strong> ensures <strong>each service scales independently</strong>.</p><p>⚡ <strong>Making Visa Approvals Faster &amp; Transparent</strong><br>✅ Solution: An <strong>automated API check</strong> for applicant background verification.</p><p>⚡ <strong>Enhancing the Traveler Experience</strong><br>✅ Solution: A <strong>smart travel plan generator</strong> to help visitors explore Sri Lanka better.</p><h3>What’s Next? The Road Ahead 🚀</h3><p>We have officially <strong>kicked off development</strong>, and our first milestones include:<br>✅ Implementing <strong>JWT-based authentication</strong> for secure logins.<br>✅ Designing the <strong>ER diagram</strong> to map out database relationships.</p><p>As we build this system, we will continue <strong>sharing updates, technical insights, and key lessons</strong> through blog posts.</p><h3>Conclusion: Transforming Visa Processing for the Future</h3><p>By <strong>breaking away from monolithic constraints</strong>, we are developing a <strong>scalable, efficient, and user-friendly visa application system</strong>. Our <strong>Microservices-driven approach</strong> ensures <strong>seamless processing, security, and automation</strong>, making the <strong>visa approval experience faster and more transparent</strong>.</p><p>🔹 Stay tuned as we share <strong>progress updates, architecture deep dives, and development insights</strong>!<br>💬 Have you worked on Microservices-based projects before? Drop your thoughts in the comments!</p><p>📌 <strong>Follow our journey! More updates coming soon.</strong> 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9daeba0a46a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Breaking the Monolith: Why Microservices Architecture is the Future of Scalable Systems]]></title>
            <link>https://medium.com/@mareenp99/breaking-the-monolith-why-microservices-architecture-is-the-future-of-scalable-systems-4d22114fdece?source=rss-b3888cee3f8e------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d22114fdece</guid>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[monolithic-architecture]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[netflix]]></category>
            <category><![CDATA[scalability]]></category>
            <dc:creator><![CDATA[Mareen Perera]]></dc:creator>
            <pubDate>Sun, 16 Feb 2025 12:17:37 GMT</pubDate>
            <atom:updated>2025-02-16T12:17:37.964Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction: The Era of Monolithic Struggles</h3><p>Imagine building a massive skyscraper where every floor is interconnected — if one structural element fails, the entire building is at risk. That’s how monolithic applications work. Traditionally, software was developed as a <strong>single, unified codebase</strong>, making it difficult to scale, update, or maintain efficiently.</p><p>As businesses grow and user demands increase, <strong>monolithic architectures start breaking down under their own weight</strong>. Slow deployments, lack of flexibility, and the risk of complete system failure make them <strong>unsustainable for modern, high-demand applications</strong>.</p><p>This is where <strong>Microservices Architecture</strong> emerges as the solution, offering <strong>scalability, flexibility, and resilience</strong> — qualities that modern software systems demand.</p><p>In this blog, we’ll break down why <strong>Microservices</strong> have become the go-to approach for <strong>scalable systems</strong>, how they solve real-world problems, and why companies like <strong>Netflix, Amazon, and Uber</strong> have embraced them.</p><h3>The Rise of Microservices - A Shift from Monolith to Modular</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*a4yeUDI_cczZJUmuV5RJZA.png" /></figure><p>A <strong>monolithic application</strong> is built as a <strong>single unit</strong> where all components (database, frontend, backend logic) are tightly coupled. While this structure works for small-scale applications, it becomes a nightmare as complexity grows.</p><h4>💡 Real-World Problem with Monolithic Applications</h4><ul><li>A <strong>bug in one module</strong> can crash the entire application.</li><li><strong>Scaling a single feature</strong> means scaling the entire system, leading to resource wastage.</li><li><strong>Longer deployment times</strong> because changes affect the whole application.</li></ul><h4>🚀 Enter Microservices Architecture</h4><p>Instead of <strong>one large application</strong>, <strong>Microservices</strong> break it down into <strong>independent, loosely coupled services</strong>. Each service runs its own logic, database, and processes, communicating via APIs.</p><p>📌 <strong>Example:</strong><br>Netflix, with over <strong>230 million subscribers</strong>, moved from a monolithic architecture to <strong>Microservices</strong> to handle millions of concurrent requests efficiently. Each function — user authentication, movie recommendations, payments — runs as an independent microservice, making scaling effortless.</p><h3>Why Microservices Are the Future of Scalability</h3><h4>1. Independent Scaling</h4><ul><li>Monoliths require scaling the entire application, even if only one feature needs more resources.</li><li>With Microservices, <strong>only the necessary service</strong> is scaled, saving resources and optimizing costs.</li></ul><h4>2. Faster Deployment &amp; Continuous Integration</h4><ul><li><strong>Microservices enable rapid development cycles</strong> because changes in one service don’t disrupt others.</li><li>Companies like <strong>Amazon deploy thousands of updates daily</strong> using microservices without downtime.</li></ul><h4>3. Fault Isolation &amp; Resilience</h4><ul><li>In monolithic applications, <strong>one failure can crash the entire system</strong>.</li><li>In microservices, failures are <strong>isolated</strong> to a specific service, ensuring the rest of the system continues running smoothly.</li></ul><h4>4. Technology Flexibility</h4><ul><li>Developers can use <strong>different programming languages and databases</strong> for different services.</li><li>Example: A company can use <strong>Node.js for user authentication</strong>, <strong>Spring Boot for order processing</strong>, and <strong>Python for analytics</strong> — all within the same system.</li></ul><h4>5. Enhanced Security &amp; Role-Based Access</h4><ul><li>With <strong>Microservices</strong>, authentication and authorization can be implemented at <strong>each service level</strong> rather than depending on a single security layer.</li><li><strong>Example:</strong> Financial apps like <strong>PayPal</strong> use microservices to ensure that transactions, authentication, and fraud detection run in <strong>separate, secure environments</strong>.</li></ul><h3>Real-World Examples of Microservices Success</h3><p><strong>1. Netflix</strong></p><ul><li>Originally monolithic, but switched to <strong>Microservices</strong> to handle <strong>200 million+ global users</strong>.</li><li>Services like <strong>video streaming, recommendations, and billing</strong> run independently.</li></ul><p><strong>2. Amazon</strong></p><ul><li>Scales its massive e-commerce platform using <strong>Microservices</strong>, allowing <strong>fast checkouts, AI-based recommendations, and secure transactions</strong>.</li></ul><p><strong>3. Uber</strong></p><ul><li>Transformed from <strong>a single monolithic system</strong> to <strong>over 2000 microservices</strong>, making it more efficient in handling <strong>millions of ride requests per day</strong>.</li></ul><h3>Challenges in Adopting Microservices (and How to Overcome Them)</h3><h4>🔴 Complexity in Managing Multiple Services</h4><p>✔️ Solution: <strong>Use API gateways (e.g., Kong, Nginx)</strong> to manage service-to-service communication efficiently.</p><h4>🔴 Data Management Across Distributed Services</h4><p>✔️ Solution: <strong>Implement event-driven communication</strong> with tools like <strong>Kafka</strong> or <strong>RabbitMQ</strong> for real-time updates.</p><h4>🔴 Security Risks in Decentralized Systems</h4><p>✔️ Solution: Use <strong>JWT-based authentication</strong> and <strong>role-based access control (RBAC)</strong> to enforce strict security policies.</p><h3>Conclusion: The Future is Microservices</h3><p>Monolithic architectures are becoming <strong>obsolete</strong> in today’s fast-paced, high-traffic digital world. As businesses aim for <strong>scalability, agility, and efficiency</strong>, <strong>Microservices Architecture</strong> is the best way forward.</p><p>From <strong>Netflix to Uber, Amazon to PayPal</strong>, global leaders have embraced microservices to build <strong>robust, flexible, and high-performing</strong> applications.</p><p>If you’re building a <strong>scalable system</strong>, <strong>breaking the monolith</strong> and adopting <strong>Microservices</strong> might be the smartest move you make.</p><p>🚀 <strong>Are you considering Microservices for your next project? Share your thoughts in the comments!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d22114fdece" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simplifying Sri Lanka’s Visa Process — Our Vision for the Future]]></title>
            <link>https://medium.com/@mareenp99/simplifying-sri-lankas-visa-process-our-vision-for-the-future-1bb516f1d58b?source=rss-b3888cee3f8e------2</link>
            <guid isPermaLink="false">https://medium.com/p/1bb516f1d58b</guid>
            <category><![CDATA[sri-lanka-tourism]]></category>
            <category><![CDATA[visa-application]]></category>
            <category><![CDATA[online-visa-application]]></category>
            <dc:creator><![CDATA[Mareen Perera]]></dc:creator>
            <pubDate>Sat, 04 Jan 2025 14:17:53 GMT</pubDate>
            <atom:updated>2025-01-04T14:17:53.532Z</atom:updated>
            <content:encoded><![CDATA[<h3>Simplifying Sri Lanka’s Visa Process — Our Vision for the Future</h3><p>Applying for a visa to Sri Lanka often feels like navigating a maze of lengthy forms and complex procedures. Travelers are required to manually fill out PDF documents, submit additional paperwork, and endure a tedious approval process that offers little transparency. This inefficiency not only frustrates applicants but also hinders Sri Lanka’s ability to attract and retain tourists efficiently. Recognizing these challenges, We envisioned a transformative solution like an <strong>Online Visa Application System. </strong>This platform aims to simplify the visa application process by allowing applicants to log in, select their visa type, and submit required details with ease. Automated systems will evaluate applications using a <strong>red/yellow/green card system</strong>, providing clear decisions and real-time notifications. But we’re not stopping there. To enhance the travel experience, our system will also offer personalized trip plans tailored to applicants’ interests, showcasing Sri Lanka’s most captivating destinations. This blog marks the beginning of our journey to revolutionize visa applications and support the country’s tourism industry.</p><h3><strong>The Current Visa Application Challenge</strong></h3><p>For many foreign visitors, obtaining a visa to Sri Lanka is a difficult procedure. The current process entails manually completing long PDF forms, printing papers, and sending applications to the appropriate authorities via email or physical submission. This antiquated method frequently leads to mistakes, hold-ups, and a lack of openness for applicants. While visa approval agents struggle to effectively check applicant facts, travelers struggle to monitor the status of their applications. The reputation of Sri Lanka as a friendly location may suffer as a result of these inefficiencies, which may deter tourists, business travelers, and other visitors.</p><h3><strong>Our Solution — The Online Visa Application System</strong></h3><p>We suggest an <strong>Online Visa Application System</strong> that streamlines and updates the visa application procedure in order to address these issues. Through an easy-to-use online interface, the system enables applicants to log in, choose their preferred visa type, and submit the necessary information and supporting documentation. This gives users a smooth experience by doing away with the necessity for laborious PDFs and manual submissions.</p><p>A key feature of our system is an <strong>automated review mechanism </strong>based on a red/yellow/green card model:</p><blockquote><strong>Red or Yellow Cards:</strong> Indicate dissatisfaction due to incomplete or missing documentation.<br><strong>Green Card: </strong>Signifies approval, enabling quick visa issuance.</blockquote><p>This evaluation is supported by an API that checks the applicant’s history and eligibility, and ensuring a quick and reliable decision-making process, with real-time status notifications keeping applicants informed and eliminating uncertainty about their visa approval.</p><h3><strong>Enhancing the Travel Experience</strong></h3><p>In addition to simplifying the visa process, our system aims to enrich travelers’ experiences. Approved applicants receive a personalized trip plan featuring Sri Lanka’s best destinations tailored to their interests, such as cultural landmarks, nature reserves, and adventure activities. This feature not only promotes tourism but also encourages visitors to explore beyond the typical routes, boosting local economies across the country.</p><h3><strong>Our Vision</strong></h3><p>Our vision is to create a <strong>scalable, efficient, and transparent visa application process </strong>that benefits both travelers and Sri Lanka’s tourism sector. By modernizing this critical system, we aim to position Sri Lanka as a technologically advanced, traveler-friendly destination.</p><h3><strong>Conclusion</strong></h3><p>Sri Lanka’s visa application process is in need of a significant transformation, and our Online Visa Application System provides the perfect solution. By simplifying the application procedure, implementing automated evaluations, and offering personalized travel recommendations, this system not only enhances the experience for travelers but also bolsters Sri Lanka’s tourism industry. Bridging the gap between outdated inefficiencies and modern expectations, our innovative platform sets the foundation for a more accessible, efficient, and welcoming Sri Lanka.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1bb516f1d58b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>