<?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"><channel><title><![CDATA[Ankit Blogs]]></title><description><![CDATA[Ankit Blogs]]></description><link>https://ankitt.com</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 12:36:56 GMT</lastBuildDate><atom:link href="https://ankitt.com/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[When Bad Things Happen: Don’t Feel Bad—Grow Through It]]></title><description><![CDATA[Life doesn’t always go as planned.
You lose a job. A relationship falls apart. A dream you poured your heart into crumbles. The first instinct? Feel bad. And that’s normal—pain demands to be felt. But staying stuck there, in that guilt, frustration, ...]]></description><link>https://ankitt.com/when-bad-things-happen-dont-feel-badgrow-through-it</link><guid isPermaLink="true">https://ankitt.com/when-bad-things-happen-dont-feel-badgrow-through-it</guid><dc:creator><![CDATA[Ankit]]></dc:creator><pubDate>Wed, 25 Jun 2025 09:00:14 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/stock/unsplash/4rWjKzxilGI/upload/aa9008d89f505cde2cf86e919ae6a878.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Life doesn’t always go as planned.</p>
<p>You lose a job. A relationship falls apart. A dream you poured your heart into crumbles. The first instinct? Feel bad. And that’s normal—pain demands to be felt. But staying stuck there, in that guilt, frustration, or self-pity? That’s a choice. One that keeps you from seeing the real gift hidden in the mess: <strong>growth</strong>.</p>
<h3 id="heading-pain-is-not-punishment">Pain Is Not Punishment</h3>
<p>We often see pain as punishment, as if life is targeting us. But pain isn’t personal. It’s a part of life. Everyone, no matter how successful or lucky they seem, carries a story marked by struggle. What separates people isn’t what happens to them—it’s what they do with what happens.</p>
<p>Instead of asking, <em>“Why me?”</em>, try asking, <em>“What can I learn from this?”</em></p>
<h3 id="heading-every-setback-is-a-signal">Every Setback Is a Signal</h3>
<p>Bad things have a strange way of teaching us what we never knew we needed. They push us out of comfort zones, make us reflect, force us to grow.</p>
<ul>
<li><p>That betrayal? Taught you about boundaries.</p>
</li>
<li><p>That failure? Showed you where to improve.</p>
</li>
<li><p>That heartbreak? Made you emotionally stronger.</p>
</li>
<li><p>That missed opportunity? Cleared space for a better one.</p>
</li>
</ul>
<p>It’s rarely obvious in the moment. But with time and perspective, even the most painful events begin to make sense.</p>
<h3 id="heading-you-are-not-your-mistakes">You Are Not Your Mistakes</h3>
<p>Feeling bad for what happened doesn’t help you heal. What helps? Acceptance. Compassion—for yourself and others. And the courage to keep moving forward.</p>
<p>Remember: <strong>you are not your circumstances, you are how you respond to them</strong>.</p>
<p>Each scar is a sign of survival. A badge that says, “I lived. I learned. I’m still here.”</p>
<h3 id="heading-embrace-the-detours">Embrace the Detours</h3>
<p>Growth doesn’t happen in straight lines. It happens in the unexpected turns, the setbacks, the “this shouldn’t have happened” moments. Those are the places where your character is shaped, your purpose sharpened, your resilience built.</p>
<p>So the next time something bad happens, take a deep breath.</p>
<p>Yes, it hurts. But don’t feel bad for yourself.</p>
<p>Instead, feel <strong>grateful</strong> that life is giving you a deeper lesson. One that can transform you—if you let it.</p>
<hr />
<p><strong>In short:</strong> Bad things are not the end of the story. They’re just plot twists leading you to a stronger, wiser, and more powerful version of yourself.</p>
<p>So grow through what you go through.</p>
]]></content:encoded></item><item><title><![CDATA[You Are More Blessed Than You Think — Be Grateful and Help When You Can]]></title><description><![CDATA[In our busy lives, it's easy to focus on what's missing. The things we haven't achieved yet. The dreams we’re still chasing. The problems we wish would disappear. But sometimes, all it takes is a moment of stillness to realize — we already have so mu...]]></description><link>https://ankitt.com/you-are-more-blessed-than-you-think-be-grateful-and-help-when-you-can</link><guid isPermaLink="true">https://ankitt.com/you-are-more-blessed-than-you-think-be-grateful-and-help-when-you-can</guid><dc:creator><![CDATA[Ankit]]></dc:creator><pubDate>Sun, 20 Apr 2025 17:44:06 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/stock/unsplash/bjfypt2KTTo/upload/285692590200b8fc984483426c6c62f5.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>In our busy lives, it's easy to focus on what's missing. The things we haven't achieved yet. The dreams we’re still chasing. The problems we wish would disappear. But sometimes, all it takes is a moment of stillness to realize — <strong>we already have so much</strong>.</p>
<h3 id="heading-the-basics-are-a-big-deal">The Basics Are a Big Deal</h3>
<p>If you woke up this morning with a roof over your head, food on your plate, and clean water to drink, you’re already doing better than millions of people around the world. If you have a safe space to rest, people to talk to, or even the ability to read this — you’re incredibly fortunate.</p>
<p>We tend to overlook these things because they’ve become part of our daily routine. But they are <strong>not guaranteed</strong>. For many, these “simple things” are out of reach. There are people who go days without a proper meal. Children who sleep hungry. Families choosing between paying rent or buying food.</p>
<p>It’s humbling to realize that what we take for granted is someone else’s greatest wish.</p>
<h3 id="heading-shift-the-focus">Shift the Focus</h3>
<p>Gratitude isn’t about pretending life is perfect. It’s about acknowledging what <em>is</em> good, even in the middle of challenges. When we start focusing on what we have — instead of what we lack — our mindset shifts. We become more grounded. More aware. More human.</p>
<p>And with that awareness comes responsibility.</p>
<h3 id="heading-help-if-you-can-or-let-us-know-if-someone-needs-it">Help If You Can — Or Let Us Know If Someone Needs It</h3>
<p>If you know someone struggling — someone who doesn’t have enough to eat, someone going through a rough time — <strong>please tell us</strong>. We want to help in any way we can. Maybe it’s food, maybe it’s support, maybe it’s just someone to listen. Whatever is within our reach, we’ll try.</p>
<p>📩 <em>If someone you know is in need, contact us. We’ll do our best to help within our capacity.</em></p>
<p>You might not be able to fix every problem in the world — none of us can — but even a small act of kindness can make a huge difference to someone who needs it.</p>
<h3 id="heading-final-thought">Final Thought</h3>
<p>Take a moment today to look at your life with fresh eyes. You’ve come a long way. You’ve overcome things you once thought would break you. And you’ve got more blessings around you than you probably realize.</p>
<p>Let that awareness fuel gratitude. And let that gratitude lead to compassion.</p>
<p>Be thankful. Stay humble. Help where you can. That’s how we build a better world — one small act at a time.</p>
]]></content:encoded></item><item><title><![CDATA[Karma Always Comes Back to Bite You]]></title><description><![CDATA[Karma is often described as the universal law of cause and effect—what you put out into the world eventually finds its way back to you. Whether you believe in it from a spiritual, philosophical, or purely logical perspective, there’s no denying that ...]]></description><link>https://ankitt.com/karma-always-comes-back-to-bite-you</link><guid isPermaLink="true">https://ankitt.com/karma-always-comes-back-to-bite-you</guid><category><![CDATA[karma]]></category><category><![CDATA[healing]]></category><category><![CDATA[life]]></category><dc:creator><![CDATA[Ankit]]></dc:creator><pubDate>Fri, 21 Mar 2025 08:33:35 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/stock/unsplash/uWrrSDKjiBs/upload/939d5bf38dbd122964844bef6930842b.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Karma is often described as the universal law of cause and effect—what you put out into the world eventually finds its way back to you. Whether you believe in it from a spiritual, philosophical, or purely logical perspective, there’s no denying that actions have consequences. When you treat people poorly, act dishonestly, or manipulate others for personal gain, karma has a way of making sure you face the repercussions—often when you least expect it.</p>
<h3 id="heading-the-boomerang-effect-of-karma"><strong>The Boomerang Effect of Karma</strong></h3>
<p>Imagine karma as a boomerang. The energy, actions, and intentions you throw into the world eventually circle back. Some people might think they can escape the consequences of their actions, but karma works on its own timeline. It might not hit you immediately, but rest assured, when it does, it’s usually swift and brutal.</p>
<h3 id="heading-examples-of-karma-in-action"><strong>Examples of Karma in Action</strong></h3>
<ol>
<li><p><strong>Betrayal Comes Full Circle</strong><br /> If you’ve ever witnessed someone stab a friend, colleague, or partner in the back for personal gain, you’ve probably also seen their downfall. Betrayers often find themselves in situations where they are double-crossed by someone they trusted—or end up completely isolated.</p>
</li>
<li><p><strong>Dishonesty Leads to Exposure</strong><br /> Lies have a funny way of unraveling at the worst possible moments. Whether it’s cheating in a relationship, lying in a business deal, or spreading false rumors, the truth has a way of surfacing. And when it does, the embarrassment, loss of credibility, and damage to one’s reputation are often far worse than any short-term gain from dishonesty.</p>
</li>
<li><p><strong>Abusing Power Results in a Fall from Grace</strong><br /> History is full of stories of people who abused their power, thinking they were untouchable—only to watch their empire crumble. Whether it’s corrupt leaders, unethical bosses, or toxic individuals in personal relationships, karma ensures that no one stays on top forever if they mistreat others.</p>
</li>
</ol>
<h3 id="heading-karma-works-both-ways"><strong>Karma Works Both Ways</strong></h3>
<p>Of course, karma isn’t just about payback. If you consistently put out kindness, honesty, and integrity, life tends to reward you in unexpected ways. Helping others, making ethical choices, and treating people with respect create positive energy that often returns tenfold.</p>
<h3 id="heading-final-thoughts"><strong>Final Thoughts</strong></h3>
<p>Karma isn’t just some mystical force—it’s a reflection of the choices we make and how they shape our lives. So if you’re out there stepping on others to get ahead, lying to gain an advantage, or hurting people without a second thought, just remember: karma is patient, but it never forgets. And when it comes back around, it won’t be gentle.</p>
<p>What do you think—have you ever seen karma in action?</p>
]]></content:encoded></item><item><title><![CDATA[F*** Relative]]></title><description><![CDATA[How Your Fake Well-Wishers Are Destroying You Without You Knowing It
In life, we often surround ourselves with people who claim to have our best interests at heart. They smile, offer advice, and seem to support us in every way. But not all well-wishe...]]></description><link>https://ankitt.com/f-relative</link><guid isPermaLink="true">https://ankitt.com/f-relative</guid><category><![CDATA[Self Improvement ]]></category><category><![CDATA[selfawareness]]></category><dc:creator><![CDATA[Ankit]]></dc:creator><pubDate>Sun, 16 Feb 2025 12:46:40 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/stock/unsplash/ycZy7tcpWN4/upload/a0b8b604b87e421ef66026617c827829.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><strong>How Your Fake Well-Wishers Are Destroying You Without You Knowing It</strong></p>
<p>In life, we often surround ourselves with people who claim to have our best interests at heart. They smile, offer advice, and seem to support us in every way. But not all well-wishers are genuine. Some are wolves in sheep’s clothing, subtly undermining your progress, confidence, and happiness without you even realizing it. These fake well-wishers can be more destructive than outright enemies because their harm is cloaked in kindness. Here’s how they operate, with real-life examples to help you identify and protect yourself from their toxic influence.</p>
<hr />
<h3 id="heading-1-they-mask-criticism-as-concern"><strong>1. They Mask Criticism as Concern</strong></h3>
<p>Fake well-wishers often criticize you under the guise of caring. They might say, “I’m only telling you this because I care about you,” but their words are designed to make you doubt yourself. For instance, a friend might constantly point out your flaws in relationships, making you feel unworthy of love, all while claiming they’re helping you “improve.”</p>
<p><strong>Real-life example:</strong> Imagine a colleague who always comments on your presentation skills, saying, “You’re good, but you could be so much better if you just worked on X, Y, and Z.” Instead of motivating you, their “feedback” leaves you feeling inadequate and hesitant to take on new challenges.</p>
<hr />
<h3 id="heading-2-they-sabotage-your-success"><strong>2. They Sabotage Your Success</strong></h3>
<p>Fake well-wishers often feel threatened by your achievements and will subtly sabotage your progress. They might discourage you from pursuing opportunities, downplay your accomplishments, or even spread rumors to tarnish your reputation.</p>
<p><strong>Real-life example:</strong> A friend who constantly tells you that your dreams are “unrealistic” or that you’re “not ready” for a promotion may secretly fear being left behind. Instead of cheering you on, they plant seeds of doubt to keep you from outshining them.</p>
<hr />
<h3 id="heading-3-they-isolate-you-from-genuine-support"><strong>3. They Isolate You from Genuine Support</strong></h3>
<p>Fake well-wishers often try to monopolize your time and attention, isolating you from people who truly care about you. They might badmouth your other friends or family members, making you question their intentions and driving a wedge between you and your support system.</p>
<p><strong>Real-life example:</strong> A toxic partner might convince you that your friends are “jealous” of your relationship or that your family is “too controlling.” Over time, you distance yourself from those who could offer you genuine advice and perspective.</p>
<hr />
<h3 id="heading-4-they-thrive-on-your-insecurities"><strong>4. They Thrive on Your Insecurities</strong></h3>
<p>Fake well-wishers are experts at exploiting your vulnerabilities. They might pretend to empathize with your struggles but use your insecurities to manipulate you. For example, they might encourage you to stay in a toxic situation because “it’s safer” or “you’re not ready for change.”</p>
<p><strong>Real-life example:</strong> A family member who knows you struggle with self-esteem might discourage you from pursuing a new career path, saying, “You’re not cut out for that. Why risk failure?” Instead of empowering you, they keep you trapped in self-doubt.</p>
<hr />
<h3 id="heading-5-they-celebrate-your-failures"><strong>5. They Celebrate Your Failures</strong></h3>
<p>While genuine friends will console you during tough times, fake well-wishers often revel in your misfortunes. They might offer superficial sympathy but secretly enjoy seeing you struggle. Their true colors show when they downplay your successes or magnify your failures.</p>
<p><strong>Real-life example:</strong> A so-called friend who constantly reminds you of past mistakes or failures, saying things like, “Remember when you messed up that project?” is not trying to help you grow—they’re trying to keep you stuck in the past.</p>
<hr />
<h3 id="heading-how-to-protect-yourself-from-fake-well-wishers"><strong>How to Protect Yourself from Fake Well-Wishers</strong></h3>
<ol>
<li><p><strong>Trust Your Instincts:</strong> If something feels off about someone’s behavior or advice, don’t ignore it. Your gut often knows when someone’s intentions aren’t pure.</p>
</li>
<li><p><strong>Evaluate Their Actions, Not Just Their Words:</strong> Pay attention to how people treat you over time. Do they celebrate your wins, or do they seem indifferent or envious? Do they support your goals, or do they discourage you?</p>
</li>
<li><p><strong>Seek Second Opinions:</strong> If someone’s advice or criticism feels harsh or unhelpful, consult someone you trust. A genuine well-wisher will offer constructive feedback, not tear you down.</p>
</li>
<li><p><strong>Set Boundaries:</strong> Don’t be afraid to distance yourself from people who drain your energy or undermine your confidence. Surround yourself with those who uplift and inspire you.</p>
</li>
<li><p><strong>Focus on Self-Awareness:</strong> The more you understand your worth and goals, the harder it becomes for fake well-wishers to manipulate you. Invest in personal growth and self-confidence.</p>
</li>
</ol>
<hr />
<h3 id="heading-conclusion"><strong>Conclusion</strong></h3>
<p>Fake well-wishers are like termites—they quietly eat away at your foundation until you’re left weakened and vulnerable. By recognizing their tactics and protecting yourself from their influence, you can reclaim your power and focus on building relationships that truly enrich your life. Remember, not everyone who smiles at you has your best interests at heart. Choose your circle wisely, and don’t let anyone dim your light.</p>
]]></content:encoded></item><item><title><![CDATA[Advanced System Design for a Complex Product: Global Video Streaming Platform]]></title><description><![CDATA[Let’s design a system for a globally scaled video streaming platform like Netflix. This platform allows users to stream high-quality video content on-demand, supports millions of concurrent users, and ensures low-latency playback with adaptive stream...]]></description><link>https://ankitt.com/advanced-system-design-for-a-complex-product-global-video-streaming-platform</link><guid isPermaLink="true">https://ankitt.com/advanced-system-design-for-a-complex-product-global-video-streaming-platform</guid><category><![CDATA[System Design]]></category><category><![CDATA[AWS]]></category><category><![CDATA[architecture]]></category><dc:creator><![CDATA[Ankit]]></dc:creator><pubDate>Sat, 04 Jan 2025 18:06:56 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1736013923548/2fd060e1-a4bb-4caf-9217-be43ff2951c7.webp" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Let’s design a system for a globally scaled video streaming platform like Netflix. This platform allows users to stream high-quality video content on-demand, supports millions of concurrent users, and ensures low-latency playback with adaptive streaming.</p>
<h3 id="heading-1-problem-statement"><strong>1. Problem Statement</strong></h3>
<p>Build a globally distributed video streaming platform with the following requirements:</p>
<h4 id="heading-functional-requirements"><strong>Functional Requirements:</strong></h4>
<ul>
<li><p>Users can register, log in, and manage profiles.</p>
</li>
<li><p>Search and recommendation engine for personalized content.</p>
</li>
<li><p>Streaming high-definition (HD) videos with adaptive bitrate.</p>
</li>
<li><p>Secure playback with DRM (Digital Rights Management).</p>
</li>
<li><p>Support for multiple devices and platforms.</p>
</li>
</ul>
<h4 id="heading-non-functional-requirements"><strong>Non-Functional Requirements:</strong></h4>
<ul>
<li><p>High availability with 99.99% uptime.</p>
</li>
<li><p>Low latency playback worldwide.</p>
</li>
<li><p>Scalable to support millions of users.</p>
</li>
<li><p>Data integrity and consistency for user profiles, subscriptions, and video metadata.</p>
</li>
</ul>
<hr />
<h3 id="heading-2-high-level-system-architecture"><strong>2. High-Level System Architecture</strong></h3>
<h4 id="heading-core-components"><strong>Core Components:</strong></h4>
<ol>
<li><p><strong>Frontend:</strong></p>
<ul>
<li><p>Web and mobile apps for different platforms (Android, iOS, Smart TVs, etc.).</p>
</li>
<li><p>Lightweight and responsive UI to handle different screen sizes.</p>
</li>
</ul>
</li>
<li><p><strong>Backend:</strong></p>
<ul>
<li><p><strong>User Service:</strong> Handles user registration, authentication, and profile management.</p>
</li>
<li><p><strong>Video Service:</strong> Manages video metadata (e.g., title, description, categories).</p>
</li>
<li><p><strong>Streaming Service:</strong> Handles video playback, adaptive bitrate, and caching.</p>
</li>
<li><p><strong>Recommendation Engine:</strong> Provides personalized recommendations.</p>
</li>
<li><p><strong>Payment Service:</strong> Handles subscriptions and payments.</p>
</li>
</ul>
</li>
<li><p><strong>Database Layer:</strong></p>
<ul>
<li><p><strong>Relational Database (RDS):</strong> For structured data like user profiles and subscriptions.</p>
</li>
<li><p><strong>NoSQL Database:</strong> For unstructured data like video metadata and recommendations.</p>
</li>
</ul>
</li>
<li><p><strong>Content Delivery Network (CDN):</strong></p>
<ul>
<li>Distributes video content globally for low-latency playback.</li>
</ul>
</li>
<li><p><strong>Third-Party Integrations:</strong></p>
<ul>
<li><p>DRM service for secure playback.</p>
</li>
<li><p>Payment gateways like Stripe or PayPal.</p>
</li>
<li><p>Analytics platforms for usage tracking.</p>
</li>
</ul>
</li>
</ol>
<hr />
<h3 id="heading-3-detailed-components-and-workflow"><strong>3. Detailed Components and Workflow</strong></h3>
<h4 id="heading-a-user-authentication"><strong>A. User Authentication</strong></h4>
<ul>
<li><p>Use <strong>OAuth 2.0</strong> for secure login via email, social accounts, or Single Sign-On (SSO).</p>
</li>
<li><p>Store hashed passwords using bcrypt or Argon2 in a secure database.</p>
</li>
</ul>
<h4 id="heading-b-video-storage-and-processing"><strong>B. Video Storage and Processing</strong></h4>
<ol>
<li><p><strong>Storage:</strong></p>
<ul>
<li>Use Amazon S3 or Google Cloud Storage for raw video uploads.</li>
</ul>
</li>
<li><p><strong>Processing:</strong></p>
<ul>
<li><p>Transcode videos into multiple resolutions (e.g., 240p, 480p, 1080p) using tools like FFmpeg.</p>
</li>
<li><p>Store transcoded videos in a distributed object store like AWS S3.</p>
</li>
</ul>
</li>
</ol>
<h4 id="heading-c-adaptive-bitrate-streaming"><strong>C. Adaptive Bitrate Streaming</strong></h4>
<ul>
<li><p>Split videos into smaller chunks (e.g., 5-second segments).</p>
</li>
<li><p>Encode each chunk at different bitrates for adaptive streaming (HLS/DASH protocols).</p>
</li>
<li><p>Use a manifest file to tell the player which video chunks to request based on network conditions.</p>
</li>
</ul>
<h4 id="heading-d-cdn-integration"><strong>D. CDN Integration</strong></h4>
<ul>
<li><p>Use a globally distributed CDN (e.g., Akamai, Cloudflare, or AWS CloudFront) to cache video content near users.</p>
</li>
<li><p>Pre-cache popular videos in edge servers for instant playback.</p>
</li>
</ul>
<h4 id="heading-e-recommendation-engine"><strong>E. Recommendation Engine</strong></h4>
<ol>
<li><p><strong>Data Collection:</strong></p>
<ul>
<li>Track user behavior (e.g., watch history, likes, and search patterns).</li>
</ul>
</li>
<li><p><strong>Algorithm:</strong></p>
<ul>
<li>Use <strong>collaborative filtering</strong> (similar user preferences) and <strong>content-based filtering</strong> (based on metadata).</li>
</ul>
</li>
<li><p><strong>Storage:</strong></p>
<ul>
<li>Store recommendations in a NoSQL database like Cassandra for fast access.</li>
</ul>
</li>
</ol>
<h4 id="heading-f-payment-service"><strong>F. Payment Service</strong></h4>
<ul>
<li><p>Integrate with secure payment gateways.</p>
</li>
<li><p>Use <strong>idempotent APIs</strong> to avoid duplicate charges.</p>
</li>
<li><p>Send transaction logs to a financial system for auditing.</p>
</li>
</ul>
<h4 id="heading-g-real-time-analytics"><strong>G. Real-Time Analytics</strong></h4>
<ul>
<li><p>Use a data pipeline (e.g., Kafka) to collect streaming metrics (buffering events, bitrate changes, etc.).</p>
</li>
<li><p>Store metrics in a data warehouse (e.g., Snowflake) for reporting.</p>
</li>
</ul>
<hr />
<h3 id="heading-4-database-design"><strong>4. Database Design</strong></h3>
<h4 id="heading-relational-database-postgresql"><strong>Relational Database:</strong> (PostgreSQL)</h4>
<ul>
<li><p><strong>Users Table:</strong> Stores user profiles.</p>
</li>
<li><p><strong>Subscriptions Table:</strong> Tracks active subscriptions.</p>
</li>
<li><p><strong>Videos Table:</strong> Contains metadata for all videos.</p>
</li>
</ul>
<h4 id="heading-nosql-database-cassandra"><strong>NoSQL Database:</strong> (Cassandra)</h4>
<ul>
<li><p><strong>Recommendations Table:</strong> Key-value store for user recommendations.</p>
</li>
<li><p><strong>Playback History Table:</strong> Stores playback progress and history.</p>
</li>
</ul>
<hr />
<h3 id="heading-5-scalability-and-reliability"><strong>5. Scalability and Reliability</strong></h3>
<ol>
<li><p><strong>Horizontal Scaling:</strong></p>
<ul>
<li><p>Deploy backend services in Kubernetes clusters.</p>
</li>
<li><p>Use auto-scaling groups to handle traffic spikes.</p>
</li>
</ul>
</li>
<li><p><strong>Load Balancing:</strong></p>
<ul>
<li>Use Elastic Load Balancers to distribute traffic across servers.</li>
</ul>
</li>
<li><p><strong>Database Sharding:</strong></p>
<ul>
<li>Partition user data by region to reduce latency.</li>
</ul>
</li>
<li><p><strong>Disaster Recovery:</strong></p>
<ul>
<li><p>Implement multi-region data replication.</p>
</li>
<li><p>Use regular backups and restore mechanisms.</p>
</li>
</ul>
</li>
</ol>
<hr />
<h3 id="heading-6-security"><strong>6. Security</strong></h3>
<ul>
<li><p><strong>Data Encryption:</strong> Encrypt sensitive data (e.g., user credentials, payment info).</p>
</li>
<li><p><strong>DRM:</strong> Secure video playback to prevent unauthorized copying.</p>
</li>
<li><p><strong>Access Controls:</strong> Implement role-based access controls for internal services.</p>
</li>
</ul>
<hr />
<h3 id="heading-7-example-workflow-video-playback"><strong>7. Example Workflow: Video Playback</strong></h3>
<ol>
<li><p><strong>User Interaction:</strong></p>
<ul>
<li>User searches for a video and clicks "Play."</li>
</ul>
</li>
<li><p><strong>Backend Processing:</strong></p>
<ul>
<li><p>The app sends a request to the Video Service.</p>
</li>
<li><p>The service retrieves video metadata from the database.</p>
</li>
</ul>
</li>
<li><p><strong>Streaming Setup:</strong></p>
<ul>
<li><p>The service selects the closest CDN edge server.</p>
</li>
<li><p>The CDN serves the video manifest file to the user.</p>
</li>
</ul>
</li>
<li><p><strong>Video Playback:</strong></p>
<ul>
<li><p>The player requests video chunks dynamically based on network speed.</p>
</li>
<li><p>The chunks are streamed from the CDN to the user.</p>
</li>
</ul>
</li>
</ol>
]]></content:encoded></item><item><title><![CDATA[Step-by-Step System Design]]></title><description><![CDATA[1. Understand the Requirements
Before jumping into design, clarify the functional and non-functional requirements.

Functional requirements:

User registration and login.

Browsing restaurants and menus.

Placing orders.

Real-time order tracking.

P...]]></description><link>https://ankitt.com/step-by-step-system-design</link><guid isPermaLink="true">https://ankitt.com/step-by-step-system-design</guid><category><![CDATA[System Design]]></category><category><![CDATA[architecture]]></category><category><![CDATA[Databases]]></category><category><![CDATA[backend]]></category><category><![CDATA[frontend]]></category><dc:creator><![CDATA[Ankit]]></dc:creator><pubDate>Sat, 04 Jan 2025 18:00:22 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1736013595156/c7e01e9a-0473-47c5-9eb6-274a5093c10d.webp" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h4 id="heading-1-understand-the-requirements">1. <strong>Understand the Requirements</strong></h4>
<p>Before jumping into design, clarify the functional and non-functional requirements.</p>
<ul>
<li><p><strong>Functional requirements:</strong></p>
<ul>
<li><p>User registration and login.</p>
</li>
<li><p>Browsing restaurants and menus.</p>
</li>
<li><p>Placing orders.</p>
</li>
<li><p>Real-time order tracking.</p>
</li>
<li><p>Payment processing.</p>
</li>
</ul>
</li>
<li><p><strong>Non-functional requirements:</strong></p>
<ul>
<li><p>Scalability to handle millions of users.</p>
</li>
<li><p>Reliability to ensure orders are always processed correctly.</p>
</li>
<li><p>Low latency for a seamless user experience.</p>
</li>
</ul>
</li>
</ul>
<hr />
<h4 id="heading-2-define-the-high-level-architecture">2. <strong>Define the High-Level Architecture</strong></h4>
<p>The food delivery app can be divided into several high-level components:</p>
<ul>
<li><p><strong>Frontend:</strong> The user interface for mobile and web applications.</p>
</li>
<li><p><strong>Backend:</strong> The server-side logic that handles requests, processes data, and communicates with other services.</p>
</li>
<li><p><strong>Database:</strong> Stores user data, restaurant menus, order history, etc.</p>
</li>
<li><p><strong>Third-party services:</strong> For payments, push notifications, and map integration.</p>
</li>
</ul>
<hr />
<h4 id="heading-3-break-down-the-system">3. <strong>Break Down the System</strong></h4>
<h5 id="heading-a-user-authentication"><strong>a. User Authentication</strong></h5>
<ul>
<li><p>Use a service like <strong>OAuth 2.0</strong> for secure login and registration.</p>
</li>
<li><p>Store user credentials securely using encryption techniques like hashing.</p>
</li>
</ul>
<h5 id="heading-b-restaurant-and-menu-browsing"><strong>b. Restaurant and Menu Browsing</strong></h5>
<ul>
<li><p>Use a <strong>content delivery network (CDN)</strong> to serve static images of restaurant menus quickly.</p>
</li>
<li><p>Implement a caching mechanism, like <strong>Redis</strong>, to store frequently accessed data and reduce database queries.</p>
</li>
</ul>
<h5 id="heading-c-order-placement-and-processing"><strong>c. Order Placement and Processing</strong></h5>
<ul>
<li><p>Build a microservices architecture to handle different parts of the system (e.g., order service, payment service).</p>
</li>
<li><p>Use a <strong>message queue</strong> (like RabbitMQ or Kafka) to ensure that orders are processed asynchronously and reliably.</p>
</li>
</ul>
<h5 id="heading-d-real-time-order-tracking"><strong>d. Real-Time Order Tracking</strong></h5>
<ul>
<li><p>Use <strong>WebSockets</strong> or <strong>server-sent events (SSE)</strong> to send real-time location updates to users.</p>
</li>
<li><p>Integrate a mapping API (e.g., Google Maps API) for delivery tracking.</p>
</li>
</ul>
<h5 id="heading-e-payment-integration"><strong>e. Payment Integration</strong></h5>
<ul>
<li><p>Integrate with a secure payment gateway like Stripe or PayPal.</p>
</li>
<li><p>Implement fraud detection mechanisms for secure transactions.</p>
</li>
</ul>
<hr />
<h4 id="heading-4-database-design">4. <strong>Database Design</strong></h4>
<p>Design the database schema to ensure data consistency and efficiency. For a food delivery app, consider:</p>
<ul>
<li><p><strong>Users table:</strong> Stores user details.</p>
</li>
<li><p><strong>Restaurants table:</strong> Contains restaurant and menu details.</p>
</li>
<li><p><strong>Orders table:</strong> Tracks orders, statuses, and timestamps.</p>
</li>
<li><p><strong>Delivery table:</strong> Stores delivery partner information and order assignments.</p>
</li>
</ul>
<p>Use a <strong>relational database</strong> like PostgreSQL for structured data and a <strong>NoSQL database</strong> like MongoDB for flexible, hierarchical data (e.g., nested menu items).</p>
<hr />
<h4 id="heading-5-scaling-the-system">5. <strong>Scaling the System</strong></h4>
<p>As the app grows, you’ll need to handle millions of users and orders simultaneously.</p>
<ul>
<li><p>Use <strong>load balancers</strong> to distribute traffic across multiple servers.</p>
</li>
<li><p>Implement <strong>horizontal scaling</strong> by adding more servers to handle increased traffic.</p>
</li>
<li><p>Use <strong>database sharding</strong> to split large datasets across multiple databases.</p>
</li>
</ul>
<hr />
<h4 id="heading-6-monitoring-and-maintenance">6. <strong>Monitoring and Maintenance</strong></h4>
<p>Set up monitoring tools like Prometheus and Grafana to track system performance. Use <strong>logging services</strong> like ELK Stack for debugging and troubleshooting. Regularly update the system to fix bugs and improve features.</p>
<hr />
<h3 id="heading-final-thoughts">Final Thoughts</h3>
<p>System design is a journey of breaking down a problem into smaller, manageable parts. By focusing on clear requirements and thinking through each component step by step, even the most complicated systems become easier to understand.</p>
<p>When designing a system, always consider scalability, reliability, and user experience. With this approach, you can build robust systems that meet the needs of both users and businesses.</p>
]]></content:encoded></item><item><title><![CDATA[The Hidden Career Killer: How Being Toxic Can Destroy Your Career with Limited Experience]]></title><description><![CDATA[In the professional world, your behavior often speaks louder than your skills. For individuals with limited experience, this is especially true. While technical expertise and a willingness to learn can help compensate for a lack of tenure, toxic beha...]]></description><link>https://ankitt.com/the-hidden-career-killer-how-being-toxic-can-destroy-your-career-with-limited-experience</link><guid isPermaLink="true">https://ankitt.com/the-hidden-career-killer-how-being-toxic-can-destroy-your-career-with-limited-experience</guid><category><![CDATA[work]]></category><category><![CDATA[Culture]]></category><category><![CDATA[office]]></category><dc:creator><![CDATA[Ankit]]></dc:creator><pubDate>Sat, 04 Jan 2025 17:05:27 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1736010941115/aeb52853-f099-4465-8715-bc0a7d975947.webp" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>In the professional world, your behavior often speaks louder than your skills. For individuals with limited experience, this is especially true. While technical expertise and a willingness to learn can help compensate for a lack of tenure, toxic behavior can derail your career trajectory before it even begins. Here’s how toxicity manifests and why it’s a career killer, particularly for those just starting out.</p>
<hr />
<h4 id="heading-what-is-toxic-behavior">What Is Toxic Behavior?</h4>
<p>Toxic behavior can take many forms, including:</p>
<ul>
<li><p><strong>Negative Attitude:</strong> Constant complaining, pessimism, or reluctance to adapt.</p>
</li>
<li><p><strong>Gossiping:</strong> Spreading rumors or speaking ill of colleagues behind their backs.</p>
</li>
<li><p><strong>Disrespect:</strong> Dismissing other people’s opinions, interrupting, or displaying rude behavior.</p>
</li>
<li><p><strong>Lack of Accountability:</strong> Blaming others for mistakes or refusing to take ownership of tasks.</p>
</li>
<li><p><strong>Manipulation:</strong> Using deceit or coercion to get ahead.</p>
</li>
</ul>
<p>These behaviors may not only alienate your colleagues but also erode trust and damage your reputation—both of which are critical to career growth.</p>
<hr />
<h4 id="heading-why-toxic-behavior-is-especially-damaging-for-those-with-limited-experience">Why Toxic Behavior Is Especially Damaging for Those with Limited Experience</h4>
<ol>
<li><p><strong>First Impressions Last:</strong> Early in your career, you’re building your professional identity. If your colleagues and supervisors perceive you as toxic, that impression can be hard to shake. Worse, negative word-of-mouth could follow you to future opportunities.</p>
</li>
<li><p><strong>Fewer Accomplishments to Offset Negativity:</strong> Experienced professionals might survive periods of toxicity due to a strong track record. However, if you’re new and haven’t built a portfolio of accomplishments, toxic behavior becomes your defining trait.</p>
</li>
<li><p><strong>Burned Bridges:</strong> Networking is vital for career advancement. Toxicity can cause colleagues, mentors, and leaders to distance themselves from you, closing doors to mentorship and job referrals.</p>
</li>
<li><p><strong>Reputation Overreach:</strong> With limited experience, your reputation is often your most valuable asset. If your behavior harms that reputation, it’s a long climb to rebuild it—and some opportunities may simply be lost forever.</p>
</li>
<li><p><strong>Learning Opportunities Diminish:</strong> When you exhibit toxic behavior, others are less likely to collaborate with you or share knowledge. This limits your growth and learning potential, leaving you stuck in a cycle of mediocrity.</p>
</li>
</ol>
<hr />
<h4 id="heading-the-ripple-effects-of-toxicity">The Ripple Effects of Toxicity</h4>
<p>Toxicity doesn’t just affect your career; it can also harm the organization:</p>
<ul>
<li><p><strong>Decreased Team Morale:</strong> A toxic individual can lower the overall team’s productivity and satisfaction.</p>
</li>
<li><p><strong>High Turnover:</strong> Toxicity drives good employees away, creating instability in the team.</p>
</li>
<li><p><strong>Damaged Culture:</strong> Persistent toxic behavior can erode a positive workplace culture.</p>
</li>
</ul>
<p>When employers recognize these issues, they’re often quick to part ways with toxic employees to preserve the team’s health—and newer employees are more likely to be let go first.</p>
<hr />
<h4 id="heading-how-to-avoid-being-perceived-as-toxic">How to Avoid Being Perceived as Toxic</h4>
<ol>
<li><p><strong>Practice Self-Awareness:</strong> Reflect on how your words and actions might affect others. Seek feedback from trusted colleagues or mentors to gain perspective.</p>
</li>
<li><p><strong>Adopt a Growth Mindset:</strong> Approach challenges and criticism as opportunities to learn rather than reasons to complain or blame.</p>
</li>
<li><p><strong>Communicate Effectively:</strong> Listen actively, express yourself respectfully, and avoid gossip or negativity in the workplace.</p>
</li>
<li><p><strong>Take Accountability:</strong> Own up to your mistakes and take steps to correct them. Accountability builds trust and shows maturity.</p>
</li>
<li><p><strong>Foster Positive Relationships:</strong> Be supportive, collaborative, and encouraging. People are more likely to overlook minor mistakes if they enjoy working with you.</p>
</li>
</ol>
<hr />
<h4 id="heading-turning-toxicity-around">Turning Toxicity Around</h4>
<p>If you recognize toxic tendencies in yourself, it’s never too late to change. Consider these steps:</p>
<ul>
<li><p><strong>Seek Professional Development:</strong> Courses in emotional intelligence, conflict resolution, or leadership can provide tools to improve.</p>
</li>
<li><p><strong>Find a Mentor:</strong> A seasoned professional can guide you in developing better workplace habits.</p>
</li>
<li><p><strong>Apologize and Rebuild Trust:</strong> If you’ve hurt colleagues, a sincere apology coupled with changed behavior can go a long way.</p>
</li>
</ul>
<hr />
<h4 id="heading-final-thoughts">Final Thoughts</h4>
<p>In the early stages of your career, your attitude and behavior are as important as your skills. Avoid the pitfalls of toxic behavior by cultivating self-awareness, fostering collaboration, and maintaining a positive outlook. Remember, your professional reputation starts the moment you walk through the door. Don’t let toxicity define your career—instead, let your actions reflect the kind of professional you aspire to be.</p>
]]></content:encoded></item></channel></rss>