<?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 Brenda Thng on Medium]]></title>
        <description><![CDATA[Stories by Brenda Thng on Medium]]></description>
        <link>https://medium.com/@thngktb?source=rss-bb969fc33fbc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*lB1cjIKQ8IciBZyb0zAZIA.png</url>
            <title>Stories by Brenda Thng on Medium</title>
            <link>https://medium.com/@thngktb?source=rss-bb969fc33fbc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 05:14:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thngktb/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[Tech Debt vs. Shipping: Where Do We Draw the Line?]]></title>
            <link>https://medium.com/@thngktb/tech-debt-vs-shipping-where-do-we-draw-the-line-cce6f27a7c51?source=rss-bb969fc33fbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/cce6f27a7c51</guid>
            <category><![CDATA[shipping]]></category>
            <category><![CDATA[tech-debt]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Brenda Thng]]></dc:creator>
            <pubDate>Sat, 21 Jun 2025 06:57:08 GMT</pubDate>
            <atom:updated>2025-06-24T03:53:20.743Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve been at this long enough to know when something smells like tech debt.</p><p>Not the cosmetic kind, but the slow-burning, soul-draining kind. The kind that turns a two-line change into a week-long archaeological dig through tangled logic. The kind you tiptoe around in code reviews, whispering, “Let’s not touch that unless we absolutely have to.”</p><p>And still, every sprint planning session ends up in the same dance: what gets prioritized, clean-up work or shipping the next feature?</p><p>I’ve found myself more than once in conversations where I’m advocating for breathing room to refactor, to stabilize, to think — while leadership is understandably focused on moving the product forward. They’re not wrong. New features drive growth. They excite customers. They unlock business value. But I can’t help but wonder:</p><p><strong>At what point does the weight of what we’re carrying slow us down more than the lack of new things to show?</strong></p><h3>The Invisible Cost of Tech Debt</h3><p>Tech debt gets a bad rap because it sounds like a luxury problem. Like something engineers complain about when they’re bored.</p><p>But here’s the thing: some tech debt doesn’t just slow you down — it suffocates your ability to reason clearly about your own systems.</p><p>It’s the job that requires five tabs and tribal knowledge just to make a schema change. It’s the flaky pipeline that forces you to re-run the same pipeline five times with crossed fingers. It’s that one ETL job everyone avoids because it hasn’t been touched since the last guy left… and maybe for good reason.</p><p>There’s a cognitive cost to all of it. And that cost compounds. You start second-guessing your estimates. You work slower, but more importantly, you <em>think</em> slower.</p><p>And yet, it’s hard to advocate for fixing any of it without sounding like you’re asking for “time to make it pretty.”</p><h3>Leadership Has a Different Clock</h3><p>To be fair, I get where leadership is coming from.</p><p>Their clock ticks differently. They’re managing business milestones, investor expectations, market shifts. From that vantage point, “shipping” is the most visible lever of progress. If we can get new features out, we’re doing something right. Right?</p><p>So when I bring up the need to tackle some underlying messiness in the data platform, the response I often get is:</p><blockquote><em>“What’s the impact? Can we tie that to revenue or growth?”</em></blockquote><blockquote><em>“Is something breaking?”</em></blockquote><p>And those are fair questions. It’s just not always a question with an immediate answer. Some cleanup pays off in weeks. Some in months. And some, honestly, might not matter if the company pivots hard next quarter.</p><p>Which leads to an uncomfortable truth: <strong>not all tech debt is worth paying off.</strong></p><h3>Learning to Let Go (Sometimes)</h3><p>I had a chat recently with a colleague. He is someone I really respect, a principal engineer who’s seen a lot of cycles. I was venting about this exact dilemma, expecting a sympathetic rant.</p><p>But instead, he said:</p><blockquote><em>“I used to fight for doing things the ‘right’ way. But lately, I’ve learned to go with the flow. You never really know where the company will be in a month.”</em></blockquote><p>That stuck with me.</p><p>Because he wasn’t saying the work didn’t matter. He was saying context matters more.</p><p>Sometimes the platform you want to harden is one sprint away from being deprecated. Sometimes the business is in a phase where speed outweighs elegance. Sometimes, good enough really <em>is</em> good enough — for now.</p><h3>The Mental Headspace Argument</h3><p>And yet… I still think there’s a line.</p><p>Not all tech debt is created equal. Some of it is just annoying. Some of it actually hurts.</p><p>Systems that consistently frustrate you, undermine your confidence, and make tasks unnecessarily difficult don’t just slow you down — they exhaust your mental energy.</p><p>And unlike business priorities, your cognitive load isn’t reprioritized every quarter. It just builds. Quietly. Until burnout isn’t a risk — it’s the baseline.</p><h3>Where I’m Landing (for Now)</h3><p>I don’t have a perfect framework, but here’s how I’m trying to think about it lately:</p><ol><li><strong>Pick your battles</strong><br>Not every mess needs cleaning. But if you keep bumping into the same wall, maybe it’s worth knocking down.</li><li><strong>Bundle cleanup with features</strong><br>If you’re already in the area, do the maintenance. Fold it into the work. Don’t wait for permission.</li><li><strong>Speak in impact, not ideals</strong><br>Translate “this is ugly” into “this increases risk” or “this slows us down every time we touch it.”</li><li><strong>Respect momentum</strong><br>Sometimes shipping is more important than cleaning. That’s not selling out — that’s being a teammate.</li><li><strong>Protect your mental bandwidth.</strong><br>If something is making the work feel heavier than it should, it’s okay to flag it. Mental debt is real.</li></ol><h3>Final Thoughts</h3><p>The tension between tech debt and shipping isn’t a bug in the system, it <em>is</em> the system. It’s the product of competing truths: the need to move fast, and the need to build well.</p><p>If you’re constantly in that tug-of-war, take heart. You’re probably doing it right. Just keep learning, keep negotiating, and keep picking your moments.</p><p>Because the only thing worse than tech debt is a codebase no one wants to work in, and a team too burnt out to care.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cce6f27a7c51" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Be a Good Employee (From a Data Engineer’s POV)]]></title>
            <link>https://medium.com/@thngktb/how-to-be-a-good-employee-from-a-data-engineers-pov-ded2174a4a8e?source=rss-bb969fc33fbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/ded2174a4a8e</guid>
            <dc:creator><![CDATA[Brenda Thng]]></dc:creator>
            <pubDate>Mon, 16 Jun 2025 08:25:53 GMT</pubDate>
            <atom:updated>2025-12-01T08:28:33.991Z</atom:updated>
            <content:encoded><![CDATA[<p>I used to think being a good employee meant following instructions, shipping code and hitting deadlines. The classic “just do your job well” mentality. But a few years and several fire drills later, I’ve realized that being “good” isn’t that simple, or that low of a bar.</p><p>It turns out, the people I admire most at work aren’t just technically sharp. They’re dependable. They care. They show up. They make the whole team better. And it’s those traits, more than any fancy data pipeline, that I think about when I ask myself, “Am I doing a good job?”</p><p>This post is my attempt to unpack what that means.</p><h3>1. Understand the Business (Yes, Even as a Data Person)</h3><p>You’re not just writing SQL, you’re solving business problems. If you don’t understand how your work connects to the business, you’re just rearranging data in the void.</p><p>One time, I spent days optimizing a pipeline to shave off 30 minutes of runtime. Felt great. Until I found out the report was used once a week by one analyst… who was perfectly fine with the old schedule.</p><p>Now, I ask:</p><ul><li>Who’s using this?</li><li>What decision does this support?</li><li>What happens if we don’t do this?</li></ul><p>It’s not about being a product manager, it’s about caring enough to zoom out.</p><h3>2. Own Your Work</h3><p>Shipping code is easy. Owning what you ship? That’s the hard part.</p><p>Ownership means:</p><ul><li>Setting up alerts (that you actually read).</li><li>Writing docs (before someone asks).</li><li>Checking in post-deploy (even if no one tells you to).</li></ul><p>I once merged a change, felt good, and moved on. Three days later, the pipeline was quietly failing. Nobody noticed until downstream users surfaced in the broader slack channel.</p><p>Good employees don’t just ship. They steward.</p><h3>3. Be Easy to Work With</h3><p>This doesn’t mean being agreeable all the time. It means being:</p><ul><li>Clear in your communication.</li><li>Respectful in your code reviews.</li><li>Responsive when someone’s debugging your stuff.</li></ul><p>You know that one person who makes every project harder with vague tickets, defensive comments, and “just figure it out” energy? Don’t be that person.</p><p>The best engineers I’ve worked with weren’t just smart. They were predictable, empathetic, and reliable. They made work less painful.</p><h3>4. Show Up When It’s Hard</h3><p>Anyone can look great during green builds and clean deploys. The real test? When stuff breaks.</p><ul><li>When the data on the shiny front end is down.</li><li>When prod data is gone.</li><li>When you’re tired and it’s still your problem.</li></ul><p>People remember who showed up, stayed calm, and took ownership in those moments. The Saturday rollback, the midnight patch, the Slack thread with 120 replies, that’s where trust is built.</p><h3>5. Actually Care</h3><p>I don’t mean performative enthusiasm or reacting with 👍 in Slack. I mean real, can’t-help-it care.</p><ul><li>Care enough to ask questions when you don’t understand.</li><li>Care enough to say, “This process sucks. Let’s fix it.”</li><li>Care enough to give credit, even when no one’s watching.</li></ul><p>You can’t fake this. And you don’t need to be loud about it. But if you care, people will know.</p><h3>Closing Thoughts</h3><p>Being good at your job isn’t just about clean pipelines, fast queries, or elegant code. It’s about being someone people trust. Someone people want on their team. Someone who lifts the bar.</p><p>I don’t get this right every day. But this is the bar I’m aiming for.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ded2174a4a8e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How foodpanda reduced 45% of our BigQuery cost with reservations slots]]></title>
            <link>https://medium.com/foodpanda-data/how-foodpanda-reduced-45-of-our-bigquery-cost-with-reservations-slots-2c79e1d37e4?source=rss-bb969fc33fbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c79e1d37e4</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[foodpanda]]></category>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[bigquery]]></category>
            <dc:creator><![CDATA[Brenda Thng]]></dc:creator>
            <pubDate>Fri, 18 Feb 2022 11:01:25 GMT</pubDate>
            <atom:updated>2022-02-18T11:01:25.457Z</atom:updated>
            <content:encoded><![CDATA[<p>Our company has grown tremendously over the past year to become the largest food and grocery delivery network in Asia outside China. Headquartered in Singapore, foodpanda provides a quick and convenient way for customers across 12 markets in Asia to order food, groceries and more delivered to their doorstep at the touch of a button. Through a network of local restaurants, retailers and pandamart cloud stores, customers can choose from thousands of on-demand options ranging from prepared meals and groceries, to flowers and medicine, and even COVID-19 ART (Antigen Rapid Test) kits.</p><p>As more employees joined the company, there has also been an increase in the number of users in our data warehouse. foodpanda’s data warehouse is built on BigQuery, and now easily supports thousands of users each month. This growth has led to rising costs, which was growing each month — it was something we definitely wanted to address!</p><p>We needed to rethink our cost management strategy. Over the past 6 months, we have explored using reservation slots and managed to significantly lower our BigQuery cost. In this article, we will explore the pros and cons of the different BigQuery pricing models offered. We will also discuss our current strategy, and share some tips on how to get started. This will hopefully benefit readers who are also building data warehouses on BigQuery.</p><h3>Reservations 101 — Terminologies you need to know and how it works</h3><p>First, let’s get to know what Reservations are, and the terminologies that we will use in this article.</p><p><strong><em>Slots</em></strong>: Slots are like chefs in a restaurant. The chefs prepare the food, just like how slots are the processing power required to run queries. Increasing the number of chefs in the restaurant can help reduce cooking time. For example, one can prepare the pasta, while another prepares the soup. Similarly, the more slots available to process data, the faster the query runs (at least up to the <a href="https://cloud.google.com/bigquery/docs/slots#query_execution_using_slots">max parallelisation factor</a>).</p><p>Reservations consist of 3 components:</p><ul><li><strong><em>Commitments</em></strong>: This refers to the number of slots purchased</li><li><strong><em>Reservations</em></strong>: Reservations are like groupings. This allows us to allocate the slot pool based on different purposes and priority. This also prevents any one group from hogging up the resources. For example, we can have 3 reservation groups — (1) ETL and reporting jobs, (2) Ad-hoc queries to be run by analysts, (3) Development work for engineers. Each reservation group can be assigned with a different number of slots. (This diagram below illustrates this example)</li><li><strong><em>Assignments</em></strong>: Each reservation can have one or more assignments. An assignment refers to either a project, folder or organisation that will be receiving the slots.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*3eo8B5rQBYwUTo1hv8_N_w.png" /><figcaption>Example illustration of how the 3 different components link together</figcaption></figure><h3>Overview: On-demand vs Flat-rate</h3><p>There are 2 main <a href="https://cloud.google.com/bigquery/pricing#analysis_pricing_models">pricing models</a> offered by BigQuery — (1) On-demand and (2) Flat rate. The pricing models cater to different use cases, hence it is good to understand the differences between them. The table below shows a breakdown of the pricing models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rtcs6V3gATQxz97j54slIg.png" /><figcaption>Comparison chart for the different pricing models <em>(retrieved from Google’s BigQuery pricing page)</em></figcaption></figure><p>There is a nuanced difference between the two pricing models. On-demand is priced based on data processed, while flat-rate is priced on computing resources. Understanding this difference can influence the way a query is written. For example, with an on-demand model, one may want to be exceptionally mindful of the number of columns queried. This will reduce the size of data processed. Conversely on the flat-rate model, one may consider reducing complicated joins as such complicated computations require more slots.</p><h4>Use cases for On-Demand pricing</h4><p>For smaller use cases, on-demand pricing may be more suitable. On-demand pricing is at $5 per TB of data processed. This is inexpensive, especially when the data volume is low. It is also easier to let Google manage the slot allocation. On-demand pricing is also good for anyone just starting to use BigQuery. Usage needs tend to be unclear during the early stage, which can easily result in the over or under-purchase of slots.</p><p>One gauge of low usage is to track the number of slots used with <a href="https://cloud.google.com/bigquery/docs/reservations-monitoring#viewing-usage-console">Cloud Monitoring</a>. If there are less than 1000 slots used, this is still a relatively small project.</p><h4>Use cases for Flat-rate pricing</h4><p>As the data warehouse matures, one should consider moving to flat-rate pricing instead. One disadvantage of on-demand pricing is that it is not easy to estimate cost. This is especially true in a large team, as it is difficult to predict or control the number of user queries. Flat-rate allows us to be able to make accurate estimates on monthly BigQuery costs. There is also greater control over the performance of the data warehouse. The use of reservations and assignments is also especially useful in helping to fairly split resources across multiple teams.</p><h3>Moving from On-Demand to Flat-Rate</h3><p>At foodpanda, the number of monthly active users has increased by 64% since the start of 2021. This has led to the occasional throttling of queries during peak business hours. Another cause of concern is the cost. As usage grew, BigQuery’s cost also grew by 10–15% each month. As it is difficult to predict usage, it almost became impossible to accurately predict our cost. At that point, on-demand was proving to be an unsustainable approach for us. We started exploring and moving towards flat-rate iteratively.</p><h4>To get started</h4><p>For a start, set up <a href="https://prowritingaid.com/en/Analysis/WebEditor/Cloud%20Monitoring">Cloud Monitoring</a> to understand your BigQuery usage over the past months. Here are some key charts to track:</p><p><strong>Query In Flight Chart<br></strong>A high number of in-flight queries might indicate that there is insufficient compute resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*289epc2ynwSl6QzhHlEFaw.png" /><figcaption>Example of the Query In Flight chart</figcaption></figure><p><strong>Query Times Chart<br></strong>This shows a distribution of query times, which similarly can be used to observe times when there could be insufficient compute resources, resulting in a longer querying time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HEa0SXFD8t-jA306Yo2puQ.png" /><figcaption>Example of the Query Times chart</figcaption></figure><p><strong>Slot Utilisation chart<br></strong>This shows the number of slots used by the project across a period. Pay attention to the number of hours in a day that the project crosses the 2000 slot threshold. These are the peak hours that may need extra slots.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8gAwf2isRWxdkNSHzw3gfg.png" /><figcaption>Example of the Slot Utilisation chart</figcaption></figure><p><strong>INFORMATION_SCHEMA<br></strong>We can retrieve various types of metadata from <a href="https://cloud.google.com/bigquery/docs/information-schema-intro">INFORMATION_SCHEMA</a>. The <a href="https://cloud.google.com/bigquery/docs/information-schema-jobs">job metadata</a> in particular is very useful. It allows us to conduct deeper analyses on slot usage and query efficiency. Here is one example query to consider:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9f29b6f898cf58d3c7cd9e2b15e9f54e/href">https://medium.com/media/9f29b6f898cf58d3c7cd9e2b15e9f54e/href</a></iframe><p>The above query can be adapted to also include <em>user_email</em>. This can help identify users who make the most expensive queries. These users can then be alerted to modify their queries to make them more efficient.</p><p>There are also a few other <a href="https://github.com/GoogleCloudPlatform/bigquery-utils/tree/master/dashboards/system_tables/sql">example queries</a> provided by the Google community to consider and get started with INFORMATION_SCHEMA.</p><p>Combining the analyses from the Cloud Monitoring charts and INFORMATION_SCHEMA will help provide estimates on the number of slots required.</p><h4>Automated reservation workflow I: Basic</h4><p>Our current approach includes both fixed <strong>annual slots and flex slots</strong>. Annual slots were purchased to guarantee a baseline performance all year round, for the lowest price. Additional flex slots are also purchased during working hours to cater to the increased demand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*mArB5zoqUrfhvWhRbnZQWw.png" /><figcaption>Screenshot of annual slots and flex slots purchased from the reservations console</figcaption></figure><p>Flex slots purchases are managed using Airflow. We have dags to purchase and delete flex slots at the various peak and non-peak hours.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*GEQr503Q0vVAIBGp5uD1Bg.png" /><figcaption>Airflow dag example</figcaption></figure><h4>Automated reservation workflow II: Advanced</h4><p>The next step for us is to do more automation. We are considering setting up a workflow to make automated purchases of flex slots whenever an alert gets triggered. Hence instead of purchasing a predetermined number, flex slots can be dynamically purchased. This will fully optimise the flex slots purchased. An example workflow will be to have a cloud function purchase flex slots each time the in-flight alert goes off. Automated messages on slack can be triggered to alert users when expensive queries are running for an extended time.</p><h4>Monitoring strategy</h4><p>It is important to include monitoring. This helps to quickly flag out issues, and also allows us to easily monitor BigQuery’s performance. Here are some of the dashboards and alerts we have put in place.</p><p>First, we have created a <strong>Datadog dashboard</strong> to track slot utilisation. This helps to visualise if slots are being under or over utilised.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ygUi605SZd8L4eZzBuDpGA.png" /><figcaption>Datadog Dashboard</figcaption></figure><p><strong>Datadog monitors</strong> have also been set up. One example of this checks that the number of concurrent queries does not exceed the threshold set.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4I8wokrgs4HfjL-hxi-7aw.png" /><figcaption>Datadog monitor</figcaption></figure><p>Lastly, we have a <strong>Google Data Studio Dashboard</strong> to track weekly expenses. This includes a page allowing users to retrieve statistics on their BigQuery usage. These metrics include the number of queries, volume of data queried, and amount of computing resources (<em>slot_ms</em>) used.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bZEJZBoXKO_3J6sBTfPJnw.png" /><figcaption>Data Studio Dashboard</figcaption></figure><h3>Reservation slots have drastically cut costs for us</h3><p>In August alone, we have <strong>reduced 45% of our BigQuery cost</strong> by utilising reservation slots. There is, however, a tradeoff between cost and performance. Overall querying speeds appear to have slowed. The average query in August took 17 seconds to complete, compared to 11 seconds in March. This can be due to multiple reasons. As resources are now fixed and shared, an inefficient query by a single user will consume more slots from the pool, and hence directly impact the rest of the users.</p><p>This tradeoff in query speed is necessary and sometimes isn’t all that bad. We made use of reservations and assignments to allocate slots to the different teams. This has in turn encouraged individual teams to take greater ownership over their queries. They are motivated to write <a href="https://cloud.google.com/bigquery/docs/best-practices-performance-overview">efficient queries</a> so that the slots can be better spent.</p><p>Our current workflow is still raw and has room for improvement. Dynamic flex slots will be a good optimisation for us to consider and test next. We also want to work on better monitoring systems to alert users whenever an inefficient query has been made. This will benefit both the data community and also improve the quality of queries written by individuals.</p><p>In summary, flex-rate pricing is useful in a mature data warehouse as it provides one with greater flexibility over resource control through the use of reservations and assignments. This can help with significant cost savings. On the other hand, on-demand works well for a data warehouse at its infancy stage. It is hassle-free as the slots will be automatically provisioned by Google. It is also inexpensive for small data warehouses. There is also a subtle difference between the two pricing models, which can affect the way one chooses to write a query. Hopefully, this article has provided some useful insights and a better understanding of the different pricing models.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c79e1d37e4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/foodpanda-data/how-foodpanda-reduced-45-of-our-bigquery-cost-with-reservations-slots-2c79e1d37e4">How foodpanda reduced 45% of our BigQuery cost with reservations slots</a> was originally published in <a href="https://medium.com/foodpanda-data">foodpanda.data</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>