<?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 Lumasia  on Medium]]></title>
        <description><![CDATA[Stories by Lumasia  on Medium]]></description>
        <link>https://medium.com/@lumasiastancelaus?source=rss-ed708c11d1dc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*n3DH9jwYvrdll1b8</url>
            <title>Stories by Lumasia  on Medium</title>
            <link>https://medium.com/@lumasiastancelaus?source=rss-ed708c11d1dc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 22:20:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lumasiastancelaus/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[What is Source Code Management?]]></title>
            <link>https://lumasiastancelaus.medium.com/what-is-source-code-management-be9795963ed2?source=rss-ed708c11d1dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/be9795963ed2</guid>
            <category><![CDATA[gi̇thub]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Lumasia ]]></dc:creator>
            <pubDate>Tue, 01 Oct 2024 13:05:49 GMT</pubDate>
            <atom:updated>2024-10-01T13:05:49.844Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Source Code Management (SCM)</strong> is a system that helps you track and manage changes to your code over time. It keeps a history of your code, allowing you to:</p><ul><li><strong>Revert</strong> to previous versions.</li><li><strong>Collaborate</strong> with others without losing track of changes.</li><li>Keep a <strong>backup</strong> of your code.</li></ul><p>For example, if you’re building a website and accidentally break something, SCM lets you return to the previous working version.</p><h3>What is Git?</h3><p><strong>Git</strong> is a popular version control system that helps manage changes to files in a project. It tracks all changes made to files and allows multiple people to work on the same project without interfering with each other’s work.</p><p>For example, if you and a friend are working on the same project, Git allows both of you to make changes separately and later merge them together.</p><h3>What is GitHub?</h3><p><strong>GitHub</strong> is a cloud-based platform that uses Git(Online version of Git). It allows you to:</p><ul><li>Store your Git repositories online.</li><li>Share your code with others.</li><li>Collaborate with other developers in real time.</li></ul><p>It also includes features like issue tracking, project management tools, and more.</p><h3>Difference Between Git and GitHub</h3><ul><li><strong>Git</strong> is a tool that helps you manage your code locally on your computer.</li><li><strong>GitHub</strong> is a website where you can store and share your Git repositories with others.</li></ul><p><strong>Example:</strong></p><ul><li>You use <strong>Git</strong> on your computer to keep track of changes to your project.</li><li>You push (upload) your project to <strong>GitHub</strong> to store it online and collaborate with others.</li></ul><h3>How to Get Started with Git on Windows</h3><ol><li><strong>Install Git</strong>:</li></ol><ul><li>Download and install Git from <a href="https://git-scm.com/">git-scm.com</a>.</li><li>After installation, open <strong>Git Bash</strong> (a command-line tool that comes with Git).</li></ul><p><strong>2. Set up Git with your information</strong>:</p><ul><li>git config --global user.name &quot;Your Name&quot;</li><li>git config --global user.email &quot;your-email@example.com&quot;</li></ul><h3>How to Create a Repository (Repo)</h3><p>A <strong>repository</strong> is like a folder where your project’s files are tracked.</p><ol><li><strong>Create a new repo on your computer</strong>:</li></ol><ul><li>git init</li></ul><p>This command creates an empty repository in your project folder.</p><p><strong>2. Create a repo on GitHub</strong>:</p><ul><li>Go to GitHub and click <strong>New Repository</strong>.</li><li>Give it a name, decide if it should be public or private, and click <strong>Create repository</strong>.</li></ul><h3>What is a README?</h3><p>A <strong>README</strong> is a file (typically named README.md) that explains what your project is about, how to set it up, and how to use it. It’s the first thing people see when they visit your repository.</p><h3>How to Write a Good README</h3><p>A good <strong>README</strong> should include:</p><ol><li><strong>Project title</strong>.</li><li><strong>Description</strong> of the project.</li><li><strong>How to install</strong> and run the project.</li><li><strong>Examples</strong> of usage.</li><li>Information on <strong>how to contribute</strong>.</li><li>Any <strong>license</strong> details.</li></ol><h4>How to Commit</h4><p>A <strong>commit</strong> is like saving a version of your project with a message explaining what changes you made.</p><ol><li><strong>Stage your changes</strong> (tell Git which files you want to commit):</li></ol><ul><li>git add &lt;file_name&gt;</li></ul><p><strong>2. Make a commit </strong>(Tell other people more about the code changes)</p><ul><li>git commit -m &quot;Describe your changes&quot;</li></ul><h3>How to Write Helpful Commit Messages</h3><p>Good commit messages should be <strong>clear</strong> and <strong>descriptive</strong>. They explain <em>what</em> you did and <em>why</em>.</p><p><strong>Examples</strong>:</p><ul><li>Bad: fixed stuff</li><li>Good: Fixed bug where form didn&#39;t submit on mobile</li><li>Good: Updated README to include installation steps</li></ul><h3>How to Push Code to GitHub</h3><p><strong>Pushing</strong> means uploading your local changes to GitHub.</p><ul><li>git remote add origin <a href="https://github.com/username/repository-name.git">https://github.com/username/repository-name.git</a></li></ul><ol><li><strong>Push your changes</strong>:</li></ol><p>git push origin main</p><p>This uploads your changes to the main branch on GitHub.</p><h3>How to Pull Updates</h3><p>If someone else made changes to the project on GitHub, you can <strong>pull</strong> (download) those changes:</p><pre>git pull origin main</pre><p>This downloads and merges updates from the main branch on GitHub into your local project.</p><h4>Conclusion</h4><p>Git and GitHub are essential tools for managing and sharing code, especially in collaborative environments. Understanding how to create branches, commit changes, and write good documentation helps ensure that your projects are well-organized and professional.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be9795963ed2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Typescript?]]></title>
            <link>https://lumasiastancelaus.medium.com/what-is-typescript-1fff2dd296ec?source=rss-ed708c11d1dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/1fff2dd296ec</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[modern-javascript]]></category>
            <category><![CDATA[asynchronous-programming]]></category>
            <dc:creator><![CDATA[Lumasia ]]></dc:creator>
            <pubDate>Fri, 02 Aug 2024 10:01:40 GMT</pubDate>
            <atom:updated>2024-08-02T10:01:40.653Z</atom:updated>
            <content:encoded><![CDATA[<p>Typescript is a statically typed language that is a superset of Javascript.</p><h4>Why is Typescript a superset of Javascript?</h4><p>It is considered a superset of JavaScript because it builds on top of JavaScript by adding additional features and capabilities, while still being fully compatible with existing JavaScript code.</p><h4>Why should I consider Typescript?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*TaQH1SvR1ao7ID2ATS-hrw.png" /></figure><ol><li><strong>Type Safety</strong></li></ol><p>TypeScript introduces a type system that allows you to annotate variables, function parameters, and return values with types. This helps catch errors at compile time rather than runtime, which is one of the main benefits of using TypeScript.</p><p><strong>2. Improved Tooling</strong></p><p>TypeScript comes with a compiler that converts TypeScript code into JavaScript. It checks for type errors and other potential issues during this process, improving code quality and reducing bugs.</p><p><strong>3. Backwards compatibility</strong></p><p>Any valid JavaScript code can be placed into a TypeScript file, and it will work without any modifications. You can gradually adopt TypeScript by starting with pure JavaScript and slowly adding TypeScript features. They inter-operate.</p><p><strong>4. Supports Modern Javascprit(ES6+)</strong></p><p>Typescript not only supports modern JS features such as classes, modules and asynchronous programming but also enhances them as opposed to using plain Javascript.</p><h4>Summary</h4><p>By extending JavaScript with these features, TypeScript provides developers with more tools to manage the complexity of large codebases while remaining fully compatible with the JavaScript ecosystem.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1fff2dd296ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Payee]]></title>
            <link>https://lumasiastancelaus.medium.com/payee-6b021ed05178?source=rss-ed708c11d1dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b021ed05178</guid>
            <category><![CDATA[build-in-public]]></category>
            <dc:creator><![CDATA[Lumasia ]]></dc:creator>
            <pubDate>Mon, 08 Jul 2024 14:14:30 GMT</pubDate>
            <atom:updated>2024-07-08T14:24:15.740Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/224/1*yNv5fHOqcp4OKKpnHCj0LQ.png" /></figure><h3>1.Purpose of the Project</h3><p>PAYEE is a robust budgeting tool designed to help users manage their finances efficiently. The application allows users to create wallets, categorize their expenses, and track their spending habits over time. The goal is to provide a user-friendly platform that simplifies financial management and encourages better budgeting practices using AI assistants.</p><h3>Team Members, Roles, and Timeline</h3><ul><li><strong>Lumasia Stancelaus</strong> (Fullstack Developer): Responsible for the overall project management, front-end development, UI/UX design, API integration, and Database management.</li><li><strong>Timeline</strong>: The project started in June 2024 for its initial MVP.</li></ul><h3>Target Audience</h3><p>PAYEE is created for individuals who want to take control of their personal finances, including students, professionals, and families. It is also beneficial for small business owners who need to track their business expenses alongside their personal budget.</p><h3>Personal Focus</h3><p>My focus was on creating an intuitive and visually appealing interface using React and Tailwind CSS. I prioritized building a responsive design that works seamlessly across various devices. Additionally, I ensured that the integration with the backend APIs was smooth and efficient, providing a seamless user experience. For the backend, I used Flask web framework, SQLAlchemy ORM and MySQL for the Database.</p><h3><strong>2. My story: Why did I choose to work on Payee?</strong></h3><p>Growing up, I often watched my parents struggle with managing our family’s finances. They worked tirelessly, but budgeting was always a challenge, leading to constant stress about money. I remember nights when the kitchen table was covered in bills, receipts, and a calculator, with my parents trying to make sense of it all. Despite their efforts, it always seemed like there was never enough to cover everything.</p><p>One particular incident stands out in my memory. I was around 12 years old, and we were about to go on a family vacation that my parents had been planning for months. I could see how excited they were to give us a break from our everyday routine. However, just a week before we were supposed to leave, an unexpected medical bill arrived. My parents had to make the difficult decision to cancel the trip. I saw the disappointment in their eyes and the guilt they felt for not being able to provide the experience they had hoped for. That moment left a lasting impression on me.</p><p>As I grew older and started managing my own finances, I realized the importance of budgeting and financial planning. I saw how proper budgeting could relieve stress and make room for enjoyable experiences. I began exploring various budgeting tools, but none of them quite met my needs or were intuitive enough for everyday use. I often thought back to my parents and how a simple, effective tool could have made a significant difference for them.</p><p>When the opportunity arose to create a project, I knew I wanted to develop a tool that could help families like mine manage their finances more effectively. PAYEE was born out of this desire to make budgeting accessible and straightforward. I wanted to create an application that would prevent others from facing the same financial struggles my family did.</p><p>Working on PAYEE is not just a technical challenge for me; it’s a personal mission. I want to ensure that families can avoid the stress and disappointment that comes from financial mismanagement. By providing a user-friendly platform for budgeting, I hope to empower people to take control of their finances and achieve their financial goals, making room for the things that truly matter in life.</p><p>Through PAYEE, I aim to turn my personal experiences into a positive force that can help others lead more financially secure and stress-free lives.</p><h3>3. Result of the PAYEE Project</h3><h3>Architecture Diagram</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*seI45yRnwbqdc0_e" /></figure><h3>Technologies Used</h3><p><strong>Frontend: React and Tailwind CSS</strong></p><ul><li><strong>React:</strong> I chose React for its component-based architecture, which allows for efficient development and reusability of UI components. React’s state management and lifecycle methods made it easier to handle dynamic data and user interactions.</li><li><strong>Tailwind CSS:</strong> Tailwind CSS was selected for its utility-first approach, which enabled us to create a responsive and visually appealing interface without writing extensive custom CSS. It allowed for rapid prototyping and consistent styling across the application.</li></ul><p><strong>Backend: Flask and SQLAlchemy</strong></p><ul><li><strong>Flask:</strong> Flask is a lightweight and flexible web framework for Python that allowed us to quickly set up our backend API. Its simplicity and modularity were perfect for our needs, enabling us to build a robust RESTful API to handle data transactions.</li><li><strong>SQLAlchemy:</strong> I used SQLAlchemy as our ORM (Object-Relational Mapping) tool to interact with the MySQL database. SQLAlchemy’s expressive and flexible query language allowed us to manage database operations efficiently.</li></ul><p><strong>Database: MySQL</strong></p><ul><li><strong>MySQL:</strong> MySQL was chosen for its reliability, scalability, and support for complex queries. It is a well-established relational database management system that ensures data integrity and performance.</li></ul><p><strong>Authentication: JWT (JSON Web Tokens)</strong></p><ul><li><strong>JWT:</strong> For secure user authentication, we implemented JWT. JWT tokens provide a stateless authentication mechanism, which is scalable and suitable for modern web applications. It allowed us to manage user sessions securely without the need for server-side storage.</li></ul><h3>Key Features Completed</h3><ol><li><strong>Wallet Creation and Management</strong></li></ol><ul><li>Users can create multiple wallets to manage different aspects of their finances (e.g., personal expenses, savings, business expenses).</li><li>Each wallet can have its own set of categories for better organization and tracking.</li></ul><p><strong>2. Expense Tracking and Categorization</strong></p><ul><li>Users can add, edit, and delete expenses within each wallet.</li><li>Expenses can be categorized, allowing users to see a detailed breakdown of their spending habits and identify areas where they can save money.</li></ul><p><strong>3. Budget Analysis and Insights</strong></p><ul><li>The application provides users with insights into their spending patterns through visual charts and summaries.</li><li>Users can set budget limits for each category and receive notifications when they approach or exceed their budget, helping them stay on track with their financial goals.</li></ul><h3>Technical Challenge: Solving CORS Issues in PAYEE</h3><p>Early in the development of PAYEE, I faced a significant challenge related to Cross-Origin Resource Sharing (CORS). My React frontend, hosted on Vercel, was unable to communicate with our Flask backend API due to the CORS policy enforced by web browsers. This issue was critical as it prevented key functionalities of our application from working.</p><h3>Situation</h3><p>I recognized that resolving the CORS issue was crucial for the success of our project. Without a solution, users would be unable to create wallets, track expenses, or use any of PAYEE’s core features, potentially derailing our project timeline and user experience.</p><h3>Task</h3><p>My task was to implement a solution that would enable our React application to securely and seamlessly communicate with our Flask backend, ensuring that API requests were accepted and processed correctly.</p><h3>Action</h3><p>I began by researching CORS and its impact on web applications. I decided to use the flask-cors library to handle CORS in our Flask application. This involved configuring the library to allow requests from our frontend domain and ensuring that preflight requests were handled properly. Additionally, I updated our React application to include the necessary CORS headers and settings.</p><h3>Result</h3><p>After implementing these changes, the CORS issues were resolved, allowing our React frontend to successfully communicate with the Flask backend. This solution enabled users to interact with the application seamlessly, ensuring a smooth flow of data between the front end and backend. Resolving this challenge was a pivotal moment for the PAYEE project, allowing us to proceed confidently and provide a reliable and secure user experience.</p><h3><strong>My Lessons while building Payee</strong></h3><ol><li>Always set milestones and have clear goals.</li><li>I’d focus more on building solutions rather than worrying about the stack.</li><li>I am more intersted in Backend.</li><li>I will focus more on backend for my specializations</li><li>Frontend is as complicated as Backend, hats off to all the designers and Frontend engineers.</li></ol><h3><strong>Conclusion</strong></h3><p>I am Lumasia Stancelaus, a training Software Engineer at ALX. I am proud to have achieved this milestone, and I look forward for more to come.</p><ul><li><a href="https://github.com/lumasia07/PAYEE">GitHub - lumasia07/PAYEE</a></li><li><a href="https://payeeapp.vercel.app/create_home_wallet">Payee</a></li><li><a href="https://payeeapp.vercel.app/">Payee</a></li></ul><p><a href="http://www.linkedin.com/in/lumasia-stancelaus">www.linkedin.com/in/lumasia-stancelaus</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b021ed05178" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Post-Mortem: The Great Server Meltdown of 2024]]></title>
            <link>https://lumasiastancelaus.medium.com/post-mortem-the-great-server-meltdown-of-2024-2731d2f7a089?source=rss-ed708c11d1dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/2731d2f7a089</guid>
            <category><![CDATA[postmortem]]></category>
            <category><![CDATA[humor]]></category>
            <dc:creator><![CDATA[Lumasia ]]></dc:creator>
            <pubDate>Fri, 07 Jun 2024 09:36:35 GMT</pubDate>
            <atom:updated>2024-06-07T09:36:35.481Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Incident Overview:</strong></p><p>On June 3, 2024, at approximately 2:14 PM, our servers decided to take an unscheduled nap, leading to a total system outage of 2 hours and 27 minutes. It was a dark time for us all, especially for those who missed their daily dose of cat memes.</p><p><strong>Timeline of Events:</strong></p><ol><li><strong>2:14 PM</strong> — All systems go offline. Users flood social media with confusion and GIFs of burning buildings.</li><li><strong>2:16 PM</strong> — On-call engineer receives an alert, and quickly finishes their coffee (priorities).</li><li><strong>2:30 PM</strong> — Initial diagnosis: “It’s on fire” (metaphorically).</li><li><strong>2:45 PM</strong> — The team assembles like Avengers but with more coffee and less spandex.</li><li><strong>3:00 PM</strong> — Root cause identified: A rogue script running amok.</li><li><strong>4:00 PM</strong> — Systems start coming back online.</li><li><strong>4:41 PM</strong> — Full service restored. Users resume their cat meme consumption.</li></ol><p><strong>Root Cause:</strong></p><p>After an intense investigation involving Sherlock-level sleuthing, we discovered the culprit: an innocuous-looking maintenance script. This script, meant to clean up old logs, had a bug that caused it to delete active session data instead. Who knew tidy logs could be so deadly?</p><p><strong>Impact Analysis:</strong></p><ul><li><strong>User Impact</strong>: 100% of users experienced downtime.</li><li><strong>Business Impact</strong>: Lost revenue, increased support tickets, and a barrage of memes mocking our downtime.</li><li><strong>Emotional Impact</strong>: High. Many tears were shed.</li></ul><p><strong>Action Items:</strong></p><ol><li><strong>Review and Refactor Scripts</strong>: Implement a stricter review process for maintenance scripts. No more trusting scripts named “cleanup. sh” blindly.</li><li><strong>Improved Monitoring</strong>: Enhance our monitoring to catch similar issues earlier. We need alerts that scream “FIRE!” instead of “Possible Issue Detected”.</li><li><strong>Disaster Recovery Plan</strong>: Develop a comprehensive disaster recovery plan. Next time, we’ll be ready for anything — even a zombie apocalypse.</li></ol><p><strong>Lessons Learned:</strong></p><ol><li><strong>Assume Nothing</strong>: Just because it’s a simple script doesn’t mean it’s harmless.</li><li><strong>Communication is Key</strong>: Keep all stakeholders informed. Regular updates during an incident can prevent panic and confusion.</li><li><strong>Humour Helps</strong>: In times of crisis, a little humour can go a long way in maintaining team morale.</li></ol><p><strong>Closing Remarks:</strong></p><p>We take incidents like this seriously and are committed to preventing future occurrences. We appreciate your patience and understanding as we navigated this challenging situation.</p><p>Here’s a little something to brighten your day:</p><p>Thank you for reading! Stay tuned for my next post-mortem, where we promise more excitement, more lessons, and possibly a few more cat memes.</p><p><em>Disclaimer: No cats were harmed in the making of this post-mortem.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2731d2f7a089" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Postmortem]]></title>
            <link>https://lumasiastancelaus.medium.com/postmortem-90a7e8fb371a?source=rss-ed708c11d1dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/90a7e8fb371a</guid>
            <category><![CDATA[postmortem]]></category>
            <dc:creator><![CDATA[Lumasia ]]></dc:creator>
            <pubDate>Fri, 07 Jun 2024 09:14:56 GMT</pubDate>
            <atom:updated>2024-06-07T09:14:56.423Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Payee Service Outage</strong></p><p>Issue Summary</p><p>On June 1, 2024, from 14:00 to 18:00 GMT, the payee registration and login services became unavailable to 70% of their user base. New users couldn’t register or log in if they already had an account. It was an issue of database lock-up because of an unexpectedly high number of concurrent transactions happening at the same time, along with a missing database index on a commonly queried column.</p><p>Timeline</p><p>- 14:00 GMT — Issue identified through an automated monitoring alert showing elevated error rates for the registration and login services.<br>- 14:05 GMT — Reported to the Engineering team, which started initial research.<br>- 14:10 GMT — Confirmed user-reported failures to register/log in.<br>- 14:20 GMT — A more detailed investigation started by the database team to explore the potential cause, focusing on connection problems.<br>- 14:30 GMT— Suspected network latency issue; cross-verified with the network team, no issue reported.<br>- 15:00 GMT— Misleading path; suspect that recent deployment can be the cause, roll back to last-known version, but still, the issue prevailed.<br>- 16:00 GMT — Deep diving into database logs showed a warning related to deadlock and slow queries.<br>- 16:30 GMT — The incident was further escalated to the database architecture team for a more in-depth investigation.<br>- 17:00 GMT — Identified missing index on the `email` column of the `users` table, leading to deadlocks at high loads.<br>- 17:30 GMT — Created and applied missing index.<br>- 18:00 GMT — Full recovery in services, and error rates are back to normal.</p><p><strong>Root Cause and Resolution</strong></p><p><strong>Root Cause</strong></p><p>A high number of requests were being generated from both Registration and Payee services, resulting in a spike in this service. There was no index on the `email` column of the most used `users` table. This caused extreme slowness in query performance, which, reciprocally, caused transaction deadlocks and failures of service.</p><p><strong>Resolution</strong></p><p>When it was understood that the missing index was actually the problematic root cause, the database team proceeded with the building of an index on the `email` table column and applied it. This optimization cut down the query time, consequently removing deadlocks and restoring the service in function.</p><p><strong>Improvements to Corrective and Preventative Measures</strong></p><p>- Improve database indexing strategy with regular audits and performance testing to identify and fix potential bottlenecks.<br>- More rigorous monitoring and alerting for database performance metrics, i.e., the execution time of queries and detector cases for deadlocks.<br>- Develop and implement automated scripts to detect and resolve common database issues, e.g., missing indexes.</p><p><strong>Tasks</strong></p><p>1. Audit current database indexes. Optimize them where needed.<br>2. Monitoring Enhancements<br> — Add query execution time alerts.<br> — Monitor deadlock events and other important database performance indicators.<br>3. Automated Index Suggestion Tool: Develop a tool that can periodically analyze query patterns and suggest required indexes.<br>4. Load Testing: Do periodic load testing to simulate high traffic and identify potential performance hardships.<br>5. Deploy Update Process: Ensure that performance considerations are made with every change to the database and that these are reviewed by the database architecture team when deploying an update.<br>6. Training: Train engineering teams on database optimization and troubleshooting.</p><p>While this postmortem is supposed to get a clear understanding of the outage, the steps taken to resolve it are, foremost, a measure that we plan to implement to avoid such a situation in future occurrences. We hope that the resolution of these issues proactively shall enable us to secure the Payee service toward guaranteed stability and reliability.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90a7e8fb371a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What happens when you type google.com in your browser and press Enter]]></title>
            <link>https://lumasiastancelaus.medium.com/what-happens-when-you-type-google-com-in-your-browser-and-press-enter-9d39de9452b9?source=rss-ed708c11d1dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d39de9452b9</guid>
            <category><![CDATA[what-happens-when-you-typ]]></category>
            <dc:creator><![CDATA[Lumasia ]]></dc:creator>
            <pubDate>Thu, 09 May 2024 10:38:36 GMT</pubDate>
            <atom:updated>2024-05-09T10:58:26.591Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever wondered what takes place behind the scenes, when you type a URL into your Web browser search bar? What are the technicalities behind this magic that happens as you hit ENTER? Well, it is a very complex process that your request undergoes to return your results.</p><h3>1. DNS Request</h3><p>Once you type <strong>google.com</strong> a DNS lookup is initiated to match the domain name to the associated IP address on the internet. The DNS query is normally sent to a DNS resolver provided by your ISP or any other public DNS service available. The DNS resolver is responsible for this lookup, if the lookup process is successful the IP address(<strong>e.g: 8.8.8.8</strong>) is returned to your browser</p><h3><strong>2. TCP/IP Connection</strong></h3><p>A TCP/IP(Transmission Control Protocol or Internet Protocol) then initiates a connection to the server hosting<strong> </strong><a href="http://www.google.com/"><strong>www.google.com</strong></a> using the IP Address (8.8.8.8) returned to the browser by the DNS resolver. TCP/IP is responsible for the reliable transfer of data between the client and server.</p><h3>3. Firewall</h3><p><strong>google.com </strong>then passes through a series of firewalls or any other security measures in your web stack. This ensures that your request is safe in the server’s network.</p><h3>4. HTTPS/SSL</h3><p>Our request contained an <strong>https:// </strong>before our domain name(<strong>google.com</strong>), this was to instruct the browser to establish a secure connection using SSL/TLS(Secure Sockets Layer/Transport Layer Security). An SSL certificate is provided by the server through SSL handshake. This certificate proves its identity and encrypts data transmitted over the connection.</p><h3><strong>5. Load Balancer</strong></h3><p>A load balancer is responsible for distributing traffic to multiple servers to prevent overload. In our case <strong>google.com, </strong>the company has a large infrastructure to balance traffic efficiently. Load Balancers are usually located just in front of servers, so as to route requests to readily available servers using various algorithms.</p><h3>6. Web Server</h3><p>A web server serves static content such as images and forwards dynamic content requests to the Application server. Our web server in this case renders any image associated with our <strong>google.com.</strong></p><h3>7. Application server</h3><p>The web server forwards dynamic requests to our Application server. This server is responsible for running the actual application code written in languages such as Python and Node.js. It also interacts with databases to retrieve requests based on our <strong>google.com.</strong></p><h3>8. Database</h3><p>Data on <strong>google.com </strong>is stored here. The application server communicates with the database server to retrieve or store requested data. Examples are SQL, MySQL, and SQLite.</p><h3>Summary</h3><p>So, when you type https://www.google.com in your browser and press Enter, what seems like a simple action, triggers a complex series of steps involving DNS lookup, TCP/IP connection establishment, SSL/TLS encryption, load balancing, web server processing, application server execution, and database interaction. Understanding this process is crucial for software engineers and IT professionals working with web technologies, as it forms the backbone of how information flows over the internet.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d39de9452b9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>