<?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 Mariano Molina on Medium]]></title>
        <description><![CDATA[Stories by Mariano Molina on Medium]]></description>
        <link>https://medium.com/@mariano.molina?source=rss-bde104b33ddc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*WEBHUletBiyVpIDlOpVzPA.jpeg</url>
            <title>Stories by Mariano Molina on Medium</title>
            <link>https://medium.com/@mariano.molina?source=rss-bde104b33ddc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 01:52:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mariano.molina/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[Unlocking innovation: The journey behind our Feature Flags service]]></title>
            <link>https://medium.com/mercadolibre-tech/unlocking-innovation-the-journey-behind-our-feature-flags-service-1cfb40eb959a?source=rss-bde104b33ddc------2</link>
            <guid isPermaLink="false">https://medium.com/p/1cfb40eb959a</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[feature-flags]]></category>
            <category><![CDATA[fury]]></category>
            <dc:creator><![CDATA[Mariano Molina]]></dc:creator>
            <pubDate>Tue, 04 Feb 2025 12:14:34 GMT</pubDate>
            <atom:updated>2025-02-04T12:14:34.496Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M4MmENy-8B4vO_ZrOTy9Iw.png" /></figure><p>In today’s fast-paced digital world, development teams need to release features continuously. While rigorous testing helps, some elements can only be validated in production, requiring a final test with real users.</p><p>This is why <a href="https://medium.com/mercadolibre-tech/the-technological-evolution-at-mercado-libre-fb269776a4e8">Fury</a>, our Internal Developer Platform (IDP), offers Feature Flags (FF) as a service. Although the concept is not new — many vendors and teams within Mercado Libre (MELI) had already implemented it — there was a clear need for a unified solution.</p><p>As MELI grows, Fury supports over 15,000 developers and 26,000 applications, providing tools that simplify implementation. This enables teams to enhance the user experience while ensuring rapid, controlled deployments.</p><p>Feature Flags allow teams to decouple code deployment from feature release. This lets them prepare for production without exposing new features to all users at once. Join us as we share the story of how we centralized a service that was previously implemented manually by multiple teams into our Fury platform.</p><h3>What you need to know about Feature Flags</h3><p>First, let’s discuss what a feature flag is and explore some use cases. Feature flagging is a powerful technique that allows teams to modify the system behavior for a specific set of users without changing code. It allows you to decouple deployments from new releases. Here are some of the use cases:</p><ul><li><strong>Release Flags:</strong> Use these when you don’t want to expose new features or experiences, even if they are fully implemented and tested.</li><li><strong>Ops Flags:</strong> These are useful when rolling out a new feature with unclear performance implications, allowing system operators to quickly disable or degrade the feature in production without requiring deployments.</li><li><a href="https://es.wikipedia.org/wiki/Dogfooding"><strong>DogFooding</strong></a><strong> Flags:</strong> Use these flags to change the features or product experience for certain users during the early stages of the development cycle.</li><li><strong>Experimental Flags: </strong>These flags are for testing new experiences or features with a control population and measuring the conversion rate of each variant, commonly known as A/B testing.</li><li><strong>Permission Flags:</strong> Use these when you want to control access to functionalities based on the user’s role.</li></ul><p>Being specific about user intention when dealing with flags can help us honor its lifespan in the development lifecycle. To model needs like Experiments and Permissions, Fury has its own service for segregating and governing each one according to its specific lifecycle. You can check <a href="https://medium.com/mercadolibre-tech/a-b-testing-meli-3a5ad2b4594d">this article</a> where we talk about A/B testing using our IDP.</p><h3>What’s our story?</h3><p>It was no surprise that our team wasn’t the first one to try implementing FF. When we decided to offer it as a service in Fury, there were plenty of custom implementations and even internal services outside of our IDP that our developers were using. However, we had a clear purpose:<strong> to provide a unified interface and a single point of FF capabilities to our Fury users, regardless of their app technology. </strong>In the end, our <a href="https://medium.com/mercadolibre-tech/the-technological-evolution-at-mercado-libre-fb269776a4e8">IDP platform</a> became the place where we standardized and optimized each service and capability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0UfI1aQQWgXJhdaowGfl3A.png" /><figcaption>Image 1: What we found across multiple teams vs. what we want to achieve.</figcaption></figure><p>Looking at the current situation at MELI, what other vendors were doing, and the common issues with FF, we identified a few problems we wanted to address:</p><ul><li><strong>Consistency across multiple apps: </strong>As we develop in a microservice architecture, we often need to orchestrate a new feature across different apps. Managing a flag for each app can lead to inconsistencies. You might disable the backend flag, but the client app flag might still be active.</li><li><strong>Randomized and progressive exposure for users: </strong>We have seen a common pattern in setting a percentage of users to have the flag on, often using some form of stickiness at the application level. The lack of a standard algorithm can create unintended bias. For example, users with IDs ending in ‘0’ or those consistently falling into the lowest hash buckets might repeatedly become “guinea pigs” for our features.</li><li><strong>Traceability: </strong>Knowing when changes occur and who made them is crucial. We try our best to ensure that everything in production works as intended, but sometimes things break. If a feature flag is involved, it’s vital to identify any changes to its configuration, as those could directly cause the problem.</li><li>In a blameless culture like the one we embrace at MELI, auditing changes is important; this data can also help correlate impact with recently changed features or flags. Tight integration with our observability ecosystem is then a must for such a service.</li></ul><p>By combining good telemetry data on versions, microservices, and flags — both at compile time and runtime — we can create governance tools that measure, take care of, and warn us about potential flag misuse or lifecycle misalignments.</p><ul><li><strong>Governance: </strong>We need to set limitations on how many flags an app should have and their lifespan. Using Feature Flags is a good practice, but as with everything in life, overuse can lead to major problems. You can end up in Feature Flag hell, where repurposing an old flag and failing to update a production server contributed to a catastrophic loss of nearly half a billion dollars in under an hour (more about that in <a href="https://www.bugsnag.com/blog/bug-day-460m-loss/">this article</a>).</li></ul><h3>Key features of our FF service</h3><p>When we think about adding a new capability to Fury, we don’t focus solely on user experience. A lot of work happens under the hood so you don’t have to worry about these details when using the service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*qdkrfJTYPiWvsXVqCyiaeg.png" /><figcaption>Image 2: The challenge of building FF and what customers try to avoid when using them.</figcaption></figure><p>We wont bore you with every little detail, but once we knew what we wanted to do, we needed to establish how we were going to do it. For that, we identified some key features essential for having a ready-to-use service:</p><h4><strong>Owner and consumers</strong></h4><p>It’s common for multiple teams or apps to work together to release new features, which creates the need for a consistent user experience and a simple way to manage rollouts.</p><p>To ensure consistency and simplify the rollout process, we enabled users to share a single flag across multiple applications, even if they are built using different technologies that Fury supports. This feature designates one app as the owner of a flag, while permitting other apps to use and view its configuration. Even with multiple teams involved, this approach ensures uniform behavior by centralizing control under one flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V4K4W4WPtmB7VbduUfLLHw.png" /><figcaption>Image 3: An example of a flag in Application A, attached to Application B and C.</figcaption></figure><h4><strong>Standard randomization algorithm</strong></h4><p>During our investigation of current feature rollout practices at Meli, we discovered a lack of true randomization. In many cases, users consistently experienced the same rollout conditions. For example, some teams used the last two digits of a user ID to determine feature exposure. In a 50% rollout scenario, a user with an ID ending in 50 would miss the new feature, while all users with IDs ending in 49 or lower would see it. This stickiness for the same users proves to be a bad implementation, as we mentioned before.</p><p>Our solution leverages our existing<a href="https://medium.com/mercadolibre-tech/a-b-testing-meli-3a5ad2b4594d"> A/B testing framework</a> to introduce quasi-randomization. We ensure, through a hashing technique, that no user falls into the same percentage bucket for each flag they are exposed to.</p><h4><strong>Traceability: Knowing what is happening</strong></h4><p>In a large ecosystem like MELI — with over 4,700 development teams — managing feature flags becomes a complex challenge. Imagine having to search for the owner of a flag created in 2017 that’s still active today, within an environment that includes hundreds of other active flags and 26,000 applications. That’s what we call “FF Hell”.</p><p>To address this, it’s essential to have tools that ensure services are working as intended. We approach this need by storing snapshots of the flag configuration with every change, enabling us to build a comprehensive history from the flag’s creation to its current state. Additionally, we track how many users have been exposed to each rollout, offering us a complete view of the flag’s impact and evolution.</p><h4><strong>Sustainability: Limiting flags per app and life span</strong></h4><p>Setting a limit on the number of active flags per application helps minimize potential incidents caused by having too many flags in production. Teams that require a temporary increase can request an exception. Keeping the number of features being rolled out simultaneously low is another reason for this limit.</p><p>To ensure high availability and sustainability for each application, <strong>we must avoid allowing</strong> <strong>flags to live forever in the codebase</strong> for several reasons:</p><ul><li>They are a single point of failure.</li><li>Their value decreases over time as several parts of the products tend to stabilize.</li><li>They are a source of <a href="https://minds.md/zakirullin/cognitive#long">cognitive load</a> for the development team.</li></ul><p>We know that the lifespan of a flag within an app depends on factors like its duration and whether the rollout is complete, which allows for the flag’s removal while leaving the new logic in place. By considering these factors and gathering user input, we’ve identified various scenarios where flags should be deactivated and removed from the application to ensure sustainability. All of this was implemented to execute autonomously.</p><h3>Challenges we found along the way</h3><p>It all sounded straightforward, but making the service available was no easy task. It required developing SDKs for each tech stack in Fury and multiple services to create a modular, scalable solution capable of handling traffic from over <strong>26,000 applications</strong>. Another challenge was ensuring our SDKs didn’t significantly impact application performance, including throughput, response times, or memory usage.</p><p>From the start, we prioritized simple SDKs for seamless integration. To learn more about one of MELI’s SDK toolkits, check out our<a href="https://medium.com/mercadolibre-tech/for-devs-by-devs-67a395a03c3f"> dedicated post</a>, where we dive into its features and advantages.</p><p>When we were ready for general availability, we initiated the adoption process. The true test of your product or service begins with its first use — that’s when you discover if your efforts were successful. <strong>Early adopters are crucial</strong>: teams that show interest before your service is ready help you ensure your product runs smoothly before a full release (similar to using a feature flag).</p><p>If you’re interested in building a similar service, here are some key considerations:</p><ul><li><strong>Consistent population splitting:</strong> Define and maintain a consistent key for segmenting your user base.</li><li><strong>Allowlisting and audience usage:</strong> It can be helpful to make use of these tools to enforce a variant (true/false).</li><li><strong>Rollout conditions: </strong>Determine a set of conditions where the flag will be exposed at some rollout percentage, allowing for applicative conditions over the flag rather than in the codebase.</li><li><strong>Internal caching: </strong>Use an internal cache with a refresh rate that ensures low RPM (requests per minute) on your service.</li><li><strong>Varied refresh rates</strong>: Implement different refresh rates to accommodate critical applications that may require low times. Include a safety switch for immediate flag shutdown if needed.</li><li><strong>Telemetry for Insights: </strong>Employ telemetry to gather usage statistics and assist with troubleshooting.</li><li><strong>Client and server-side resolution</strong>: Enable flexibility to resolve flag states both on the client and server sides.</li><li><strong>Restrictions over changes:</strong> Modifications to flags should be restricted to their owners and made only through authorized channels. Using methods like cURL is discouraged.</li></ul><h3>Conclusions</h3><p>The implementation of Feature Flags and the decision to develop this service in-house highlight the value of shared knowledge and collaboration within Mercado Libre. Just as Feature Flags offer a unified approach to managing and decoupling a feature from its release, fostering communication across teams can lead to unified solutions for common challenges. Every tech company faces recurring issues that impact multiple teams, and by cultivating a culture of openness and collaboration, you can uncover valuable insights and innovative solutions.</p><p>If you suspect that your team isn’t the only one facing a particular challenge, take the initiative to reach out and learn from others. You’ll often find that these challenges are more common than expected, and you’ll gain diverse perspectives on how different teams tackle them. Embracing this collaborative mindset not only enhances problem-solving but also strengthens the organization’s ability to adapt and thrive in a dynamic digital landscape.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1cfb40eb959a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mercadolibre-tech/unlocking-innovation-the-journey-behind-our-feature-flags-service-1cfb40eb959a">Unlocking innovation: The journey behind our Feature Flags service</a> was originally published in <a href="https://medium.com/mercadolibre-tech">Tecnología de Mercado Libre</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>