<?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 Hasan Rayan on Medium]]></title>
        <description><![CDATA[Stories by Hasan Rayan on Medium]]></description>
        <link>https://medium.com/@hasan-rayan?source=rss-124ac08f6590------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6RZsXVQ9Rxp3fkXg-wnaWA.png</url>
            <title>Stories by Hasan Rayan on Medium</title>
            <link>https://medium.com/@hasan-rayan?source=rss-124ac08f6590------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 11:37:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hasan-rayan/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[The Three Assumptions That Held SaaS Together for Twenty Years, and Why All Three Just Broke]]></title>
            <link>https://hasan-rayan.medium.com/the-three-assumptions-that-held-saas-together-for-twenty-years-and-why-all-three-just-broke-b315c6f9fc1f?source=rss-124ac08f6590------2</link>
            <guid isPermaLink="false">https://medium.com/p/b315c6f9fc1f</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Hasan Rayan]]></dc:creator>
            <pubDate>Sun, 16 Aug 2026 16:14:00 GMT</pubDate>
            <atom:updated>2026-08-16T16:20:22.492Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oUUi5JBCJYbrjOf0RhmTZA.png" /></figure><p>For roughly two decades, from the mid-2000s onward, enterprise software held a shape so consistent it started to feel like physics. Salesforce, NetSuite, Xero, HubSpot, Shopify, Workday. Different categories, different customers, the same underlying commercial architecture.</p><p>That architecture rested on three assumptions. Interfaces changed visually. Business models did not.</p><p><strong>Assumption one: the unit of value is a human seat.</strong></p><p>Pricing was denominated in named users per month. Revenue grew when your customers hired. Net revenue retention, land-and-expand, the whole go-to-market apparatus of the industry was a derivative of one premise: that software value scales with the number of humans looking at screens.</p><p><strong>Assumption two: the interface is a durable engineered artefact.</strong></p><p>Vendors poured capital into graphical interfaces built months or years in advance. Multi-page dashboards, navigation hierarchies, configurable report builders. That was rational, because the interface <em>was</em> the product experience, and familiarity with it was a switching cost. A controller who had spent six years learning where things live in an ERP was, functionally, collateral against churn.</p><p><strong>Assumption three: the API is a distribution channel, and therefore free.</strong></p><p>Open APIs were a drawbridge lowered deliberately. Marketplaces and integration ecosystems were land-grab instruments, because every third-party app that connected deepened the customer’s entanglement with the platform. Metering data access would have been strategically illiterate, since access <em>was</em> the growth mechanism.</p><p>Three assumptions, mutually reinforcing, stable for twenty years.</p><p>All three are now failing at once, and the failure has a common cause.</p><h3>What AI actually changed</h3><p>The usual framing is that AI adds features to software. That understates it.</p><p>Under the classical model, the user interface and the business logic were <strong>artefacts</strong>: engineered ahead of time, versioned, shipped, depreciated slowly. An expense-approval screen existed as a compiled asset before any specific expense was approved on it. A three-way-match rule existed as backend code before any specific invoice hit it.</p><p>Under the agentic model, both become <strong>values</strong>: computed at request time from context. The interface for approving <em>this</em> expense is synthesised when the approval is needed, shaped to this user, this transaction’s risk profile, this device, then discarded. The logic governing <em>this</em> invoice match is assembled by an agent reasoning over policy documents and available tools, rather than retrieved from a hardcoded branch.</p><p>That distinction is the whole argument. Artefacts can be owned, protected, and sold. Values are computed, and anything computable on demand from cheap general-purpose intelligence converges towards the cost of computing it.</p><p>Interface stickiness evaporates, because no persistent interface remains to become familiar with. Workflow lock-in evaporates, because the workflow is no longer a proprietary sequence encoded in someone’s backend. It is an intent expressed in natural language, executed by an orchestrator that can point at any underlying system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0SGgPIC6NQxcFAKk41MLvg.png" /></figure><h3>What refuses to dissolve</h3><p>Strip away fluid UI and fluid logic and one layer survives: the structured data.</p><p>The general ledger. The customer master. The immutable audit trail with its timestamps and approver identities. The relational schema encoding seven years of accumulated business-specific meaning. The compliance ledger a regulator can subpoena.</p><p>None of this can be synthesised on demand, because it is not a function of context. It <em>is</em> the context: the accumulated, path-dependent record of what actually happened.</p><h3>The market has already voted</h3><p>This is not a forecast. Between July 2025 and April 2026, vendors across four unrelated categories independently repriced around exactly this insight, and every one of them landed on the same asymmetry. <strong>Writing data in stays free. Reading data out gets metered.</strong></p><ul><li><strong>Intuit</strong> (Nov 2025) split its API in two. POST and PUT operations are free and unlimited on every tier. GET operations are metered, at up to $3.50 per 1,000 calls.</li><li><strong>Xero</strong> (Mar 2026) retired its App Store revenue share and priced egress literally, by the gigabyte, at A$2.40. Ingress remains unlimited on every tier.</li><li><strong>OpenSolar</strong> (Apr 2026) said the quiet part in writing: <em>“If your data is created and retained inside OpenSolar, the core app stays free.”</em> The entire application, free. Only data movement is charged.</li><li><strong>Amazon</strong> attempted the same on SP-API GET calls and was forced into full retreat by May 2026, which tells you the toll is not frictionless. It also tells you Amazon reached for the identical instrument.</li></ul><p>No coordination. Different categories, different sizes, different geographies. The same answer: the application is the acquisition channel, the data is the business.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6jp18f651xC4gUYZrG59kQ.png" /></figure><h3>The part worth remembering</h3><p>The twenty-year stability of the SaaS model was not a law of nature. It was an equilibrium that held because interfaces and logic were expensive to produce, and anything expensive to produce can be sold.</p><p>AI made both cheap. What is cheap cannot be sold, and so the price collapsed into the one layer that remained scarce.</p><p><strong>The interface is now a service. The logic is now a service. The data is now the asset.</strong></p><p>If you are building software, the implication is uncomfortable but clear. Success no longer comes from a prettier dashboard or a more clever proprietary workflow. It comes from being the system where a fact is first recorded, and from monetising correct execution against data only you hold authoritatively.</p><p>If you are buying software, read your vendor’s egress pricing carefully. Free ingress and metered egress means you are welcome to feed the vault and expected to pay to leave it. Price that in on day one, because retrofitting portability after seven years of accumulated records is not a project. It is a hostage negotiation.</p><p><em>I have written a longer analysis with the full rate cards, dates, and the architectural breakdown, including how protocols like Google’s A2UI are standardising the dynamic UI layer. Happy to share it with anyone interested: </em><a href="https://hrayan.com/the-death-of-20-year-saas-stability/">https://hrayan.com/the-death-of-20-year-saas-stability/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b315c6f9fc1f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI-Native Software Development Life Cycle]]></title>
            <link>https://hasan-rayan.medium.com/ai-native-software-development-life-cycle-6cabac3e6642?source=rss-124ac08f6590------2</link>
            <guid isPermaLink="false">https://medium.com/p/6cabac3e6642</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[test-driven-development]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[sdlc-process]]></category>
            <category><![CDATA[claude-code]]></category>
            <dc:creator><![CDATA[Hasan Rayan]]></dc:creator>
            <pubDate>Thu, 13 Aug 2026 16:00:15 GMT</pubDate>
            <atom:updated>2026-08-13T16:00:15.990Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3tnW_bEaGWkurotZWQ_h3A.png" /></figure><p>Most teams using AI to build software are doing AI-assisted development. The lifecycle is unchanged. A model has been inserted into the coding step, and the coding step got faster.</p><p>That’s a real improvement, and it’s a local optimisation of a step that was rarely the constraint.</p><p>AI-native is a different claim: the lifecycle itself gets redesigned around what agents can do. I spent a recent programme replacing a family of older business applications, PHP systems built before Laravel existed, including a scheduling system carrying a decade of undocumented business rules. Here’s what actually moved.</p><p><strong>Discovery moves earlier and gets much wider.</strong> Breadth is now cheap. I asked an agent to find every code path that could create a booking across four applications. It came back with eleven entry points. The team believed there were three.</p><p><strong>Discovery output gets validated by humans, or it’s worthless.</strong> The same agent reported that the system enforced a capacity limit on bookings. The check was there and well written, and it had been inert for years since someone flipped a config flag during an infrastructure move. Support staff knew instantly, because they’d been catching those bookings manually ever since. Nothing in the repository said so. Code is an accurate record of what a system does and a poor record of what it’s for.</p><p><strong>Requirements get written differently</strong>, because they now feed a test suite rather than a developer’s reading. “The system should handle scheduling conflicts appropriately” cannot become a test. “When two sessions are booked for the same resource in overlapping time windows, the second is rejected with error code X and the first is unaffected” becomes one almost mechanically.</p><p><strong>Testing moves before implementation</strong>, because a test suite is what lets an agent work unsupervised. This is the part I’d argue hardest for. An agent can inspect and modify more code in a minute than I can in an afternoon, and that capability is symmetric: it accelerates correct and incorrect changes equally. Faced with a forty-file refactor you are not reviewing it line by line, whatever you tell yourself. You are either trusting it or verifying it.</p><p>AI gives us the ability to move faster. TDD gives us the constraints that make moving faster safe.</p><p><strong>Review changes what it looks for.</strong> Less style, which linters handle. More architecture drift, scope creep, and whether the tests encode the requirement or just the implementation. Read the test diff before the code diff.</p><p>What doesn’t change: humans own business intent, architecture, risk and acceptance. Passing tests are evidence, not proof. QA stays independent, precisely because the developer and the agent share a mental model and therefore miss the same things.</p><p>On timing, for context rather than as a benchmark: this application reached production in about 8 weeks. The same scope, same team capacity, without AI in the process, had been running to 4 to 6 months. The saving wasn’t typing. It was that discovery, characterisation testing and the mechanical parts of implementation stopped being the long pole.</p><p>Full write-up, including the process table, the week-by-week breakdown and the parts that went wrong: <a href="https://hrayan.com/ai-native-software-development-life-cycle/">https://hrayan.com/ai-native-software-development-life-cycle/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6cabac3e6642" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What ChatGPT Actually Changed About Prediction]]></title>
            <link>https://hasan-rayan.medium.com/what-chatgpt-actually-changed-about-prediction-f27892152978?source=rss-124ac08f6590------2</link>
            <guid isPermaLink="false">https://medium.com/p/f27892152978</guid>
            <category><![CDATA[data-prediction]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Hasan Rayan]]></dc:creator>
            <pubDate>Sun, 09 Aug 2026 16:15:43 GMT</pubDate>
            <atom:updated>2026-08-09T16:15:43.430Z</atom:updated>
            <content:encoded><![CDATA[<p>Everyone talks about what generative AI did to writing and code. Less talked about: what it quietly did to prediction.</p><p>I wrote a two-part piece on this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OHtQR99KgjgarvFU8ze8vw.png" /></figure><h3><strong>Part 1: the model layer changed</strong></h3><p>Forecasting used to mean weeks of work before you saw a single prediction: clean the data, engineer features, pick a model, train it, tune it, retrain it when the pattern drifted. Every new series meant doing most of that again.</p><p>Since ChatGPT, a wave of pretrained time-series foundation models, TimesFM, Chronos, TimeGPT, Moirai, can forecast a series they’ve never seen, zero-shot, in seconds. Same trick large language models used on text, applied to numbers.</p><p>But the honest read isn’t “AI got better at predicting the future.” Benchmarks show these models land between classical methods and the best purpose-built ones — impressive, not dominant. ARIMA and exponential smoothing still win plenty of fights.</p><p>The real shift: forecasting became less of a training problem and more of a model-selection problem. What used to take a quarter to test now takes an afternoon.</p><p>Full article: <a href="https://hrayan.com/the-forecast-nobody-trained-what-actually-changed-in-prediction-after-chatgpt">The Forecast Nobody Trained: What Actually Changed in Prediction After ChatGPT</a></p><h3><strong>Part 2: the more important change isn’t the model. It’s what happens after the forecast</strong></h3><p>A prediction used to be an endpoint; a number a person looked at and decided what to do with. AI is turning it into one step in an agent loop: pull the data, forecast, reason about constraints, recommend an action, sometimes take it.</p><p>That’s genuinely useful. It’s also where a new risk shows up: a fluent explanation attached to a forecast is more persuasive than a bare number, and more dangerous to accept without testing, because sounding right and being right aren’t the same thing.</p><p>The framework I land on: evaluate these systems at three levels ; forecast quality, decision quality, business outcome. A slightly less accurate forecast that consistently leads to better decisions beats a more accurate one that doesn’t.</p><p>The model was never the product. The decision loop is. And the decision isn’t the end either , the outcome is.</p><p>Full article: <a href="https://hrayan.com/from-forecast-to-action-when-ai-stops-predicting-and-starts-deciding">From Forecast to Action: When AI Stops Predicting and Starts Deciding</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f27892152978" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Security is Not Optional: Dear Developers, Your Default Passwords Just Helped Iran Target Missiles]]></title>
            <link>https://hasan-rayan.medium.com/security-is-not-optional-dear-developers-your-default-passwords-just-helped-iran-target-missiles-8009ceb753fa?source=rss-124ac08f6590------2</link>
            <guid isPermaLink="false">https://medium.com/p/8009ceb753fa</guid>
            <category><![CDATA[iot-development]]></category>
            <category><![CDATA[security-camera]]></category>
            <category><![CDATA[israel]]></category>
            <category><![CDATA[iran]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Hasan Rayan]]></dc:creator>
            <pubDate>Mon, 23 Jun 2025 12:42:11 GMT</pubDate>
            <atom:updated>2025-06-23T12:42:11.500Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>Note:</strong> This is a technical analysis of software and hardware security vulnerabilities and their exploitation. No political stance is intended or implied. The focus is solely on engineering practices and security solutions for developers.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JWNxWwuC5IvhByLhjEMKvg.png" /></figure><p>The warning came over Israeli public radio just after Iranian missiles tore through Tel Aviv’s skyline. Refael Franco, former deputy director general of the Israel National Cyber Directorate, had an <a href="https://www.bloomberg.com/news/articles/2025-06-20/iran-hijacking-home-security-cameras-to-spy-within-israel">urgent message</a>: Turn off your home surveillance cameras or change the password. <a href="https://www.insurancejournal.com/news/international/2025/06/20/828585.htm">It wasn’t the missiles that prompted his warning</a> — it was what came next.</p><p>“We know that in the past two or three days, the Iranians have been trying to connect to cameras to understand what happened and where their missiles hit to improve their precision,” Franco explained. The revelation sent shockwaves through the tech community. Iran wasn’t using sophisticated cyber weapons or zero-day exploits. They were using something far simpler: default passwords.</p><p>As a developer, this should terrify you. Not because of the geopolitical implications, but because of what it reveals about our industry. We’ve created this vulnerability. We’ve shipped it. And we’ve enabled the attack.</p><h3>The Uncomfortable Truth About Our Code</h3><p>Let me paint you a picture of how absurdly simple these attacks are. Many security cameras come with <a href="https://cybernews.com/cyber-war/iran-hacks-israels-security-cameras/">default passwords as simple as “1234”</a>. Others ship with combinations like <a href="https://www.netscylla.com/blog/2020/12/08/RTSP-CCTV-Hacking.html">root:123456 or admin:admin</a>. These aren’t hidden vulnerabilities buried deep in assembly code — they’re passwords we deliberately chose, documented in manuals, and replicated across millions of devices.</p><p>The scale of this problem is staggering. In 2022, the Israeli cyber agency warned that 66,000 personal cameras in Israel were using default passwords. That’s 66,000 potential surveillance points for foreign intelligence, all because we, as developers, decided that convenience trumped security.</p><p>But Iran’s current campaign isn’t the first time our lax security has been weaponised. The precedent is even more chilling.</p><h3>The Developer’s Dilemma</h3><p>I know what you’re thinking. “But users should change their passwords!” And you’re right — they should. But they don’t. And deep down, we know they won’t. We’ve known this for decades, yet we keep shipping products that depend on users making security decisions they’re not equipped to make.</p><p>The problem isn’t just laziness or ignorance. As developers, we’ve made security invisible and optional. We hide password-change options deep in settings menus. We prioritize smooth onboarding over secure setup. We tell ourselves that it’s the user’s responsibility, but when Iran taps into private security cameras to gather real-time intelligence, whose responsibility is it really?</p><p>Security researcher <a href="https://jumpespjump.blogspot.com/2015/09/how-i-hacked-my-ip-camera-and-found.html">Amit Serper put it bluntly</a>: “The only way to guarantee that an affected camera is safe from these exploits is to throw it out”. But it doesn’t have to be this way.</p><h3>The Technical Reality of These Attacks</h3><p>Let me show you how trivially easy these attacks are. Cameras expose services like telnet servers <a href="https://www.netscylla.com/blog/2020/12/08/RTSP-CCTV-Hacking.html">via BusyBox on port 23</a> and authenticated-less RTSP servers that allow watching streams without any authentication. <a href="https://www.cisa.gov/news-events/cybersecurity-advisories/aa23-335a">Some use default TCP port 20256</a> for communications.</p><p>An attacker doesn’t need nation-state resources to exploit these. A teenager with <a href="https://www.shodan.io/">Shodan</a> and a list of default passwords can compromise thousands of devices in an afternoon. The tools are free, the passwords are public, and the cameras are online 24/7.</p><p>But here’s where it gets worse. Even when users want to be secure, we’ve failed them. The “cloud” protocols are more like botnet protocols with <a href="https://www.ninjaone.com/blog/how-to-secure-iot-devices/">everything transmitted in clear-text</a>. Passwords sent unencrypted. Video feeds accessible without authentication. It’s not just bad security — it’s no security.</p><h3>The Solution We’ve Always Known</h3><p>The fix is embarrassingly simple: force users to create a new password when they first set up the device. Not suggest. Not recommend. Force.</p><p>Imagine if your code looked like this on first boot:</p><pre>if is_first_boot() or default_password_detected():<br>  disable_all_functionality()<br>  launch_security_wizard()<br>  # No functionality is available until the security wizard completes</pre><p>That’s it. That’s the feature that could have prevented Iran from using Israel’s cameras for missile targeting. A simple check, a mandatory wizard, a forced decision.</p><p>Modern routers do this. When you set up a new router, you can’t access the internet until you’ve created a password. Apple’s HomeKit requires unique setup codes for each device. These aren’t revolutionary ideas — they’re basic security practices we’ve somehow decided don’t apply to cameras pointed at our homes and streets.</p><h3>Why We Don’t Do This</h3><p>I’ve sat in the meetings. I’ve heard the arguments. “It adds friction to the onboarding.” “Customers will return products they can’t set up.” “Our competitors don’t require it.” “It’s too expensive to print unique passwords on each device.”</p><p>But let’s be honest about what we’re really saying: “We’re willing to let our products be used for espionage because password setup is inconvenient.”</p><p>Cameras that offices installed in Israel to prevent theft inadvertently showed targets’ positions. An office manager trying to protect their business became an unwitting intelligence asset for enemy forces. That’s the real cost of our convenience-first approach.</p><h3>Building Security That Actually Works</h3><p>Security doesn’t have to be hard for users. It just has to be mandatory. Here’s what every IoT device should do:</p><p>First, generate a unique password for each device. Print it on a label. Make the user change it during setup. Don’t allow network access until they do. Show a big, impossible-to-ignore security wizard. Use a password strength meter. Explain why this matters in plain language.</p><p>Second, make security visible. Don’t hide security settings three menus deep. Put security status on the main dashboard. Show when passwords were last changed. Display active sessions. Alert users to suspicious activity.</p><p>Third, update automatically. Check that the vendor <a href="https://www.gov1.com/technology/articles/iot-security-basics-every-device-owner-needs-now-ArSrjx3DYxLZAQaQ/">provides updates and consistently apply them</a>. Don’t make users hunt for firmware updates. Don’t abandon products after launch. Security isn’t a feature — it’s an ongoing commitment.</p><h3>The Business Case for Security</h3><p>If the moral argument doesn’t convince you, consider the business case. The private surveillance market is projected to reach $89 billion by 2030, up from $54 billion in 2024. That’s a massive market that’s increasingly going to demand secure products.</p><p>Regulations are coming. Lawsuits are coming. Insurance companies are starting to exclude IoT-related breaches. The era of shipping insecure devices and hoping for the best is ending. The question isn’t whether you’ll need to implement security — it’s whether you’ll do it before or after your products are used in an international incident.</p><h3>The Developer’s Responsibility</h3><p>We are not just code writers. We are the architects of the connected world. Every default password we ship, every unencrypted connection we allow, every security update we skip — these aren’t just technical decisions. They’re ethical ones.</p><p>When we ship a camera with a default password, we’re not just risking someone’s privacy. We’re potentially contributing to intelligence gathering, military targeting, and international conflict. Hundreds of thousands of cameras worldwide are affected by these vulnerabilities, each one a potential tool for surveillance and espionage.</p><h3>A Call to Action</h3><p>The next time you’re designing a hardware device or a software product, remember the ordinary kid playing in his room — whose camera revealed military positions. Remember the thousands of civilians whose home cameras became tools for missile targeting. Remember that security isn’t an edge case — it’s the primary case.</p><p>Force password changes on first use. It’s not revolutionary. It’s not expensive. It’s not even particularly difficult. It’s just responsible development.</p><p>Because when Iran is tapping into private security cameras to gather real-time intelligence about its adversary, when Israel conducts many years of surveillance through our devices, when farmers’ cameras compromise military positions — that’s not a user problem. That’s a developer problem.</p><p>And it’s one we can fix. Today. With a few lines of code and the courage to say that security is not optional.</p><p>The question isn’t whether we can build secure devices and apps. The question is whether we will. And if recent events have taught us anything, it’s that the cost of answering “no” is far too high.</p><p>As developers, we have the power to close these vulnerabilities. We have the knowledge, the tools, and the techniques. All we need now is the will to use them.</p><p>Because the next time a military leader exploits our lazy security practices, we won’t be able to say we didn’t know better. We’ve always known better. We just chose convenience over security, shipping speed over safety, and market share over responsibility.</p><p>It’s time to choose differently. Security is not optional. Not anymore.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8009ceb753fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why GraphQL APIs are a Must-Consider for Businesses in 2025]]></title>
            <link>https://hasan-rayan.medium.com/why-graphql-apis-are-a-must-consider-for-businesses-in-2025-1771b868c5f0?source=rss-124ac08f6590------2</link>
            <guid isPermaLink="false">https://medium.com/p/1771b868c5f0</guid>
            <category><![CDATA[graphql-vs-rest]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[api-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[graphql]]></category>
            <dc:creator><![CDATA[Hasan Rayan]]></dc:creator>
            <pubDate>Wed, 18 Jun 2025 16:21:08 GMT</pubDate>
            <atom:updated>2025-06-18T16:22:32.309Z</atom:updated>
            <content:encoded><![CDATA[<p>As someone who has spent years transforming complex business needs into actionable technical solutions, I’ve seen firsthand the challenges that arise from inefficient APIs and rigid architectures. In today’s rapidly evolving digital landscape, businesses and startups need tools that empower them to innovate quickly, deliver exceptional user experiences, and scale with confidence. GraphQL, a technology that has steadily gained traction, is poised to become a cornerstone of API strategy in 2025. Here’s why I believe businesses should prioritise GraphQL APIs moving forward.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QfSvdTrlapUHmWKfK90zfQ.png" /></figure><h3>What is GraphQL?</h3><p>GraphQL is a query language for APIs. Developed by Facebook in 2012 and open-sourced in 2015, GraphQL provides a more flexible and efficient way for clients to interact with APIs. Unlike traditional approaches, it allows clients to request exactly the data they need, in the format they want, from a single endpoint. This eliminates the problem of over-fetching or under-fetching data and makes it easier to develop dynamic and responsive applications. I will explain this in more detail in the the example below.</p><h3>1. Flexibility and Cost Efficiency in Data Retrieval</h3><p>GraphQL allows clients to request exactly the data they need, eliminating the inefficiencies of over-fetching or under-fetching data common in REST APIs. For example, instead of making multiple requests to different endpoints, a single GraphQL query can retrieve all the required information. This efficiency is particularly valuable for startups with limited resources, enabling faster application development and better performance.</p><p>By minimising data transfer and reducing the need for redundant API calls, GraphQL lowers bandwidth consumption and server costs. For startups operating on tight budgets, this cost efficiency can make a significant difference while maintaining high-quality service delivery.</p><h3>2. Enhanced Developer Productivity</h3><p>GraphQL simplifies backend development by shifting much of the filtering and sorting logic to the frontend. Developers can rely on the GraphQL engine to handle queries dynamically, reducing the need for backend modifications when data requirements change. This enables backend teams to focus on core business logic while empowering frontend developers to iterate quickly, fostering collaboration and agility.</p><h3>3. Scalability for Complex Systems</h3><p>Businesses with intricate systems and diverse data sources benefit from GraphQL’s ability to unify data access. By acting as a single interface, GraphQL bridges disparate systems and simplifies integrations. This makes it easier to scale applications and incorporate new features without overhauling existing APIs. For startups anticipating growth, this scalability ensures long-term adaptability.</p><h3>4. Improved User Experience</h3><p>Modern users demand fast, seamless, and responsive applications. GraphQL’s ability to fetch only the necessary data reduces latency and improves application performance. This translates into a smoother user experience, which is critical for customer retention and satisfaction in competitive markets.</p><p>With <a href="https://hasan-rayan.medium.com/understanding-real-time-apis-a-practical-example-bb79216f37a3">the rise of real-time APIs</a>, GraphQL API’s support for subscriptions makes it easier to implement live updates. Whether it’s a chat application, stock market dashboard, or collaborative tool, GraphQL enables businesses to deliver interactive, real-time experiences with minimal effort.</p><h3>Example Use Case for SpaceX GraphQL API</h3><p>Imagine using SpaceX’s API to fetch detailed information about previous launches and rocket specifications in a single request. With REST APIs, this might require:</p><ul><li>Multiple API endpoints.</li><li>Redundant data fetching and complex backend logic.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/0*24wK80B5SAtAI32s" /><figcaption>REST API vs GraphQL API</figcaption></figure><p>With GraphQL, a single query retrieves all the necessary data:</p><pre>{<br>  launchesPast(limit: 10) {<br>    mission_name<br>    launch_date_local<br>    launch_site {<br>      site_name_long<br>    }<br>    links {<br>      article_link<br>      video_link<br>    }<br>    rocket {<br>      rocket_name<br>    }<br>  }<br>}</pre><p>The GraphQL request in the example is sent to a single endpoint: <a href="https://spacex-production.up.railway.app/">https://spacex-production.up.railway.app/</a></p><p>To explore and test this API yourself, you can use the provided Postman workspace: <a href="https://www.postman.com/orange-space-530580/workspace/space-x-graphql-api/request/17321872-8126f791-9459-40ed-b980-244615445aef?action=share&amp;creator=17321872&amp;ctx=documentation">SpaceX GraphQL API Postman Workspace</a>. This workspace provides an interactive way to execute queries, view responses, and understand how GraphQL enables precise and efficient data fetching.</p><p>This example demonstrates the power and efficiency of GraphQL APIs compared to traditional REST APIs. In this query, we request details about the past 10 launches, including the mission name, launch date, launch site, associated links, and rocket name, all in a well-structured and concise format.</p><p>Unlike REST APIs, fetching similar data would likely involve multiple endpoints (e.g., /launches, /launch_site, /links):</p><ol><li>/api/launches: a call to fetch the list of launches.</li><li>/api/launch_site: a call for each launch to retrieve details about each launch site.</li><li>/api/rockets: a call for each launch to gather information about the launch rocket.</li></ol><p>This approach results in over-fetching or under-fetching data since each REST endpoint typically returns fixed, predefined datasets. Moreover, combining the responses requires additional client-side logic to correlate the data from multiple endpoints, increasing complexity and potential latency.</p><p>In contrast, GraphQL allows you to request exactly the data needed from related resources in a single query, as shown in the example. This eliminates redundant data transfer, reduces the number of network requests, and provides a more streamlined approach to interacting with the API, significantly improving efficiency and developer productivity.</p><h3>Conclusion</h3><p>I genuinely see GraphQL as a game-changer in modern backend development. Its ability to fetch precisely the required data in a single query not only simplifies API design but also dramatically accelerates development workflows. I’m excited to explore its potential further and will soon share a technical article detailing how to set up a GraphQL API server using Python and Node.js. Stay tuned — there’s so much to unlock with this powerful technology!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1771b868c5f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Real-time APIs: A Practical Example]]></title>
            <link>https://hasan-rayan.medium.com/understanding-real-time-apis-a-practical-example-bb79216f37a3?source=rss-124ac08f6590------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb79216f37a3</guid>
            <category><![CDATA[api-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[real-time-api]]></category>
            <category><![CDATA[realtime-api]]></category>
            <category><![CDATA[websocket]]></category>
            <dc:creator><![CDATA[Hasan Rayan]]></dc:creator>
            <pubDate>Wed, 18 Jun 2025 16:16:52 GMT</pubDate>
            <atom:updated>2025-06-18T16:23:45.235Z</atom:updated>
            <content:encoded><![CDATA[<p>I first encountered the concept of Real-time APIs back in 2016, while developing a chat application for a client. The experience was nothing short of transformative. Watching messages, along with audio and video streams, appear instantaneously on users’ screens without refreshing the page left me amazed at how this technology could revolutionise web-based communication. Since then, I’ve been fascinated by the potential of real-time APIs and how they continue to evolve.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2EwBWKU62Qc93xA6onnSqQ.png" /></figure><p>Fast forward to today, the importance of real-time APIs has grown exponentially. <a href="https://openai.com/index/introducing-the-realtime-api/">OpenAI’s recent announcement of its new real-time API</a> underscores this trend, setting the stage for <a href="https://hasan-rayan.medium.com/apis-trends-to-watch-in-2025-15406a22f523">2025 to be a pivotal year for innovations in real-time technology</a>. Whether enabling live chat systems, collaborative editing tools, monitoring significant astronomical events such as <a href="https://www.space.com/solar-flares-effects-classification-formation">solar flares</a>, or stock market tracking applications, real-time APIs are becoming essential for delivering instantaneous, interactive, and dynamic experiences.</p><p>The increasing demand for applications that provide updates and responses in milliseconds underlines the importance of discussing real-time APIs. Unlike traditional request-response mechanisms, real-time APIs facilitate continuous, low-latency communication, unlocking potential across industries such as finance, astronomy, healthcare, gaming, and beyond.</p><h3>Traditional HTTP vs Real-time API</h3><p>To understand the advantages of real-time APIs, it’s helpful to compare them to traditional <a href="https://www.nylas.com/api-guide/types-of-apis/http-apis/">HTTP APIs</a>:</p><h3>HTTP API:</h3><ul><li>Connection Model: Request-Response (short-lived connections)</li><li>Communication Flow: Client initiates every request</li><li>Latency: Higher latency due to repeated handshakes</li><li>Use Cases: Suitable for static content (e.g., REST APIs)</li><li>Efficiency: Higher overhead due to connection setup for each request</li></ul><h3>Real-time API:</h3><ul><li>Connection Model: Persistent (long-lived connections)</li><li>Communication Flow: Bidirectional (client and server exchange messages)</li><li>Latency: Low latency with continuous connection</li><li>Use Cases: Ideal for dynamic content (e.g., live chats, gaming)</li><li>Efficiency: More efficient for frequent updates</li></ul><p>While HTTP communication remains a staple for many applications, the ability of real-time APIs to provide instantaneous updates makes them indispensable for scenarios requiring interactivity and immediacy.</p><h3>How Real-time APIs Work and Can Be Implemented</h3><p>Real-time APIs enable a seamless flow of data between clients (e.g., web or mobile apps) and servers without the client needing to explicitly request updates. This is achieved through persistent, low-latency connections.</p><p>This is a diagram I drafted for a real-time data system architecture, representing the flow of data from various producers through ingestion tools, preparation, and delivery to data stores and analytics engines. It starts with the data producers, which generate high-volume, time-sensitive data streams. I used ingestion tools to efficiently capture and transmit this data, ensuring minimal latency. After ingestion, the data undergoes preparation, including normalisation, obfuscation, flattening, filtering, and joining to make it consistent, secure, and ready for analysis. The processed data is stored in data stores designed for fast, reliable access. Finally, I incorporated analytics engines like ElasticSearch to consume and analyse the prepared data, enabling real-time insights that can drive timely decisions. This architecture allows for handling massive amounts of real-time data effectively, supporting dynamic, data-driven environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*71A4IaLGE0GgODPe" /><figcaption>Real-time Data System Architecture</figcaption></figure><p>Let’s assume that a real-time data system is in place. Implementing a real-time API typically involves the following steps:</p><ol><li>Establishing a Persistent Connection: Using <a href="https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API">WebSockets</a> or <a href="https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events">SSE</a> to maintain a continuous connection.</li><li>Event Handling: Designing the API to trigger events based on specific changes or actions. You can use a <a href="https://www.npmjs.com/package/ws">Node.js</a> or <a href="https://websockets.readthedocs.io/en/stable/">Python-based</a> server to develop the API backend.</li><li>Scalability Considerations: Managing concurrent connections, often with the help of load balancers or distributed systems.</li><li>Security: Ensuring encrypted communication (via <a href="https://developer.mozilla.org/en-US/docs/Web/Security/Transport_Layer_Security">TLS</a>) and implementing authentication (e.g., tokens).</li></ol><h3>An example of how to use a real-time API: Bitcoin Trade Tracker</h3><p>I wrote a code that connects to <a href="https://developers.binance.com/docs/binance-spot-api-docs/web-socket-streams">Binance’s WebSocket API</a> to receive real-time trade updates for the <a href="https://www.binance.com/en-AU/price/bitcoin">BTC/USDT</a> pair in a web page. Once the connection is successfully established, the page displays a message indicating the connection status. As new trade data comes in, I extract key details like the symbol, price, quantity, and timestamp of each trade and display them on the page in a specific &lt;div&gt;. If the connection is closed or an error occurs, the page updates to reflect the change in status. This allows me to monitor live market data in real-time. You can see this code in action on my <a href="https://codepen.io/thetufter/pen/wBwqYgj">CodePen.io pen</a>.</p><h4>bitcoin-trade-tracker.html:</h4><p><a href="https://codepen.io/thetufter/pen/wBwqYgj">Click here to test it</a></p><pre>&lt;html&gt;<br>&lt;body&gt;<br>&lt;h1&gt;Real-time API example with Binance WebSocket API&lt;/h1&gt;<br>&lt;div id=&quot;div-connection&quot;&gt;&lt;/div&gt;<br>&lt;div id=&quot;div-update&quot;&gt;&lt;/div&gt;<br>&lt;script&gt;<br>// Connect to Binance WebSocket API<br>const socket = new WebSocket(&#39;wss://stream.binance.com:9443/ws/btcusdt@trade&#39;); // Example for BTC/USDT trades<br><br>// Event: Connection established<br>socket.addEventListener(&#39;open&#39;, () =&gt; {<br>    document.getElementById(&quot;div-connection&quot;).innerHTML = &#39;Connected to the Binance WebSocket API&#39;;<br>});<br>// Event: Message received from the server<br>socket.addEventListener(&#39;message&#39;, (event) =&gt; {<br>    const data = JSON.parse(event.data);<br>    <br>    // Extract trade details<br>    const symbol = data.s;    // Symbol (e.g., BTCUSDT)<br>    const price = data.p;     // Price (e.g., 30000.10)<br>    const quantity = data.q;  // Quantity (e.g., 0.01)<br>    const timestamp = data.T; // Timestamp (e.g., 1612270186359)<br>    // Display trade info<br>    document.getElementById(&quot;div-update&quot;).innerHTML = `Trade Update - Symbol: ${symbol}, Price: ${price} USD, Quantity: ${quantity}, Timestamp: ${timestamp}&lt;br/&gt;` + document.getElementById(&quot;div-update&quot;).innerHTML;<br>});<br>// Event: Connection closed<br>socket.addEventListener(&#39;close&#39;, () =&gt; {<br>    document.getElementById(&quot;div-connection&quot;).innerHTML = &#39;Disconnected from the Binance WebSocket API&#39;;<br>});<br>// Event: Error handling<br>socket.addEventListener(&#39;error&#39;, (error) =&gt; {<br>    console.error(&#39;WebSocket error:&#39;, error);<br>});<br>&lt;/script&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;<br></pre><p>Real-time APIs are transforming how apps interact and deliver user experiences. With rapid growth and adoption, 2025 will be a key year for these technologies. They enable instant, interactive communication, making them essential for next-gen digital experiences.</p><p>Whether it’s live chat, stock tracking, or collaboration tools, I believe mastering real-time APIs is crucial to staying competitive. In fields like astronomy, they’re bridging the gap between observation and action in exciting new ways.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb79216f37a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Future of APIs: Trends to Watch in 2025]]></title>
            <link>https://hasan-rayan.medium.com/apis-trends-to-watch-in-2025-15406a22f523?source=rss-124ac08f6590------2</link>
            <guid isPermaLink="false">https://medium.com/p/15406a22f523</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[real-time-communication]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[api-development]]></category>
            <dc:creator><![CDATA[Hasan Rayan]]></dc:creator>
            <pubDate>Wed, 18 Jun 2025 16:12:07 GMT</pubDate>
            <atom:updated>2025-06-18T16:12:07.824Z</atom:updated>
            <content:encoded><![CDATA[<p>As we move through 2025, we’re witnessing fascinating developments that are actively shaping the API landscape. What started as predictions at the beginning of the year are now becoming reality, with clear trends emerging in how APIs are built, secured, and managed. In this article, I’ll revisit and reflect on some of the key advancements driving the API ecosystem in 2025.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5XXcbLxLB1OB2EYdtRneuA.png" /></figure><ol><li>Generative AI transforms API development</li><li>API standards and architectural styles</li><li>API security becomes a critical focus</li><li>Real-time communication APIs</li><li>API management evolution</li></ol><h3>1. Generative AI transforms API development</h3><p>The integration of generative AI is transforming how APIs are developed and utilised.</p><p>- AI-Powered Code Generation: Tools like GitHub Copilot assist developers by suggesting code snippets, streamlining the development process.</p><p>- Enhanced User Experiences: AI-driven APIs enable more intuitive and responsive applications, improving user engagement.</p><h3>2. API standards and architectural styles</h3><p>The API ecosystem is diversifying, with various standards and architectural styles coexisting to serve different use cases.</p><p>- GraphQL Adoption: GraphQL offers a flexible approach to querying APIs, allowing clients to request exactly the data they need. The keynote session “<a href="https://graphql.org/conf/2023/sessions/f485ec8e2dc60c435e8a3a90185d73bf/">Navigating the Future: GraphQL’s Expansion, AI Adoption, and Modern Languages</a>” explores GraphQL’s evolution through 2025, focusing on AI integration, adapting to modern programming languages, and evolving governance models to sustain its enterprise growth. The panel discusses the synergies between GraphQL and AI, as well as strategies for adapting to languages like Rust, Kotlin, and Swift.</p><p>- AsyncAPI for Event-Driven Architectures: AsyncAPI is gaining traction for documenting and managing asynchronous APIs, facilitating real-time communication.</p><h3>3. API security becomes a critical focus</h3><p>With the proliferation of APIs, ensuring their security has become paramount. Organisations are adopting advanced measures to protect their APIs from potential threats.</p><p>- Zero Trust Architecture: This <a href="https://www.forbes.com/councils/forbestechcouncil/2024/11/22/six-cybersecurity-trends-heating-up-in-2025/#:~:text=Implementing%20zero%2Dtrust%20principles%20gives,and%20lateral%20movement%20by%20cybercriminals.">approach</a> assumes no implicit trust for any entity and requires continuous authentication and authorisation for every API request.</p><p>- Automated Threat Detection: AI-powered monitoring systems are being explored to process API traffic in real time and detect potential threats.</p><h3>4. Real-time communication APIs</h3><p>The demand for real-time interactions is driving the adoption of event-driven APIs and real-time communication tools.</p><p>- WebSockets for Live Updates: WebSockets enable persistent connections, allowing for instant data transmission and live updates in applications. The traditional HTTP request-response model struggles with real-time functionality, as each update requires a separate request and response, causing delays. <a href="https://www.webcluesinfotech.com/implementing-real-time-features-in-web-applications-with-websockets/">WebSockets overcome these limitations</a> by establishing a persistent, low-latency, full-duplex connection, enabling instant data transmission and providing the seamless, real-time experiences users expect.</p><p>- Server-Sent Events (SSE): SSE offers a simple way to send real-time updates from the server to the client over HTTP. <a href="https://community.ibm.com/community/user/security/blogs/abishek-s/2024/11/28/power-of-server-sent-events">Abishek’s article</a> highlights the benefits of Server-Sent Events (SSE) for real-time applications, emphasising its simplicity, efficiency, scalability, and browser compatibility as an effective solution for delivering live data updates without the need for constant polling or complex WebSocket setups.</p><h3>5. API management evolution</h3><p>API management is evolving to meet the growing complexity and scale of modern applications.</p><p>- Decentralised API Management: <a href="https://traefik.io/blog/the-api-gateway-model-centralizing-control-in-complex-microservices-architectures/">Companies are moving away from monolithic API management</a> services towards more decentralised approaches. API gateways simplify service discovery, load balancing, and change management, making them essential for organisations dealing with large-scale microservice deployments. This model reduces redundancy, simplifies maintenance, and ensures consistent security practices across services.</p><p>- API as a Product: Organisations are treating APIs as products, focusing on developer experience, documentation, and monetisation strategies. <a href="https://apitoolkit.io/blog/api-as-a-product/#:~:text=API%2Das%2Da%2DProduct%20is%20a%20business%20strategy%20that,in%20building%20their%20own%20applications.">API-as-a-Product is a business strategy</a> that treats APIs as standalone products to generate revenue and drive business growth.</p><h3>API Evolution 2025</h3><p>Now that we’re well into 2025, the API landscape is clearly accelerating in exciting ways. Generative AI is no longer just a promise — it’s actively streamlining how we design and interact with APIs. We’re also seeing a healthy diversification of API standards and architectural styles, giving developers more flexibility than ever. Security has become non-negotiable, with more businesses prioritising robust API protection strategies. Real-time communication APIs continue to enhance live digital experiences, and API management tools are evolving to support greater scale and complexity. It’s an inspiring time to be building with APIs — what trends are you seeing in your own work?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15406a22f523" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>