<?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 SportsBaazi Engineering on Medium]]></title>
        <description><![CDATA[Stories by SportsBaazi Engineering on Medium]]></description>
        <link>https://medium.com/@sportsbaazi-engineering?source=rss-19682139d373------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*UnejhJmrRquD6xgGF4Dt4g.jpeg</url>
            <title>Stories by SportsBaazi Engineering on Medium</title>
            <link>https://medium.com/@sportsbaazi-engineering?source=rss-19682139d373------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 13:18:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sportsbaazi-engineering/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[Migration from Redis OSS to Valkey]]></title>
            <link>https://medium.com/@sportsbaazi-engineering/migration-from-redis-oss-to-valkey-5117cf637904?source=rss-19682139d373------2</link>
            <guid isPermaLink="false">https://medium.com/p/5117cf637904</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[migration]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[cache]]></category>
            <dc:creator><![CDATA[SportsBaazi Engineering]]></dc:creator>
            <pubDate>Tue, 12 Aug 2025 10:36:04 GMT</pubDate>
            <atom:updated>2025-08-12T10:56:57.980Z</atom:updated>
            <content:encoded><![CDATA[<p>The landscape of high-performance applications relies heavily on efficient in-memory data stores. Redis, a long-time favorite, has faced scrutiny due to licensing changes that challenge its open-source credibility. Enter Valkey, a robust, community-driven alternative.</p><p>At <a href="https://www.sportsbaazi.com/"><strong>SportsBaazi</strong></a>, we executed a full migration from Redis to Valkey in just three days, driven by the need for open-source reliability and enhanced scalability. This deep-dive explores the technical, strategic, and operational blueprint behind that decision and execution.</p><h3>Why Valkey? The Strategic Imperative for Modern Applications</h3><h4>A. Licensing &amp; Community Commitment</h4><p>Redis’s move from BSD-3-Clause to source-available licenses (RSALv2, SSPLv1, AGPLv3) in versions 7.4+ sparked concern. These licenses either restrict usage or impose legal obligations unacceptable to many businesses.</p><p>Valkey, forked from Redis 7.2.4 and governed by the Linux Foundation, retains the BSD-3-Clause license and is backed by AWS, Google, Snap, Oracle, and more. This ensures:</p><ul><li>No licensing lock-in</li><li>Active community development</li><li>Long-term vendor neutrality</li></ul><h4>B. Performance Enhancements</h4><p>Valkey evolved Redis’s architecture by adding I/O multithreading and improved clustering. Key outcomes from our benchmarks include:</p><ul><li>Up to 3x throughput vs. Redis 7.x</li><li>1.19M requests per second (RPS) on a c7g.4xlarge instance (Valkey 8.0)</li><li>~20% lower memory footprint via optimized dictionary structures</li><li>Cluster scalability up to 1000 nodes</li></ul><h3>Technical Capabilities: Analysis</h3><h4>A. Drop-in Compatibility</h4><p>Valkey supports all major Redis data types and is compatible with:</p><ul><li>100+ client libraries</li><li>Lua scripts &amp; modules</li><li>Command parity with Redis 7.2.4</li></ul><h4>B. High Availability &amp; Replication</h4><p>Valkey uses a primary-replica model, improved with:</p><ul><li>Dual-channel replication (50% faster syncs)</li><li>Non-blocking writes during sync</li><li>Failover improvements</li><li>Cluster replica migration (HA safeguard)</li></ul><h4>C. Observability &amp; Security</h4><p>Valkey enhances visibility and security with:</p><ul><li>Per-slot metrics</li><li>TLS, ACLs, Protected mode</li><li>INFO command for real-time stats</li></ul><h3>SportsBaazi’s 3-Day Migration Playbook</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*faJlZwHWDInsDLWBeUWFPA.png" /></figure><h4>A. Preparation</h4><ol><li><strong>Validate:</strong> Ensure your application’s client libraries and configurations are compatible with Valkey.</li><li><strong>Provision:</strong> Set up target Valkey clusters in your staging environment. We chose AWS ElastiCache for Valkey.</li><li><strong>Backup:</strong> Create a full backup of your Redis data using RDB or AOF persistence.</li><li><strong>Network:</strong> Establish secure, peered network access between your existing Redis and new Valkey clusters.</li><li><strong>Dry-Run:</strong> Conduct a full migration dry-run in a non-production environment to stress-test the new cluster and validate application functionality.</li></ol><h4>B. Migration Strategy</h4><p>Our preferred method was a <strong>Replication-Based Online Migration</strong>, which guarantees zero downtime.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qZvxM0-vPBqkumdxSerTKw.png" /></figure><p><strong>Step-by-step example:</strong></p><ol><li><strong>Replicate:</strong> On your new Valkey replica, execute the command: REPLICAOF &lt;redis_ip&gt; &lt;redis_port&gt;.</li><li><strong>Sync:</strong> Monitor the replication status on the Valkey replica using INFO REPLICATION. Wait for master_link_status:up and master_sync_in_progress:0.</li><li><strong>Cutover:</strong> In a clustered environment, you can use CLUSTER FAILOVER to promote the Valkey replica to a new primary.</li><li><strong>Redirect:</strong> Update your application’s connection string to point to the new Valkey primary.</li><li><strong>Decommission:</strong> Once traffic is fully validated, you can safely shut down your old Redis instance.</li></ol><p>We avoided <strong>Offline Migration</strong> because it introduces significant downtime and carries a higher risk due to a “big-bang” cutover.</p><h3>Conclusion &amp; Recommendations</h3><p>The Redis → Valkey migration at SportsBaazi was a success due to strategic clarity on open-source alignment, a modernized architecture, and the tactical use of online migration for zero-downtime. Our experience reinforced Valkey’s value as a performant, reliable, and cost-effective solution.</p><p><strong>Recommendations for Teams Considering Migration:</strong></p><ul><li><strong>Use online migration:</strong> Always choose a replication-based or cloud-managed online migration to avoid downtime.</li><li><strong>Validate rigorously:</strong> Test everything in a non-production clone before cutover.</li><li><strong>Leverage observability:</strong> Enable CLUSTER SLOT-STATS and other metrics early for better debugging and tuning.</li><li><strong>Engage with the community:</strong> Join the Valkey open-source community to stay informed and benefit from shared knowledge.</li></ul><p>SportsBaazi’s migration was completed in 3 days with zero downtime and higher resilience. Valkey is now our default caching engine.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5117cf637904" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Serving peak IPL traffic at normal-day costs]]></title>
            <link>https://medium.com/@sportsbaazi-engineering/serving-peak-ipl-traffic-at-normal-day-costs-de97f905ee7f?source=rss-19682139d373------2</link>
            <guid isPermaLink="false">https://medium.com/p/de97f905ee7f</guid>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[cricket]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[SportsBaazi Engineering]]></dc:creator>
            <pubDate>Mon, 04 Aug 2025 09:04:42 GMT</pubDate>
            <atom:updated>2025-08-05T11:36:10.645Z</atom:updated>
            <content:encoded><![CDATA[<h3>Serving peak Indian T20 league traffic at normal-day costs</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6NeL5WWPXzYz7wNxjhcKjQ.jpeg" /></figure><p>Indian T20 League isn’t just a cricket tournament — it’s one of the most-watched sporting spectacles on the planet, and for digital platforms, that means one thing: <em>traffic surges</em>. We at <a href="https://www.sportsbaazi.com/">SportsBaazi</a> faced the annual Indian T20 league challenge head-on — massive traffic spikes, skyrocketing AWS bills, and the growing pressure to deliver seamless performance to millions of concurrent users.</p><p>This is the story of how we re-architected our cloud infrastructure to <em>serve </em>Indian T20 league<em>-scale traffic at the cost of a regular day</em> — achieving an <strong>80% drop in daily cloud spend</strong>, eliminating waste, and increasing system performance by <strong>25%</strong>. Not with more money, but with smarter engineering.</p><h3>⚡ The Challenge: Traffic Surge Meets Budget Explosion</h3><p>During Indian T20 league season, we used to rely on traditional methods: over-provision infrastructure and keep it all running “just in case.” This led to:</p><ul><li><strong>300–500% increase in cloud costs</strong></li><li><strong>Wasted compute and storage during off-peak hours</strong></li><li><strong>Manual scaling bottlenecks</strong></li><li><strong>Risk of degraded performance despite high costs</strong></li></ul><p>This model wasn’t just inefficient — it was unsustainable.</p><h3>🎯 The Mission: Match Indian T20 league Peak Performance With Everyday Costs</h3><p>We set out with five core objectives:</p><ol><li><strong>Cost Optimization:</strong> Reduce Indian T20 league season costs to match normal-day operations</li><li><strong>No Performance Degradation:</strong> Keep user experience smooth, no matter the load</li><li><strong>Elastic Scalability:</strong> Infrastructure should scale up and down <em>automatically</em></li><li><strong>Operational Efficiency:</strong> Kill manual toil, maximize automation</li><li><strong>Sustainability:</strong> Build a repeatable framework for all future high-traffic events</li></ol><h3>🧠 The Solution: Modern, Intelligent, Cloud-Native Architecture</h3><p>We didn’t just tweak — we <em>transformed</em>.</p><h3>✅ Database Optimizations</h3><p><strong>Hardware optimizations:</strong></p><ul><li><strong>Aurora Serverless</strong>: Auto-scaled databases slashed idle costs by 60%</li><li><strong>Graviton Migration</strong>: ARM-based RDS offered 20% better price-performance</li></ul><p><strong>Query Optimization</strong>: Reduced response times by 40%</p><ul><li>To support Indian T20 league-scale traffic, we performed deep, cross-system query optimization across <strong>RDS</strong>, <strong>Aurora</strong>, and <strong>DynamoDB</strong> — cutting average response times by <strong>40%</strong>.</li><li><strong>RDS (MySQL):</strong><br>Rewritten slow queries, added strategic indexes, optimized joins, and tuned DB parameters using real-time insights.</li><li><strong>Aurora Serverless:</strong><br>Leveraged smart scaling by keeping queries efficient, partitioned large tables, and used plan management to reduce costly scans.</li><li><strong>DynamoDB:</strong><br>Refactored access patterns, reduced inefficient scans, optimized GSIs, and tuned read/write capacity to prevent throttling.</li></ul><h3>✅ Compute and Kubernetes Reinvention</h3><ul><li><strong>Spot Instances</strong>: Used for 70% of fault-tolerant workloads</li><li><strong>EKS + Karpenter</strong>: Intelligent node management based on demand</li><li><strong>Graviton EC2 Migration</strong>: Increased throughput, decreased costs</li></ul><h3>✅ Storage &amp; Caching Upgrade</h3><h4><strong>Redis → Valkey</strong></h4><p>Open-source drop-in replacement with same performance. Switched to <strong>Valkey</strong>, an open-source Redis-compatible cache with <strong>20–33% lower costs</strong> and identical performance.<br>✅ No changes in app logic<br>✅ OSS flexibility, reduced lock-in<br>✅ Ideal for large-scale cache clusters</p><h4><strong>CloudFront key improvements:</strong></h4><ul><li>🔻 <em>Price Class Tuning</em> — avoided high-cost edge locations</li><li>🛡️ <em>Origin Shield</em> — cut backend fetches</li><li>🌀 <em>Brotli/Gzip Compression</em> — reduced data transfer size</li><li>📦 <em>Cache Behavior Rules</em> — improved hit ratio, reduced origin loads</li><li>👉 Combined, these changes delivered <strong>30%+ CDN cost savings</strong> during Indian T20 league 2025 without impacting latency.</li></ul><h3>✅ Monitoring and Observability</h3><ul><li><strong>OpenTelemetry + Grafana</strong>: Real-time insights into cost and performance</li><li><strong>ELK Optimization</strong>: Streamlined logging and reduced overhead</li><li><strong>Cost anomaly alerts</strong> to flag unexpected billing spikes</li></ul><h3>💡 Team Effort: Cross-Functional Execution at Its Best</h3><p>From DevOps to Application engineers, our team worked across timezones to bring this to life. Each expert focused on a critical domain — databases, compute, CDN, monitoring — yet collaborated closely to ensure unified, efficient transformation.</p><ul><li>60% fewer origin requests</li><li>Cache hit ratios improved</li><li>Automatic compression enabled</li></ul><h3>🏆 Why This Matters: A Blueprint for High-Traffic Events Everywhere</h3><p>What we built wasn’t just an Indian T20 league-specific fix — it’s a <strong>framework</strong>. Any company dealing with seasonal spikes like — Black Friday, Diwali sales, World Cup finals — can replicate this model to deliver <em>high-scale, low-cost, high-performance</em> digital experiences.</p><p>We proved that with the right architecture, <em>you don’t need to choose between cost and performance</em> — you can have both.</p><h3>🔁 Reusable Patterns We Introduced</h3><p>Our success wasn’t built overnight — it was the result of iterative, sprint-by-sprint execution, where each sprint delivered a measurable cost optimization story. This piecemeal approach ensured stability, accountability, and quantifiable impact at every milestone.</p><p><strong>✅ Graviton-first strategy</strong><br>Prioritized ARM-based compute and RDS to maximize cost-performance ratio from the ground up.</p><p><strong>✅ Spot-aware architecture with graceful fallbacks</strong><br>Designed systems to use Spot Instances wherever fault tolerance allowed, with smart fallbacks to ensure reliability.</p><p><strong>✅ Intelligent caching behavior</strong><br>Refined CloudFront TTLs, cache header tuning, and regional delivery rules to reduce origin traffic and cut CDN spend.</p><p><strong>✅ Full-stack observability with cost metrics</strong><br>Connected OpenTelemetry with spend insights — monitoring both performance and cost in a single dashboard.</p><p><strong>✅ Zero-downtime open source migrations</strong><br>Migrated Redis ➝ Valkey clusters incrementally without impacting real-time workloads.</p><h3>🧭 What’s Next?</h3><ul><li>Replicating this architecture for other seasonal traffic events</li><li>Building internal playbooks and training modules</li></ul><h3>💬 Final Words</h3><p>This wasn’t just a tech win — it was a <em>business</em> win. Indian T20 league 2025 showed us that with modern engineering, relentless optimization, and bold thinking, even the most daunting infrastructure challenges can be turned into a competitive advantage.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de97f905ee7f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Recharging in Rishikesh: A Memorable Offsite]]></title>
            <link>https://medium.com/@sportsbaazi-engineering/recharging-in-rishikesh-a-memorable-offsite-4f72faf9907f?source=rss-19682139d373------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f72faf9907f</guid>
            <category><![CDATA[fun]]></category>
            <category><![CDATA[offsite]]></category>
            <category><![CDATA[nature]]></category>
            <category><![CDATA[corporate-culture]]></category>
            <category><![CDATA[adventure]]></category>
            <dc:creator><![CDATA[SportsBaazi Engineering]]></dc:creator>
            <pubDate>Mon, 28 Jul 2025 07:48:28 GMT</pubDate>
            <atom:updated>2025-07-28T07:48:28.510Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F1104528535%3Fapp_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F1104528535%3Fbadge%3D0%26amp%3Bautopause%3D0%26amp%3Bplayer_id%3D0%26amp%3Bapp_id%3D58479&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F2040794173-3210d4221814f9cdf4f8039b30f30fd6ceb32130777dc13f76095426257f8def-d_1280%3Fregion%3Dus&amp;type=text%2Fhtml&amp;schema=vimeo" width="1280" height="720" frameborder="0" scrolling="no"><a href="https://medium.com/media/53713b1f90a1a60bd18c1eaf54704a76/href">https://medium.com/media/53713b1f90a1a60bd18c1eaf54704a76/href</a></iframe><p><strong>Last week</strong>, <strong>Engineering, Product, and Analytics Team at </strong><a href="https://www.sportsbaazi.com/"><strong>SportsBaazi</strong></a><strong> </strong>traded screens and meeting rooms for sunshine and mountains, heading to the serene landscapes of <strong>Rishikesh</strong> for an official offsite. What made it even more special? We were joined by our <strong>CXOs</strong>, who brought with them not just leadership but genuine camaraderie.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D2APDjFmYp7Xw_qi5wO6Ng.png" /></figure><p>From the moment we arrived, the setting felt like something out of a dream. Nestled in nature’s lap, the property welcomed us with its elegant charm and warm hospitality. The atmosphere was peaceful yet energizing — the perfect canvas for what turned into an unforgettable experience.</p><p><strong>Beyond Roles: Celebrating as One Team</strong></p><p>We kicked things off with a vibrant <strong>team party</strong>, a space where titles were left at the door and laughter took center stage. Good music, great food, and spontaneous conversations brought us all closer — celebrating not just our milestones, but also the people who make them happen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zhWqzkeA6RqH1ZgsDI5nkA.png" /></figure><p>It was in these candid moments — dancing together under the stars or sharing stories around dinner tables — that we saw the <em>human side</em> of one another. Bonds were built not through job descriptions, but through shared laughter, mutual respect, and a genuine sense of belonging.</p><p><strong>Games, Strategy &amp; Laughter</strong></p><p>No offsite is complete without a bit of healthy competition, and our <strong>team bonding games</strong> brought that in full swing. From high-energy challenges to collaborative problem-solving, we saw a different side of one another — cheering each other on, laughing over goof-ups, and celebrating small wins together.</p><p>These games weren’t just fun — they were powerful reminders of what we can achieve when we move in sync, listen, adapt, and trust one another. The same traits that make a game successful are what make great teams thrive at work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XnGBQns-lHqCjCZjlDew1A.png" /></figure><p><strong>Ideas Flowed as Freely as the Fun</strong></p><p>We also carved out time for <strong>team sessions</strong>, where perspectives were shared, insights exchanged, and cross-functional thinking was encouraged. It was inspiring to see diverse minds come together — challenging, supporting, and learning from one another in an open, informal setting.</p><p>In those discussions, creativity soared. Walls dissolved. And what emerged was a collective clarity on how we can grow — not just as teams, but as a unified force driving toward common goals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zhIc2400dtizqRX-GI0xjw.png" /></figure><p><strong>Pool Parties and Indoor Games: Capping the Day Right</strong></p><p>Evenings were all about unwinding — with <strong>pool parties</strong>, refreshing dips, and lots of poolside banter. We closed the days with <strong>indoor games</strong>, meaningful conversations, and the kind of storytelling that only happens when people truly feel at ease.</p><p>That comfort, that ease, is the foundation of any high-performing team — and this offsite gave us plenty of space to nurture it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4BlBJ799F5F83qqMd-5v1g.png" /></figure><p><strong>Ganga Walks and Genuine Connections</strong></p><p>One of the most serene moments was our <strong>morning walk along the Ganga</strong>. Away from the noise of Slack notifications and sprint deadlines, we reconnected — as colleagues, as friends. Walking together in the tranquil spiritual vibes of Rishikesh offered the kind of conversations that don’t happen in meeting rooms — unfiltered, real, and refreshing.</p><p>It reminded us that some of the most impactful breakthroughs happen not during meetings, but in moments of reflection, trust, and open-hearted dialogue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-Wf35Dv3aZy5nxcQa1728w.jpeg" /></figure><p><strong>More Than a Break — A Real Recharge</strong></p><p>This offsite wasn’t just a getaway. It was a <strong>recharge</strong> — of minds, motivation, and most importantly, relationships. We returned with more than photos and memories. We came back with <strong>renewed purpose</strong>, <strong>deeper trust</strong>, and <strong>a reinforced belief in the power of our people</strong>.</p><blockquote>Because in the end, great teams aren’t built in the office. They’re built in the spaces in between — in laughter shared over chai, in challenges tackled together, and in connections that turn colleagues into collaborators, and collaborators into a family.</blockquote><p>Would love to admire our internal teams for thoughtfully designing experiences that brought us together — from the high-energy games to the well-paced flow of events. Their attention to detail and behind-the-scenes effort played a huge role in making this offsite smooth, joyful, and deeply meaningful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f72faf9907f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>