<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"><channel><title><![CDATA[Saleha's Substack]]></title><description><![CDATA[My personal Substack]]></description><link>https://salehashujaat.substack.com</link><image><url>https://substackcdn.com/image/fetch/$s_!UOCn!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F56c387d7-fe7d-4150-9f0a-fb38d20fc2f8_144x144.png</url><title>Saleha&apos;s Substack</title><link>https://salehashujaat.substack.com</link></image><generator>Substack</generator><lastBuildDate>Sat, 01 Aug 2026 21:41:51 GMT</lastBuildDate><atom:link href="https://salehashujaat.substack.com/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[Saleha]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[salehashujaat@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[salehashujaat@substack.com]]></itunes:email><itunes:name><![CDATA[Saleha]]></itunes:name></itunes:owner><itunes:author><![CDATA[Saleha]]></itunes:author><googleplay:owner><![CDATA[salehashujaat@substack.com]]></googleplay:owner><googleplay:email><![CDATA[salehashujaat@substack.com]]></googleplay:email><googleplay:author><![CDATA[Saleha]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[System Design learning is a constant journey 🛤️]]></title><description><![CDATA[Lessons from practice, a course, a whiteboard and a lot of trial and error &#128260;]]></description><link>https://salehashujaat.substack.com/p/system-design-learning-is-a-constant</link><guid isPermaLink="false">https://salehashujaat.substack.com/p/system-design-learning-is-a-constant</guid><pubDate>Tue, 21 Jul 2026 13:49:00 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!UOCn!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F56c387d7-fe7d-4150-9f0a-fb38d20fc2f8_144x144.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>With AI reshaping how we build software, system design thinking matters more than ever: the fundamentals of scale, tradeoffs, and reliability don&#8217;t change just because a model is writing more of the code.<span><br></span><br>I&#8217;ve been prepping to level up for system design. Weeks of actual went into this - notes, pausing videos mid-sentence to sketch things out in draw.io, chasing down architectuarl styles and patterns that popped into my head from things I&#8217;ve heard or ran into at work, understanding and then implementing to see where the theory broke. It has been a fun journey all along!! Distributed systems, scalability, caching, dbs, the architectural patterns that hold big systems together - none of it stuck until I'd gone back and forth between the course, what I was already seeing in practice and my own attempts enough times to actually trust it.</p><p>Here&#8217;s what actually stuck with me&#8230; </p><p><strong>&#129300; The first thing I misunderstood: It&#8217;s not about getting the &#8220;right&#8221; answer</strong> </p><p>In the interview, they're not grading you against a reference architecture. They're watching how you think - how you break down a vague prompt like "design Youtube," what questions you ask before touching the whiteboard.</p><p><strong>&#128736;&#65039; Lesson 1 : Always choose the simplest thing that works</strong></p><p>I assumed system design was about knowing the fanciest tools and sharing the same in interviews. It&#8217;s the opposite.<br><br>Sure, I could throw an amazon EC2 instance behind a load balancer with autoscaling  at a problem. But if I&#8217;m building an internal tool for a few hundred users, why would I?? Every extra service you add is something you own: patching, monitoring, capacity you&#8217;re paying for and not using</p><p>The skill was never knowing the big tools. <em>It&#8217;s knowing when you don&#8217;t need them.</em></p><p><strong>&#127919; Lesson 2 : Start with the customer, not the tech</strong></p><p>This is basically Amazon's &#8220;working backwards&#8221; principle applied to architecture and it did reframe how I approach every design later in my projects. Before anything goes on the whiteboard, a few questions decide the entire stack:</p><ul><li><p><strong>Where are the users? - </strong>whether you need a CDN for a multi-region replication or a single DB could be enough for one region.</p></li><li><p><strong>Hundreds of users or millions? - </strong>decision between vertical or horizontal scaling behind a LB.</p></li><li><p><strong>How fast does it need to feel? - &#8220;</strong>fast&#8221; isn&#8217;t a spec. p99 latency under 200ms and p99 under 2s are two completely different systems.</p></li><li><p><strong>What are the traffic peaks? - </strong>steady load or spikes lead to very different calls on autoscaling and queuing.</p></li></ul><p>These answers decide everything. And before you build, get agreement on these requirements with your PM / interviewer before a single box goes on the diagram of building a new system or a new feature for an existing system.</p><p><strong>&#127760; Lesson 3: Distributed systems are everywhere</strong></p><p><span>Once your data outgrows one machine, you&#8217;re in the distributed systems world. This is when things get interesting.</span></p><ul><li><p><strong>Sharding</strong> <strong>=</strong> split one big DB into smaller ones, each on its own server. More read/write capacity, less load per node. </p></li><li><p><strong>Replication</strong> is the actual heartbeat of resilience or in other words prevention for single point of failure. Same idea whether it&#8217;s your DB, your cache, or HDFS blocks - copy data across racks so one dying rack doesn&#8217;t take your data with it.</p></li><li><p><strong>CAP theorem, practically:</strong> you can&#8217;t max out <em>consistency</em>, <em>availability, and partition tolerance</em> at once - pick what your system needs. Its a requirement conversation.</p></li></ul><p><strong>&#128184; Lesson 4: Resilience is a spending decision disguised as an engineering one</strong></p><p>Plan for failure in layers: single host, rack, data center, region. The tech (hot/warm/cold standby) is the easy part. The hard part is asking <strong>&#8220;how much downtime can the business actually afford&#8221;</strong> because that answer decides how much redundancy you&#8217;re paying for.</p><p><strong>&#9989; Lesson 5 : Every architecture pattern is a tool, not a checkbox</strong></p><p>Somewhere in the course I stopped listing components and started asking what failure mode each one prevents.</p><ul><li><p><strong>Load balancer</strong> - round robin if your servers are identical and stateless, least-connections if request cost varies, hash-based if you need session affinity. </p></li><li><p><strong>CDN</strong> - only for what actually needs to sit close to users. Static assets, video, images - yes. Your write path - <strong>no</strong>. It gets expensive fast if you&#8217;re not deliberate about what&#8217;s cached at the edge.</p></li><li><p><strong>Message queues</strong> - decouple producer from consumer so a slow downstream service doesn&#8217;t take the upstream one down with it. SQS-style if you need exactly one consumer per message, Kafka-style pub/sub if multiple services need to react to the same event independently.</p></li><li><p><strong>Idempotency, the quiet requirement</strong> - the moment you add retries or a queue, the same message can get processed twice. If your handler isn&#8217;t idempotent, &#8220;at least once&#8221; delivery becomes a bug generator, not a reliability feature.</p></li></ul><p>None of these five lessons are separate from each other, really. They're the same question asked in five different ways. </p><p>The course gave me the vocabulary. The back-and-forth rereading, sketching, breaking my own implementations - iis what's slowly turning it into something that actually sticks.</p><p>Still figuring plenty of it out &#128517;. If you&#8217;ve been down this road, I&#8217;d genuinely like to know: which system design tradeoff took you the longest to actually trust in production, not just get right on a whiteboard???</p>]]></content:encoded></item><item><title><![CDATA[The Dhul Hijjah that changed something in me]]></title><description><![CDATA[A reflection on how I spent Dhul Hijjah 1447]]></description><link>https://salehashujaat.substack.com/p/the-dhul-hijjah-that-changed-something</link><guid isPermaLink="false">https://salehashujaat.substack.com/p/the-dhul-hijjah-that-changed-something</guid><dc:creator><![CDATA[Saleha]]></dc:creator><pubDate>Thu, 04 Jun 2026 14:12:32 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!UOCn!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F56c387d7-fe7d-4150-9f0a-fb38d20fc2f8_144x144.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Hey Salaam ya&#8217;ll, this year&#8217;s dhul hijjah has been very different for me - knowledge wise, spiritually and emotionally. For the longest time, Dhul Hijjah was my second favourite Islamic month after Ramadan. But this year, something changed. I think Eid ul Adha quietly became my favourite of the two Eids. Maybe because, for the first time, I felt the weight and beauty of these days differently. &#128153;</p><p>So for everyone who does not know, I work at a Muslim org and a lot of our features and work are connected to major Islamic months and moments that hold deep importance for us as Muslims. So when Dhul Hijjah started, we had our work planned, and Alhamdulillah, things at work were going as expected. But while work was moving, something inside me was moving too. I started thinking about how, in our South Asian / Pakistani culture, we give so much importance to the nights of Ramadan, but we do not always give the same importance to the first ten days of Dhul Hijjah. Sometimes, these days are treated like ordinary days - and I say this including myself. Even I did not fully understand their importance before learning more about them.  And honestly, that realization made me a little sad, because these are the best ten days of the year. Around the same time, something very beautiful happened at work. Coming from a South Asian background, making duaas out loud is not very common among young people or at least that has been my experience. It is usually something we associate more with older people. But this Dhul Hijjah, I saw it happen so naturally. During our standups, we had this culture of making duaa out loud -thanks to my team lead. Different people made duaa on different days, and every time it happened, it felt so sincere and heart touching. It was simple. No overthinking, no awkwardness, just a bunch of people asking Allah swt together. And I loved that! &#128153;</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://salehashujaat.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Saleha's Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p>With this, during the best ten days of the year, Alhamdulillah, I felt greater khushoo in my prayers. These daily duaas during Dhul Hijjah made me feel more connected to Allah swt. Alhamdulillah Summa Alhamdulillah &#128557; I also realized there is still so much room to improve the way I make duaa. But even that awareness felt like a blessing. Alhamdulillah! This year, I tried to structure my long and short duaas in a kind of sandwich method:</p><p>Praise Allah swt.<br>Send salawat upon Prophet Muhammad &#1589;&#1614;&#1604;&#1614;&#1617;&#1609; &#1649;&#1604;&#1604;&#1617;&#1648;&#1607;&#1615; &#1593;&#1614;&#1604;&#1614;&#1610;&#1618;&#1607;&#1616; &#1608;&#1614;&#1587;&#1614;&#1604;&#1614;&#1617;&#1605;&#1614;<br>Thank Allah swt.<br>Ask for forgiveness and tawbah.<br>Then ask for whatever is in my heart. And the trick is to go <strong>all in</strong> - with all the faith, all the hope, and all the neediness.<br>Send salawat upon Prophet Muhammad &#1589;&#1614;&#1604;&#1614;&#1617;&#1609; &#1649;&#1604;&#1604;&#1617;&#1648;&#1607;&#1615; &#1593;&#1614;&#1604;&#1614;&#1610;&#1618;&#1607;&#1616; &#1608;&#1614;&#1587;&#1614;&#1604;&#1614;&#1617;&#1605;&#1614;<br>Praise Allah swt.</p><p>Then came the most blessed day: the <strong>Day of Arafah</strong>. There are so many beautiful references that show the importance of this day. I felt terrible for not giving it this kind of importance earlier. I remember my Day of Arafah in previous years used to be something like: I would fast, do some ibadah, zikr, and duaa - and that was it. Maybe I just did not realize the magnitude of importance this day holds... I mean, fasting on the Day of Arafah expiates the sins of the previous year and the coming year <strong>[Sahih Muslim 1162]</strong>. And then there are so many moments on this day where you can ask Allah swt for just anything. Here, credit also goes to the kind of work I do and the colleagues I have around me. Alhamdulillah, I cannot thank Allah swt enough for that. And when the day passes, the duaas we forgot to make start coming back to us like post-exam regrets. &#128517; In those duaas, while saying takbeer and tahmeed, there was this deep urge in my heart for Hajj 2027 InshaAllah. So dear reader, maybe sneak in a duaa for me and my family too. &#128522;<br><br>Alhamdulillah, this time I also learned a few new comprehensive Arabic duaas and integrated them into my duaa structure. And all of this made me realize how dependent and needy we are of Allah swt. Even if we spent an entire day asking Him, it still would not be enough for everything our hearts carry. And yet, in our normal routines, we sometimes struggle to sit and make duaa for even five minutes.<br><br>Who do we think we are??? <br>So full of ourselves.<br>So convinced by our own efforts.<br>So caught up in thinking we are in control.<br><br>When in reality, it has always been Allah swt. And still, we forget to ask Him properly. We forget to make detailed duaas. We forget that Allah SWT loves when we turn to Him, ask Him, beg Him, and trust Him like a child trusts the one who takes care of them. &#128153;</p><p>And then came the beautiful Eid - Eid ul Adha. Alhamdulillah, my company gave us holidays till the weekend. That itself felt like such a blessing, especially getting to enjoy Eid properly with family. &#9786;&#65039;</p><p>And before Eid, on my last working day, we had a conversation around qurbani. Since I work with a multicultural team, everyone had different experiences and perspectives. Some colleagues from North America were genuinely surprised when I told them that, in Pakistan, many families bring their qurbani goats or cows home, take care of them, love them, and feel the essence of qurbani closely - sometimes themselves and sometimes with butchers doing qurbani in the backyards.</p><p>That conversation stayed with me. It made me realize how different our experiences of Eid can be across cultures.<br><br>And maybe that is why Eid ul Adha touched me so differently this year. All of it came together in a way I had not experienced before. Alhamdulillah! May Allah swt accept our fasts, duaas, sacrifices, prayers, hajj and all our tiny imperfect efforts. And may He invite us all to Hajj. Ameen. &#129293;<a href="https://www.launchgood.com/v4/scheduled-giving/dhc/bismillah">The Dhul Hijjah Challenge</a></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://salehashujaat.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Saleha's Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item></channel></rss>