<?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 Gal Naor on Medium]]></title>
        <description><![CDATA[Stories by Gal Naor on Medium]]></description>
        <link>https://medium.com/@galnaor?source=rss-6d2d3ba279a4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ur11aMLbylqr9i2s-wLfWw.jpeg</url>
            <title>Stories by Gal Naor on Medium</title>
            <link>https://medium.com/@galnaor?source=rss-6d2d3ba279a4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 18:27:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@galnaor/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[ Building WoningScoutje: From Manual Hustle to Scale-Ready Platform on €4/Month]]></title>
            <link>https://galnaor.medium.com/building-woningscoutje-from-manual-hustle-to-scale-ready-platform-on-4-month-63830555a3a8?source=rss-6d2d3ba279a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/63830555a3a8</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[product-development]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[real-estate-tech]]></category>
            <dc:creator><![CDATA[Gal Naor]]></dc:creator>
            <pubDate>Fri, 21 Nov 2025 10:54:47 GMT</pubDate>
            <atom:updated>2025-11-21T11:00:17.955Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>In Amsterdam’s housing market, the best apartments get snapped up within hours of listing. I built a scanner that finds them before the crowd arrives — running on a €4 VPS with production-grade architecture.</em></strong></p><p><strong><em>Here’s how I turned that speed advantage into a scalable platform in one month</em>.</strong></p><h3>Act I: The Manual Win (And the Why)</h3><p>It’s 1 AM on a Tuesday in October 2025. I’m exhausted, but I’m also relieved. After weeks of manually checking dozens of <strong>first-party real estate agency websites</strong>, I finally found an apartment. The critical part? I found it <strong>before it was listed on Funda or Pararius</strong> — the biggest national aggregators — giving me the edge I needed to secure a viewing and make an early offer.</p><p>If you’ve tried to find a home in the Netherlands, you know this pain: properties vanish within hours, whether you are <strong>buying</strong> or, even worse, <strong>renting</strong>. My success proved the painful truth: The real opportunity is on the individual agency sites that publish their listings first, allowing you to be <strong>one step ahead</strong> of the general market.</p><p>While the manual win was satisfying, the process was clearly unsustainable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pnJ-dQLkgcXs-3GC8IBPQA.jpeg" /><figcaption>The WoningScoutje Dashboard, featuring advanced filtering by neighborhood, room count, and size — the automation that replaced the unsustainable manual search.</figcaption></figure><h3>Act II: The Automation Challenge and Rapid Execution</h3><p>The inefficiency of the manual search presented a compelling technical challenge. I decided to use this project as a test case for rapid, high-quality delivery: <strong>Could I build a complete, production-grade system — from idea to live deployment — in just one month?</strong></p><p>The constraint was time. My primary focus is my full-time role at <strong>Booking.com</strong>, where I lead a high-impact backend engineering team responsible for central reservation flows across accommodation, flights, taxis, and more. I handle high-traffic paths that serve millions of customers, meaning this side project had to be completed entirely after work hours, making sacrifices on evenings and weekends.</p><p><strong>I asked myself:</strong> How quickly can I build a production-grade scraping system from scratch, and how much can modern tools accelerate development? The execution was rapid: <strong>It took exactly one month from the initial idea to prototype the system locally on my machine to deploying WoningScoutje as a complete, production-grade service in the cloud.</strong> This proved that even with limited time, committing to a production-grade codebase is entirely feasible.</p><p>This led to the birth of <strong>WoningScoutje</strong> (Dutch for “little housing scout”). The guiding principle was simple: <strong>commit to production-grade architecture from day one.</strong> This meant choosing durable technologies and implementing defensive scaling, ensuring the architecture was an asset, not future technical debt.</p><h3>Act III: Designing a System That Can Grow While Keeping Costs Low</h3><p>The entire platform was designed for maximum efficiency and resilience, proving that scale-ready architecture doesn’t require a large budget. I specifically chose a small cloud VPS from <strong>Hetzner Cloud</strong> to maximize performance while minimizing cost.</p><p>The architecture runs on the following minimal infrastructure:</p><ul><li><strong>Hosting:</strong> <a href="https://www.hetzner.com/cloud"><strong>Hetzner Cloud</strong></a><strong> (€4/month)</strong> provides the low-cost, predictable performance necessary for the Spring Boot application.</li><li><strong>Database &amp; Auth:</strong> I rely on the <a href="https://nhost.io/"><strong>Nhost</strong></a><strong> Free Tier</strong> for managed PostgreSQL and JWT authentication, eliminating DevOps overhead and offering an instant upgrade path.</li><li><strong>Email Service:</strong> The <a href="https://mailtrap.io/"><strong>Mailtrap</strong></a><strong> Free Tier</strong> handles notifications, which are managed by an internal quota system to ensure service reliability.</li><li><strong>Capacity:</strong> The conservative resource limits mean the system is designed to handle up to <strong>~700 concurrent users</strong> through graceful queuing and defensive scaling.</li></ul><h3>The Technical Stack: Choosing Resilience</h3><p>Every technology choice prioritized durability, scalability, and robust free tiers.</p><ul><li><strong>Backend: Spring Boot 3.2 + Java 17</strong> <strong>Spring Boot</strong> provides a battle-tested framework for free: built-in connection pooling, security filters, and Flyway migrations are standard. Scaling is achieved horizontally without application rewrite.</li><li><strong>Database: PostgreSQL via </strong><a href="https://nhost.io/"><strong>Nhost</strong></a><strong>.</strong> Using managed PostgreSQL avoids custom auth implementation and complex database management overhead.</li><li><strong>Frontend: React 19 + Vite + TailwindCSS.</strong> A fast, modern stack that supports rapid development and full multilingual capabilities.</li><li><strong>External Integrations</strong> We leverage <a href="https://apidocs.geoapify.com/"><strong>Geoapify</strong></a> and <a href="https://nominatim.org/"><strong>Nominatim</strong></a> for geocoding, and <a href="https://www.cbs.nl/en-gb/our-services/open-data/statline-as-open-data"><strong>CBS OpenData</strong></a> for statistical context.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*oT6hGK4txEkisw_WoeymXQ.png" /><figcaption>The WoningScoutje High-Level Architecture: A decoupled, secure pipeline designed for scale.</figcaption></figure><h3>Act IV: Implementing Defense-in-Depth Architecture</h3><p>The system is split into five distinct layers, designed to be cheap now but ready to scale later.</p><h3>1. 5-Layer Defense Strategy</h3><p>To survive a potential viral spike on a €4 VPS, I implemented a defense-in-depth strategy comprising <strong>Request Validation</strong>, <strong>Token Bucket Rate Limiting</strong>, <strong>OWASP Headers</strong>, <strong>Nhost JWT</strong>, and <strong>Spring Security</strong>.</p><p><strong>Lesson Learned:</strong> Security must accommodate real usage. My initial 10-request burst limit blocked legitimate page loads (which trigger multiple API calls). I adjusted the per-IP bucket to a <strong>100-request burst</strong> and ensured <strong>every endpoint (</strong>even read-only queries) is rate-limited to prevent DDoS attacks.</p><h3>2. The Scraping &amp; Business Logic</h3><p>The core runs on a smart, asynchronous scheduling strategy:</p><ul><li><strong>Hourly Scan</strong>: Scans only the <strong>first page</strong> of each site. New properties almost always appear on the first page, making this check efficient for new listings.</li><li><strong>Daily Full Scan</strong>: Scans all pages to find and mark outdated/sold listings that agencies failed to remove.</li></ul><h3>3. Ethical Scraping</h3><p>The biggest technical hurdle was handling the diverse and often-changing HTML structures of real estate sites without becoming a nightmare of spaghetti code.</p><p>The solution was the abstract BasePropertyScraper class:</p><pre>public abstract class BasePropertyScraper implements PropertyScraper {<br>    protected void rateLimit() {<br>        try {<br>            Thread.sleep(rateLimitDelay);<br>        } catch (InterruptedException e) {<br>            Thread.currentThread().interrupt();<br>        }<br>    }<br>}</pre><p>The magic in this abstraction is the <strong>built-in 2-second delay</strong> (rateLimit()) between all requests. It’s a non-negotiable step for being a good internet citizen. New scrapers only need to implement the site-specific parsing logic, inheriting all of the rate limiting, geocoding, and notification machinery.</p><h3>4. Smart Property Matching: Criteria and Data Synthesis</h3><p>The architecture is designed to separate the different types of data used for matching cleanly:</p><p><strong>Core Filters:</strong> Handles the non-negotiable constraints, used for basic Boolean matching, implemented efficiently via Spring Data JDBC queries - City, Price, Rooms, Size, and Transaction Type (Buy/Rent).</p><p><strong>Augmentation:</strong> Enriches the raw listing by translating messy Dutch addresses into precise coordinates and extracting Energy Labels for filtering.</p><p><strong>Context &amp; Value:</strong> Integrates external government statistics (CBS) to provide neighborhood context (density, WOZ value) and performs real-time availability checks to reduce false positives by ~40%.</p><p><strong>Scoring Output:</strong> Instead of a simple “yes/no,” every matched property receives a <strong>Score-based Ranking (0–100 points)</strong> to help users prioritize the highest-value opportunities.</p><h3>5. Data Resilience and Capacity</h3><ul><li><strong>Dual-Provider Geocoding Strategy:</strong> Addresses are messy. The system defaults to <strong>Geoapify</strong> (fast, 3,000/day free limit) and automatically falls back to the slower, rate-limited <strong>Nominatim</strong> only when quotas are reached. All results are aggressively cached to minimize external calls.</li><li><strong>Conservative Database Limits:</strong> PostgreSQL is configured with a limit of <strong>30 concurrent connections</strong>. This ensures <strong>graceful queuing</strong> — the system slows down under load rather than crashing.</li></ul><h3>The Capacity Result</h3><p>By being conservative and leveraging managed free tiers, the <strong>€4/month VPS</strong> is theoretically capable of handling 500 active HTTP connections + 200 queued connections, totaling <strong>700 concurrent users</strong>. If traffic spikes, the system won’t collapse; it will slow down gracefully, buying time for an upgrade.</p><h3>Act V: The Maintenance Trap: The “Long Tail” of Real Estate</h3><p>While the infrastructure scales effortlessly to thousands of users, the <em>development</em> scalability remains the hardest unsolved engineering challenge.</p><p>Scaling from 1 to 6 scrapers was straightforward. Scaling to 100 is a different story. The “Long Tail” of small real estate agencies is a Wild West of non-standardization:</p><ul><li><strong>Agency A</strong> uses a modern Next.js app with hydration.</li><li><strong>Agency B</strong> runs on a WordPress theme from 2012, using table layouts.</li><li><strong>Agency C</strong> loads data via obfuscated private APIs.</li><li><strong>Agency D</strong> changes its CSS class names every month.</li></ul><p><strong>The Trap:</strong> Every new scraper adds linear maintenance debt. If I build 100 manual scrapers, and 5% break every week due to layout changes, I effectively become a full-time scraper maintainer.</p><p><strong>The Solution Strategy:</strong> Currently, the core <strong>abstraction layer</strong> handles 80% of the boilerplate (rate limiting, matching, geocoding). However, for the fragile extraction logic, I am actively experimenting with <strong>LLM-based parsing</strong>—feeding raw HTML segments to a local LLM to extract structured JSON, potentially bypassing the need for fragile CSS selectors entirely. This automation is the only viable path to 100+ sites without a dedicated engineering team.</p><h3>Act VI: Key Technical Highlights and Learnings</h3><p>The successful delivery in one month highlights the value of disciplined technical execution.</p><h3>1. Enterprise-Grade Security on a Budget</h3><p>I treated security as a first-class citizen, not an afterthought.</p><ul><li><strong>Defense in Depth:</strong> Instead of relying on a single firewall, I implemented <strong>5 distinct layers of security</strong>, from request validation to granular authorization.</li><li><strong>DDoS Mitigation:</strong> The custom implementation ensures precise control over traffic and prevents a single IP from exhausting resources.</li><li><strong>The Result:</strong> A system that is secure by design, robust against common web attacks, and ready for the scrutiny of the open internet.</li></ul><h3>2. Data Enrichment &amp; Neighborhood Intelligence</h3><p>I moved beyond simple scraping by integrating <strong>CBS OpenData</strong> (Statistics Netherlands).</p><ul><li><strong>The Challenge:</strong> A raw address tells a user very little about the living experience.</li><li><strong>The Solution:</strong> I built an enrichment pipeline that fetches <strong>10+ neighborhood metrics</strong> — including age distribution, family composition, and average property value (WOZ) — for every listing.</li><li><strong>The Result:</strong> Users don’t just see a house; they see the context of the neighborhood, transforming the app from a scanner into a decision-support tool.</li></ul><h3>3. Production-Ready Implementation</h3><ul><li><strong>Clean Database Migration:</strong> Used <strong>Flyway migrations</strong> and <strong>Spring Data JDBC</strong> for a clean transition from H2 to managed PostgreSQL, avoiding ORM complexity and maintaining database versioning.</li><li><strong>Intelligent Quota Management:</strong> Implemented a daily email limit service (5 emails/user) not only to respect the constraints of Mailtrap&#39;s free tier but to improve <strong>user experience</strong> by preventing alert fatigue.</li></ul><h3>Core Lessons Learned</h3><ol><li><strong>Abstract Early:</strong> The decision to create a base scraper class was the most impactful architectural choice, making adding new agency sites trivial.</li><li><strong>Leverage Managed Services for Focus:</strong> Using <strong>Nhost</strong> and <strong>Geoapify</strong> for non-core features (Auth, Geocoding) saved critical development time, allowing 90% of effort to focus on the core value proposition: scraping, matching, and notification logic.</li><li><strong>Architecture Must Be Defensive:</strong> The €4 VPS’s resilience comes entirely from defensive coding (rate limiting, fallbacks) and conservative resource limits, proving that low-cost infrastructure can be production-ready.</li></ol><h3>Act VII: The Future Roadmap</h3><p>WoningScoutje is currently running strong with 6 scrapers and 15 users.</p><h3>1. Immediate Technical Debt</h3><ul><li><strong>Observability</strong>: Moving beyond SSH and log-tailing. I need structured logging, <strong>Grafana dashboards</strong>, and alerting to proactively identify issues before users notice.</li><li><strong>Deployment</strong>: Implementing a full CI/CD pipeline with <strong>GitHub Actions</strong> to automate deployment to the VPS.</li></ul><h3>2. Exciting Feature Roadmap</h3><ul><li><strong>AI Integration</strong>: Building an MCP (Message Channel Protocol) server to allow users to make natural language queries via ChatGPT (e.g., <em>“Show me 3-bedroom apartments in Amsterdam under €800k”</em>).</li><li><strong>Richer Data</strong>: Integrating more statistics, better property feature extraction, and historical price data.</li><li><strong>Monetization Strategy</strong>: Exploring a <strong>Freemium Model</strong> (e.g., Free: 3 criteria/5 emails; Pro: Unlimited criteria/50 emails) or a <strong>Simple Subscription</strong> once the goal of <strong>100 active scrapers</strong> (the true value proposition) is achieved.</li></ul><h3>3. The Power of Building for Scale</h3><p>This project proves that <strong>building for scale doesn’t mean over-engineering</strong>. It means:</p><ul><li><strong>Choosing technologies that grow with you</strong> (Java/Spring, PostgreSQL, React).</li><li><strong>Implementing security before you need it</strong> (5-layer defense).</li><li><strong>Using free tiers smartly</strong> (with quotas and fallbacks).</li><li><strong>Creating solid abstractions</strong>.</li></ul><p>My €4/month VPS is engineered to handle 700 concurrent users. I certainly hope the platform grows enough to test those limits. But if WoningScoutje does go viral on Reddit tomorrow, I won’t wake up to a crashed server and angry emails — I’ll wake up to a system that did exactly what it was designed to do.</p><p>That commitment to production-readiness, even in a pet project, is the most valuable lesson.</p><p><a href="https://www.linkedin.com/in/galnaor/"><em>Gal Naor </em></a><em>| November 2025</em></p><p><strong><em>Keywords:</em></strong> Real Estate Tech, Web Scraping, Spring Boot, React, Scalability on a Budget, Pet Project Architecture, DDoS Protection, Free Tier Development, Production-Ready Code, Defense in Depth, Java Architecture</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63830555a3a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Feature Flags: Good, Bad and Serverless]]></title>
            <link>https://medium.com/cyberark-engineering/feature-flags-good-bad-and-serverless-432df10416e1?source=rss-6d2d3ba279a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/432df10416e1</guid>
            <category><![CDATA[feature-toggles]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[feature-flags]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Gal Naor]]></dc:creator>
            <pubDate>Tue, 02 Nov 2021 16:55:15 GMT</pubDate>
            <atom:updated>2021-11-02T16:55:15.592Z</atom:updated>
            <content:encoded><![CDATA[<p>About a year ago, I joined CyberArk as team leader. One of my first questions was whether we have Feature Flags in our serverless system.</p><p>The answer was <strong>— not yet</strong>, as the system was still in its early stages.</p><p>Even so, Feature Flags are fantastic and worth implementing.</p><p>As you probably know, with Feature Flags you can gain many advantages, including:</p><ol><li>Flexibility to hide a broken feature instead of rolling back immediately</li><li>Enabling our features to certain users or disabling them</li><li>A/B testing</li></ol><p>Because of all the above advantages and since this system will be deployed to production very soon, we decided to implement Feature Flags (and you can read more about it <a href="https://medium.com/cyberark-engineering/aws-feature-flags-made-simpler-and-smarter-f78d4b4ca933">here</a>).</p><p>If you are already familiar with serverless and are wondering how to implement Feature Flags in your system, take a closer look at the way we chose to do it…</p><h3>How We Implemented Feature Flags in our Serverless Application</h3><h4>Architecture</h4><p>We started a trade-off analysis with the following three options:</p><ol><li>Using a third party, like <a href="https://launchdarkly.com/">LaunchDarkly</a> — Due to security and integration aspects, we preferred to skip it at that stage. The integration with our system would take a long time, so we didn’t need LaunchDarkly extensive UI.</li></ol><p>2. Using the <a href="https://docs.aws.amazon.com/appconfig/latest/userguide/what-is-appconfig.html">AWS AppConfig</a> (with AWS Lambda) — AWS states that feature toggle is one of its use cases, but we wanted to stay close to the services we were already using and knew well (like AWS DynamoDB). Besides, due to a tight deadline, we didn’t want to start the learning curve of a new service.</p><p>3. Building something of our own, based on AWS DynamoDB — <strong>the chosen option:</strong></p><ul><li>We wanted it to be lightweight, easy and adjustable to our own needs.</li><li>We already used it (no learning curve required), so it would take two weeks from design to production.</li></ul><p>We used AWS DynamoDB to store our Feature Flags data and Lambda from CRUD:</p><ol><li><strong>AWS DynamoDB</strong></li></ol><ul><li>One table for global features that are ON or OFF to all our tenants</li><li>One table for tenant-specific features</li></ul><p><strong>2. AWS Lambda</strong></p><p>a. <em>You must create a global Feature Flag before you define a tenant-specific Feature Flag</em></p><p>b. <em>Global</em></p><ul><li>AddFeature — adds a feature to the global table and sets its status to OFF</li><li>DeleteFeature — deletes a feature completely from global and per-tenant feature tables</li><li>ChangeGlobalFeatureState — changes the global feature(s) state to ON or OFF</li></ul><p><em>c. Tenant-specific</em></p><ul><li>ChangeTenantFeatureState — adds or changes features’ tenant(s) and their state</li><li>RemoveTenantFeature — removes a tenant from a specific feature</li><li>GetTenantFeatureState — always gets a Feature Flag state in the context of a tenant. In this case, this Lambda returns the state of a Feature Flag for a specific tenant (if existing). If not, it returns the global state of this feature</li><li>GetTenantsFeatures — returns the list of all features attached to a specific tenant</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*Bq6c3idz5FTEkRVYr5mngQ.png" /></figure><h4>Usage</h4><p>In our backend, which is dozens of Lambdas, we can use Feature Flags in two ways:</p><ul><li>Using our Python decorator (@feature_flag) executes this Lambda if those Feature Flags are ON globally or for this specific tenant.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*-wQrwiU0zpp9wDLh2mXKFA.png" /></figure><ul><li>Using a shared Feature Flags module, which you can use in every Lambda to check a specific Feature Flag state.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*0ayxrOMmpn4yATsShRLL7g.png" /></figure><p>Our UI retrieves the Feature Flags data via our internal API in every login, as shown in our frontend in the UML above.</p><h3>Challenges</h3><h4><strong>Stay ON Unused Features</strong></h4><p>You might leave Feature Flags ON for a long time. This can mess up your code because many parts of your system are not really in use; you support cases you don’t need.</p><h4><strong>Ongoing Maintenance</strong></h4><p>How do you add a Feature Flag? <br>Please don’t define Feature Flags in common/shared places because when you need to delete it, it’s not going to be fun.</p><p>How do you delete it safely? <br>Deleting it using our magnificent, dedicated Lambda but forgetting to delete it from your codebase is a big no-no.</p><h4><strong>Confusion</strong></h4><p>Feature Flags can indicate something that we want to enable or disable; it depends on the context. For example, when removing a manual onboarding Feature Flag does it mean that the manual onboarding is removed if the state is ON? It can be very confusing.</p><h4><strong>Unclear Default Value</strong></h4><p>Should the default value be OFF? Should we fail it if a Feature Flag is not defined?</p><h3>Solutions</h3><h4><strong>Periodic Verification</strong></h4><p>You should scan the Feature Flags in all environments once a month. It’s also important to check whether ones that have been ON for a long time can be removed.</p><h4><strong>Say No to Common/Shared</strong></h4><p>We never use a Feature Flag in a common/shared project. That’s because when you remove it, you need to update and deploy many Lambdas.</p><h4><strong>Naming Convention</strong></h4><p>All our Feature Flags’ names are combined with &lt;featureName&gt;+” Enabled” to make sure that when one is on, it’s enabled. In our previous example — “RemovedManualOnboardingEnabled” — it’s easy to understand what happens when this Feature Flag is ON.</p><h4><strong>Default Value</strong></h4><p>We don’t have a default value. So, we fail if a Feature Flag is not defined — we force it in all environments, making sure everything is working when it’s ON or OFF.</p><h4><strong>Automatic Reporting</strong></h4><p>In this report, we pay attention to:</p><ul><li>enabled global Feature Flag for more than two weeks in all environments</li><li>enabled tenant-specific Feature Flag for more than two weeks</li><li>disabled Feature Flag for more than two weeks</li></ul><h4><strong>UI Management</strong></h4><p>Developing our own UI for managing Feature Flags allows us to CRUD specific tenants — internal/external customers, random by percentage, and so on.</p><h3>What We Achieved</h3><p>Because we have a global and tenant-specific functionality of Feature Flags, we always start with a global OFF state. Then we enable it for a specific tenant (or tenants), finally going to ON globally.</p><p>With this mechanism, we can achieve the following:</p><h4><strong>Shorter PRs</strong></h4><p>Because a feature comes with a Feature Flag, you don’t need to put all the logic in place. You can do it in small parts, making it easy to review and test.</p><p>It allows the main branch to always be working.</p><p>As an outcome, many deployments are in small parts, and if something horrible happens turn it off!</p><h4><strong>Test First; Fail Fast</strong></h4><p>When you can enable a feature to a specific tenant, you can test it very quickly. In the worst case scenario, if something doesn’t work as we expect you can switch it off.</p><h4><strong>Rollback Easily</strong></h4><p>We all know the feeling of trying to roll back some logic in our system that’s causing a major bug (and it always happens on Friday night, right?). When you have a Feature Flag to cover you, you switch it off. This never happens to us because we have no bugs. 😉</p><h4><strong>Product-wise</strong></h4><p>This approach helps us get customer input for an enabled feature.</p><h3>Wrapping up</h3><p>In this blog, you learned how we implemented a simple feature-toggle mechanism under strict time constraints. Of course, there are other options, such as the one described in this post. You could also always use an off-the-shelf product, such as Launch Darkly. I’d be more than happy to hear your opinions about this.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=432df10416e1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cyberark-engineering/feature-flags-good-bad-and-serverless-432df10416e1">Feature Flags: Good, Bad and Serverless</a> was originally published in <a href="https://medium.com/cyberark-engineering">CyberArk Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>