<?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 Aankur Khare on Medium]]></title>
        <description><![CDATA[Stories by Aankur Khare on Medium]]></description>
        <link>https://medium.com/@ankur.khare.hbti?source=rss-c37365f210b2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8OfTetvhB2fLFgyk8HmFAA.png</url>
            <title>Stories by Aankur Khare on Medium</title>
            <link>https://medium.com/@ankur.khare.hbti?source=rss-c37365f210b2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 01:19:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ankur.khare.hbti/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[Techonomics@Glance — Part 1]]></title>
            <link>https://engg.glance.com/techonomics-glance-part-1-63d95c92010b?source=rss-c37365f210b2------2</link>
            <guid isPermaLink="false">https://medium.com/p/63d95c92010b</guid>
            <category><![CDATA[budget]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[cloud-economics]]></category>
            <category><![CDATA[infrastructure]]></category>
            <category><![CDATA[optimization]]></category>
            <dc:creator><![CDATA[Aankur Khare]]></dc:creator>
            <pubDate>Mon, 08 Jan 2024 09:00:05 GMT</pubDate>
            <atom:updated>2024-01-11T02:40:17.914Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x9K0scM8g4MzJKjKrdC2qA.png" /></figure><h3><strong>Techonomics@Glance — Part 1</strong></h3><p><strong>Introduction:</strong></p><p>Glance is a tech company that delivers content to users’ mobile lock screens, encompassing a mix of news, sports, gaming, entertainment, live shows and shopping. Our users love the Glance product because it facilitates the effortless consumption of the latest news and trends, knowledge &amp; facts, and entertaining content presented in the form of personalized beautiful wallpapers.</p><p>Every time a user unlocks the phone, a new wallpaper lights up on the screen, opening a seamless interaction opportunity. Users just have to tap on their mobile lock screen, diving into the world of Glance across various content categories. Our product comes pre-installed on Android phones, boasting solid integration with almost every major Android OEM across India, South-Asia, Japan, and the United States.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5gbfyd5aSQmASDINB7CydA.png" /><figcaption>Glance lockscreen on Android phones</figcaption></figure><p><strong>Why Our Tech is Complex:</strong></p><p>We operate on a multi-cloud, microservices-driven architecture, enabling the application to run seamlessly in both online and offline modes. The complexity arises from:</p><ol><li><strong>Content delivery in less than 200 ms:</strong> Crucial for a short window to light up new wallpapers every time.</li><li><strong>End product stack:</strong> Is a blend of various experience units stacks like Platform, Roposo (entertainment stack), Nostra (gaming stack), Shop101 (shopping stack), Novo (News and Sports stack), and a layer of Ads Monetization.</li><li><strong>In-house ML &amp; AI stacks:</strong> Empowering content generation and recommendation through internally developed tools and products like Cardpress, Lex, and Glance publishing system.</li><li><strong>150+ internal microservices:</strong> Orchestrated through a central in-house platform to deliver content to users’ lock screens.</li><li><strong>SDK and APK integrations: </strong>Our technology foundation encompasses a deep understanding of Android’s core framework, along with the close collaboration with OEMs to seamlessly integrate the entire Glance app onto the lockscreen.</li><li><strong>And all of this, operating at a scale of 230+ Mn Daily active users.</strong></li></ol><p><strong>Our Infrastructure philosophy:</strong></p><p>At Glance, cloud economics are stitched into the core functionality of day-to-day work. Similar, to an engineer staying on top of things like uptime and performance, efficiency is also a criterion. The ultimate indicator of efficiency in a cloud world is the cloud bill.</p><p>This blog details our ways of working when it comes to cloud infra and how we structure and execute our work. The comprehensive tech detailing of the process will be presented in a series of more upcoming blogs.</p><p>This blog will focus on the <strong>principles and the approach we follow towards cloud economics.</strong></p><p>Happy reading…!!!</p><p><strong>Approach:</strong></p><p>As mentioned in our philosophy, instead of a reactive approach to control the cost, we focus on bringing efficiency by design. <br>And our focus remains on instilling this philosophy right into the SDE1s/SDE2s so that the discipline is sustainable and impactful. To democratize our infra philosophy, we came up with 5 principles, applying these to each cost unit:</p><ol><li><strong>Know Your Costs:</strong> Understand where expenses are incurred and tag resources appropriately.</li><li><strong>Enrich Cost Data:</strong> Go beyond basics, enrich cost data with information on resource provisioning and utilization.</li><li><strong>Monitor Continuously:</strong> Make cost monitoring a daily or at least a weekly practice to prevent surprises.</li><li><strong>Resource Allocation:</strong> Optimize based on specific needs and workloads.</li><li><strong>Culture of Awareness:</strong> Instill cost awareness and responsibility among teams.</li></ol><p><strong>Let’s delve further into each element:</strong></p><p><strong>1. Know your cost:</strong></p><p>Due to the tight coupling of multiple experience units (tech stacks) to a platform unit, attributing the exact cost per unit becomes complex. We realized that without precise knowledge of where the expenses are, we cannot generate effective ideas. Our SDEs focused on correct labeling and resource tagging, resulting in the entire infra cost % allocation across 13 sub-units or mini-cost centers.</p><p><strong>2. Enrich your data:</strong></p><p>The idea here is to go beyond basics, understanding the real input drivers of cost and reaching the last level of the cost drivers that contribute to the cost. <br> With the help of this principle, we go deep into the unit economics of each of the mini cost centers and understand the drivers/sub-drivers of the cost.</p><p>Below are a couple of examples of cost data enrichment:</p><p>The cost of video streaming is broken down into: <br> Total cost of LIVE shows = Cost of streaming + Cost of interactions; Cost of streaming = Total Duration * $/AV ; Cost of interaction = Peak Live DAU * unit cost of RTM (Real-time messaging)</p><p>Similarly, we broke down the cost of Content recommendation into various components.</p><p>Personalization cost = Cost of prediction services + Cost of content serving + Cost of exploration and training + Cost of data storage + and the rest of the other fixed costs of the platform setup.</p><p>This provides a strong grip on input parameters and helps us form a playbook for cost structuring.</p><p><strong>3. Monitor Continuously:</strong></p><p>A common trait between ‘sales’ and ‘infra optimization’ is the degree of measurability. Like sales, infra is also quite measurable and number-driven . <br>Any step you take, the impact becomes visible in 2–3 days. Infra cloud being so measurable is something that is possible only in the world of clouds.</p><p>Our attitude towards cost + our scale/complexity requires constant innovation in a FinOps tool that can help us stay on top of things easily. We wanted to create a cost observability medium for our engineers without any hassle of looking into separate consoles of different cloud partners. While majority of workload is on a single cloud, like any enterprise we do work with all the leading clouds. And multiple billing accounts make the consolidated cost tracking even harder.</p><p>And hence, it was next to impossible for a SDE to check all the cloud consoles to understand the impact of the optimization step that has been taken. A one-stop solution was the need of the hour.</p><p>And then, we partnered with <strong>Teevity</strong> (<a href="https://teevity.com/">https://teevity.com</a>)</p><p>Teevity is a cloud cost monitoring tool that helped us integrate all the cloud cost onto one platform and solved our cost observability problem. The Teevity team has been very receptive to evolving their product basis and our sophisticated mindset, and they accelerated their product roadmap basis our inputs our cost measurement requirements.</p><p>The tool helped us create customized reports for the 13 mini cost centers. With just a couple of clicks, we got the detailed cost breakdown across 200+ Products SKUs and 3000+ sub-SKUs.</p><p>This kind of cost reporting helps in taking a sharp shooting approach instead of a carpet bombing approach. The daily automated mailers from Teevity help each one of us stay on top of everything cost.</p><p><strong>Below are some of the screenshots of Teevity tool:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yXJ88MkQsLI3sMmcT3FM8Q.png" /><figcaption><em>Teevity Home screen snapshot: it captures the cloud-wise cost daily.</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JKPHA078z7BjOYqtnzp9lw.png" /><figcaption><em>Dynamic cost explorer: it helps in slicing dicing of the cost across SKUs and Operations. The data is available from monthly to hourly basis and the reports are easy to download in various formats like CSV, PDF etc. The platform gives freedom to create multiple custom dashboards for better monitoring.</em></figcaption></figure><p><strong>4. Resource Allocation:</strong></p><p>Tech-wise, it’s like checking if you need a racing car for an office commute!!</p><p>We ensured the right mix of N2D, N1, E1, T2D, and other machines based on specific needs.</p><p>We worked heavily on bin-packing, horizontal pod scaling, right-sizing, min replica count calculations, and off-peak hours optimization to reduce compute cost by ~35%. The details of these steps will be mentioned in the following parts of this blog series. Stay tuned!!</p><p><strong>5. Culture of Awareness:</strong></p><p>Instilling a culture of cost awareness and responsibility was crucial. We conducted brainstorming discussions with engineers, established continuous communication through reports and dashboards, and made daily/weekly cost data accessible to every engineer. Rules and alerting mechanisms were set up for critical cost items, ensuring immediate action in case of any production issue.</p><p>We’ll discuss more technical details in subsequent blogs. Overall, our team effort paid off, and we are quite confident that our infrastructure is one of the most optimized amongst the players operating in the domain of content delivery systems. We would love to hear your comments and suggestions on what else can be the core principles of tech infra.</p><p>Till then, wish you a very Happy New Year 2024!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63d95c92010b" width="1" height="1" alt=""><hr><p><a href="https://engg.glance.com/techonomics-glance-part-1-63d95c92010b">Techonomics@Glance — Part 1</a> was originally published in <a href="https://engg.glance.com/">Glance</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>