<?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 Jorge Hermoso on Medium]]></title>
        <description><![CDATA[Stories by Jorge Hermoso on Medium]]></description>
        <link>https://medium.com/@hermosocloud?source=rss-efd9bf22085a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Jorge Hermoso on Medium</title>
            <link>https://medium.com/@hermosocloud?source=rss-efd9bf22085a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 00:45:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hermosocloud/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[Dead letter queue]]></title>
            <link>https://medium.com/@hermosocloud/dead-letter-queue-c5d61c45770a?source=rss-efd9bf22085a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5d61c45770a</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[transit-gateway]]></category>
            <category><![CDATA[horror]]></category>
            <dc:creator><![CDATA[Jorge Hermoso]]></dc:creator>
            <pubDate>Wed, 28 Oct 2026 16:30:51 GMT</pubDate>
            <atom:updated>2026-10-28T16:30:51.510Z</atom:updated>
            <content:encoded><![CDATA[<h4>Part 2: Dead end</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Rpq3bnZVPRLSUHrp" /><figcaption>Photo by <a href="https://unsplash.com/@muhmedelbank?utm_source=medium&amp;utm_medium=referral">Makeen M.Alaa</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>It began in the quiet hum of order. You had finally conquered the chaos of the early days. The accounts were separate realms, each governed by its own laws, each a sealed chamber of intent. The Private VPC was your sanctuary. Inside, the Application Council directed traffic with a serene, almost ritualistic precision. The ALB acted as the inner routing, whispering requests to the correct services, keeping the machinery humming without a wasted cycle. Above it stood the NLB, a sentinel guarding the static IPs like treasures locked in iron. One per availability zone, fixed and unchanging, a promise of permanence in a cloud built on flux. You watched it all from the console, feeling the weight of control settle over you. It was elegant. It was safe. The moat was deep, the walls were high, and for the first time, you heard only the echo of your own design.</p><p>Then came the hunger for reach. The Central Account, the great hub outside your walls, needed to speak to your citadel. You needed a line. A bridge. A way for the outside world to find your silent council.</p><h3>The Snare of the Green Console</h3><p>You sought the old ways. The False Prophet arrived on the wings of convenience. <em>VPC Peering.</em> It did not preach complexity. It offered a silver thread across the void. “Draw the line,” it whispered, “and they shall hear each other as one. No route tables to complicate it. No gateways to misconfigure. Just a direct pact between accounts.”</p><p>You drew the line. You sent the invitation. The other account accepted it. And the console glowed with the most dangerous color in the cloud: <em>Green</em>.</p><p>Everything looked active and good. The health of the peering connection was pristine. You felt the sigh of relief that precedes victory. You configured the Central Account’s publicly accessible NLB, pointing its target group toward the static IPs of your private NLB. You expected the cloud to breathe. Instead, it held its breath.</p><p>The horror was not a scream. It was the creeping cold of a green light lying. The request crossed the link, but the response had no route home. Your private realm held no path back to the hub’s CIDR. The console didn’t care. It couldn’t tell you. It just said “Active”. The health checks on the Central NLB began to fail. Targets went red. The herald shouted into a void that technically existed but had no way back. The green connection was not a bridge; it was a trapdoor.</p><p>You clawed at the configurations, and even when you found the missing route, you saw that the lie ran deeper. Peering is not transitive. Your private realms could never borrow the hub’s internet gateway or its NAT. Swapping a realm meant rebuilding the pact and editing routes on both sides. The False Prophet had lied, and the lie was meticulous. You were trapped in a design of your own drafting, where the green light was the only lie you trusted, and the missing route home was the silent executioner.</p><h3>The Weight of the Crown</h3><p>Then, the sky fractured.</p><p>The Transit Gateway did not whisper. It <em>loomed</em>. It was the silent weaver of realms, the nexus that demanded reverence. Where Peering demanded a route for every pair, the TGW kept a single ledger of them. You deployed it in the Central Network Account, not as a magic wand, but as a sovereign hub. You shared the crown across the account line, and the other side had to accept it. You attached your Private VPC, and still the ritual demanded more. You wired the route tables. You configured association, propagation, and policy. It was not magic; it was machinery.</p><p>And yet, it worked. The realm’s default route now pointed at the crown, and the crown pointed at the hub’s gateway. The central herald found its voice. The path cleared. The static IPs, fixed anchors in a shifting sea, were no longer stranded. The response flowed back. The cloud exhaled.</p><p>But with the return of the flow came the dread. The TGW was not a savior; it was a crown that pulled you into the center. One misconfigured static route, one blackhole entry applied too broadly, and the blast radius would swallow the realm. The TGW centralized your routing, yes, but it also centralized your risk. The hourly fees ticked like a metronome, and the per-GB tolls weighed on the ledger.</p><h3>The Single Hand</h3><p>And the miracle came, the one you had bought the crown for. A realm fell, and you unplugged it. A new one rose beneath the same addresses, and the herald never noticed. Flows still in flight stuttered for a heartbeat, but the herald never saw the void. You had never felt so powerful.</p><p>Then you looked at the route table, and understood what you now held. One internet gateway. One NAT. Every road in every realm, running through a single hand. The next mistake would not break a bridge. It would silence the whole kingdom at once, and it is yours.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5d61c45770a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dead Letter Queue]]></title>
            <link>https://medium.com/@hermosocloud/dead-letter-queue-be25c94dba0c?source=rss-efd9bf22085a------2</link>
            <guid isPermaLink="false">https://medium.com/p/be25c94dba0c</guid>
            <category><![CDATA[spooktober]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Jorge Hermoso]]></dc:creator>
            <pubDate>Tue, 20 Oct 2026 14:36:11 GMT</pubDate>
            <atom:updated>2026-10-20T14:36:11.297Z</atom:updated>
            <content:encoded><![CDATA[<h4>Part 1: The unclaimed</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SHVkAhJP9aCw8xGb" /><figcaption>Photo by <a href="https://unsplash.com/@kamilfeczko?utm_source=medium&amp;utm_medium=referral">Kamil Feczko</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>It began with a single instance. Easy to spin up. Easy to tame. We called it <em>simple </em>but infrastructure, like ivy, has a habit of climbing. Before the leaves could even form, the project had swallowed its own shadow. Dev. Test. Staging. Prod. Each a fractured realm, echoing with overlapping ghosts.</p><p>They were not deployed by policy. They were born of desperation and hope; of 16:55 deployments for that one ground-breaking feature that never completed, forgotten at 17:00 and left to fester like abandoned campsites. They were the personal S3 buckets and rogue API gateways with someone’s surname on it. The manual Lambda deployments that slipped past CI/CD. The resources that held no name, no namespace, no shepherd. They drifted through the cloud, shapeless and untagged, hoarding logs, consuming credits, hiding in the blind spots of console views.</p><p>Only when the wrong instance was deleted and the customer called, or when it was impossible to decide which serverless function was the correct one did we turn to the Oracles of the internet for guidance. Draped in synthetic authority, they chanted the liturgy: <em>“Praise the tags!” “For billing! For permission scoping!”</em> We tried. We really tried. But each service decides their allegiance to tags, and whether or not they shall obey them.</p><p>The true horror did not lie in the tagging itself. It lay in <em>permission scoping</em>.</p><p>We tried to weave permissions into the very fabric of the cloud, but the fabric was stitched from a thousand different body parts under one head. S3’s condition keys bled into IAM’s policy language. Resource ARNs twisted into API Gateway’s mismatched syntax. It was a Frankenstein’s monster of a cloud — a limb here, a nerve cluster there, held together by desperate glue and outdated best practices. Nothing aligned. Nothing obeyed. We sat back, breath shallow, trying to remember our original covenant: visibility + role separation + independent usage + cost report separation. But how could we bind the storm when the new engineer deployed a serverless function and simply… forgot to tag?</p><p>The untagged ones stirred. They pooled. They blurred. Billing reports fractured into Rorschach tests. Permissions granted to tenanted ghosts. Roles drowned in noise. The cloud was no longer a managed platform. It was a labyrinth of half-formed things, scratching at the walls of our own making, feeding on our confusion.</p><p>And in the silence, we realized: we were drowning in the unclaimed.</p><h4>The light in the darkness</h4><p>But then, a whisper from the archives. A truth so quiet it had been drowned out by the fog of tags: <em>AWS accounts do not cost.</em></p><p>Not a cent. Only the resources within them breathe life, and only life demands payment. We had been trying to cage a hurricane with paper talismans, when the architecture itself offered a vault.</p><p>The salvation was not in more tags. It was in <em>walls</em>.</p><p>One account per environment. Not just the sacred realms of Staging and Production, but the very playground — the developer’s testing ground, the soil where every experimental root took hold. Each a sealed vessel. Each a clean slate. If the billing specters rose beyond the approved threshold, we could do what we had feared to do: we could walk in, and send the account to oblivion (remember the grave has a waiting period of 90 days). Or, with surgical precision, carve away the rogue resources. No contagion. No bleed.</p><p>We mapped the shadows into Organizational Units. One OU per project, or per environment (let‘s debate the geometry of the domains on a different occasion). Beneath each OU, the accounts stood like sentinels. SCP policies became our iron wards, severing access to the expensive, the dangerous, the unproven. IAM Identity Center was forged to walk across accounts, carrying identity but never crossing the boundaries. The shared RDS instance? A dedicated shared resources account, a vault built for all. The contractor’s temporary frontend? A fresh account, born with them, vanished when they departed.</p><p>One account. One purpose. One account per goal.</p><p>I could list the virtues of this approach until the sky turns black. Each benefit a chapter unto itself. But those are different stories.</p><p>There is a cost, and it is a transparent one. Every account you create brings its own oversight mechanisms. Control Tower deploys its auditing tools — Config, CloudTrail, and event logging — within each one, and each of these mechanisms generates a charge. Your total cost increases with every account you add.</p><p>But there is a second cost, one you incur by choice. Do not assign a separate public VPC to every account, complete with an Internet Gateway and NAT Gateways that consume resources hour after hour. Do not assign each one its own RDS instance, running in isolation, hidden away. These are ghosts of your own creation, resources you pay for repeatedly, even though no one needs them. A private VPC in each account connected to a shared-resources account that manages Internet egress or the database, performs the same function at a fraction of the cost.</p><p>We stopped trying to label the storm. We built the dam.</p><p>The cloud does not fear names. It respects boundaries. Step forward. Claim the ground. Forge the accounts. Wield the policies. Let the untagged ghosts fade into the dark where they belong.</p><p>The architecture is no longer a monster. It is a kingdom. And we hold the keys.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be25c94dba0c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Authenticated Web App in AWS Lambda]]></title>
            <link>https://medium.com/@hermosocloud/authenticated-web-app-in-aws-lambda-757dd16657fb?source=rss-efd9bf22085a------2</link>
            <guid isPermaLink="false">https://medium.com/p/757dd16657fb</guid>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[extreme-programming]]></category>
            <category><![CDATA[entra-id]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Jorge Hermoso]]></dc:creator>
            <pubDate>Mon, 12 Oct 2026 15:06:01 GMT</pubDate>
            <atom:updated>2026-10-12T15:06:01.519Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NA9JEE58Y1kUzsl2" /><figcaption>Photo by <a href="https://unsplash.com/@cubicroot?utm_source=medium&amp;utm_medium=referral">cubicroot XYZ</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>There are always those projects that you want to implement but the right opportunity never comes along. Until it does, kind of. Abusing AWS Lambda to host a web app was something I always wanted to try but just serving a simple static website was not going to scratch the itch so I waited until something showed up. It was an internal application, only for developers, to easily explore the log files uploaded to S3. And it had the four requirements that matched my wish list:</p><ul><li>Simple frontend</li><li>AWS service in the backend</li><li>Authenticated backend access</li><li>Sparse usage</li></ul><p>To make the situation even better our team had just agreed, after a lot of pushing from yours truly, to do an XP (eXtreme Programming) sprint with whatever backlog tasks we wanted to prioritise.</p><h4>The frontend</h4><p>The frontend needed to be small and lightweight, and ideally easy to navigate once deployed to ease debugging, vanilla JavaScript to the rescue here. Esbuild will still be used to add any dependencies to the deployment, the output will be bundled into the backend build.</p><h4>The backend</h4><p>Again a typical JavaScript lambda handler. To keep it lean this api server is not going to run any express library or the likes, we keep it tiny. A manual handler to do 4 things:</p><ul><li>on /index.html return the index.html page</li></ul><pre>const html = fs.readFileSync(&#39;./index.html&#39;);<br>response = {<br>    statusCode: 200,<br>    body: html.toString(),<br>    headers: { &#39;Content-Type&#39;: &#39;text/html&#39; },<br>};</pre><ul><li>on /script.js return the bundled JavaScript for the frontend</li></ul><pre>const js = fs.readFileSync(&#39;./script.js&#39;);<br>response = {<br>    statusCode: 200,<br>    body: js.toString(),<br>    headers: { &#39;Content-Type&#39;: &#39;text/javascript&#39; },<br>};</pre><ul><li>on /api without query parameters return a list of allowed buckets to explore This is a hardcoded list within the lambda code itself.</li></ul><pre>response = {<br>    statusCode: 200,<br>    body: JSON.stringify(buckets),<br>    headers: { &#39;Content-Type&#39;: &#39;application/json&#39; },<br>};</pre><ul><li>on /api with a valid bucket as query parameter return a list of files for that bucket. This endpoint can be slow as it iterates through all the pages. We simplified enormously here because with our data we were never going to hit the 6 MB response limit and timeout from lambda.</li></ul><pre>const getPaginatedList = (bucket, continuationToken = undefined) =&gt; {<br>    const command = new ListObjectsV2Command({<br>      Bucket: bucket,<br>      ContinuationToken: continuationToken,<br>    });<br>    return client.send(command).then(items =&gt; {<br>      if (items.IsTruncated) {<br>        console.log(&#39;Paginated&#39;);<br>        return getPaginatedList(bucket, items.NextContinuationToken).then(<br>          newItems =&gt; [...items.Contents, ...newItems]<br>        );<br>      } else {<br>        return items.Contents;<br>      }<br>    });<br>  };</pre><ul><li>on /api with a valid bucket and file key as query parameters return a presigned url to download the file</li></ul><pre>const command = new GetObjectCommand({ Bucket: bucket, Key: file });<br>const url = await getSignedUrl(client, command, { expiresIn: 300 });<br>response = {<br>    statusCode: 200,<br>    body: url,<br>    expiresIn: 300,<br>};</pre><p>Very naive implementation for a simple application. But it needs to be secured.</p><h4>Authentication</h4><p>For authentication we chose our organization Entra ID. We already had deployed internal applications leveraging Entra ID with the authentication built into the browser, or using Cognito, but not yet directly embedded in the backend.</p><p>For the frontend we used the ‘<a href="http://twitter.com/azure/msal-browser">@azure/msal-browser</a>’ package, straightforward to implement, the user gets a nice Microsoft login modal, nothing interesting here.</p><p>For the backend we used the JWKS client from ‘jwks-rsa’ package to retrieve signing keys from the Microsoft JWKS endpoint and the ‘jsonwebtoken’ package to decode and verify the token.</p><pre>const authenticate = token =&gt;<br>  new Promise(resolve =&gt; {<br>    const decoded = jsonwebtoken.decode(token, { complete: true });<br><br>    const verifyOptions = {<br>      algorithms: [&#39;RS256&#39;],<br>      audience: applicationID,<br>      issuer: `https://login.microsoftonline.com/${tenantID}/v2.0`,<br>    };<br><br>    const client = jwksClient({<br>      jwksUri: &#39;https://login.microsoftonline.com/common/discovery/keys&#39;,<br>    });<br><br>    const getKey = (header, callback) =&gt; {<br>      client.getSigningKey(header.kid, (err, key) =&gt; {<br>        if (err) {<br>          callback(err, null);<br>        } else {<br>          const signingKey = key.publicKey || key.rsaPublicKey;<br>          callback(null, signingKey);<br>        }<br>      });<br>    };<br>    jsonwebtoken.verify(token, getKey, verifyOptions, function (err, decoded) {<br>      if (<br>        err ||<br>        decoded.aud !== applicationID ||<br>        decoded.tid !== tenantID ||<br>        decoded.iss !== `https://login.microsoftonline.com/${tenantID}/v2.0` ||<br>        !decoded.roles ||<br>        !decoded.roles.includes(&#39;browse&#39;) ||<br>        decoded.exp &lt; Math.round(Date.now() / 1000)<br>      ) {<br>        resolve(false);<br>        return;<br>      }<br>      resolve(true);<br>    });<br>  });</pre><p>There are a few issues with the code, alright. Some of them related to the fact that this is a serverless function (i.e. creating a JWKS client for every call), others more generic (like dealing with malformed tokens) we overlooked them for our first implementation. And the result worked!</p><h4>Building and debugging</h4><p>Using esbuild is quite straightforward.</p><pre>&quot;scripts&quot;: {<br>    &quot;dev&quot;: &quot;esbuild index.js --bundle --outfile=dist/index.js --loader:.html=text --watch --servedir=dist &amp;&amp; cp index.html dist/&quot;,<br>    &quot;build&quot;: &quot;esbuild index.js --bundle --outfile=dist/script.js --loader:.html=text &amp;&amp; esbuild backend/index.js --external:@aws* --bundle --platform=node --outfile=dist/index.js &amp;&amp; cp index.html dist&quot;<br> },</pre><h4>Final touches</h4><p>Create the Entra ID application and copy the necessary information to plug in the serverless application: applicationID and tenantID. Configure the logout URL on the Entra side. <br>To keep it simple the first deployment use the AWS Lambda function URLs, you should be getting started in no time.<br>And last but not least, review the code, this implementation is a couple of years old, and some of the packages have been updated since.</p><h4>Conclusion</h4><p>It can be done! AWS Lambda can be fully used as a webhosting platform, obviously it is not the right call for 99% of cases, but if you don’t have a kubernetes cluster with KEDA or similar, and you have a barely used application, you might consider this as an option. <br>It is very rewarding to be able to build something different in less than a week, from idea to implementation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=757dd16657fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Prototype on OpenRouter, Ship on the “Big 3”]]></title>
            <link>https://medium.com/@hermosocloud/prototype-on-openrouter-ship-on-the-big-3-3a9e8dd714c6?source=rss-efd9bf22085a------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a9e8dd714c6</guid>
            <category><![CDATA[amazon-bedrock]]></category>
            <category><![CDATA[open-router]]></category>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Jorge Hermoso]]></dc:creator>
            <pubDate>Mon, 05 Oct 2026 15:16:01 GMT</pubDate>
            <atom:updated>2026-10-05T18:20:51.359Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CUATaZ_tfBldw7w0" /><figcaption>Photo by <a href="https://unsplash.com/@edo_bor?utm_source=medium&amp;utm_medium=referral">Edoardo Bortoli</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>A little over a month ago, in August, it was announced the acquisition of OpenRouter by Stripe. Past my initial confusion, and after reading how both companies are built on a similar idea (provider aggregation), I was still puzzled. Not because the”why” of the $7 billion operation, but for how big OpenRouter has become. The idea behind it is simple and effective: buy prepaid credits (a bit like an old SIM card) and use any model offered with a common interface. It is convenient. I have used it. But I fail to see it as anything beyond the hobbyist , the prototyper.</p><h4>Know your model</h4><p>The idea of sharing an interface to communicate with different models is a great way to avoid vendor lock-in, or it would be, if models were truly interchangeable. But, are they? Those who have developed an AI application know the importance of prompting and how it needs tailoring to the model. There are <a href="https://www.oreilly.com/library/view/prompt-engineering-for/9781098153427/">books</a> written about it. Articles are starting to appear about how prompting is dead due to how smart models are becoming, but the main players still write essay long customised prompts for their models agents as you can see <a href="https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools">here</a>. Of course, the prompt could be stored in a map keyed by model, but then so the client used to interact with it. For a first research phase I can see the value, but that does not fully explain the volume.</p><p>Others point to reasons that might. Menlo Ventures, an investor, <a href="https://menlovc.com/perspective/stripe-to-acquire-openrouter-why-everyone-is-obsessed-with-model-routing/">cites</a> more than 500 models across more than 80 providers and 10 million users. It also says big new models often launch on OpenRouter first. Day-one access, failover and routing on price are real draws. But they serve experimentation and cost optimisation, which is exactly the hobbyist-to-prototype phase I described, not what makes an application enterprise-grade.</p><h4>Control the path</h4><p>The OpenRouter routing solution is a great addition, but by leveraging such smart model selection and the experts panel, an extra variant is added to the application. Assuming it all works well, now you are back to the vendor lock-in, this time with OpenRouter. If the application is not refined enough to not need this kind of support, it means that it could be better.</p><p>Just to be clear, vendor lock-in is not necessarily bad, and that’s the point.</p><h4>One bill, but not the whole bill</h4><p>Unified billing is obviously a key offering. Maybe the application uses different models from different providers to fulfil different agentic roles, and yet, at the end of the day you only have one bill. But OpenRouter is not the only one offering this, neither the one offering the most complete implementation. Yes, the main providers are there, but it stops in the model. Memory systems, batch api jobs, fine-tuning and so are not part of the offering, so most AI applications still need more service providers to be complete.</p><h4>Your data your rules</h4><p>OpenRouter is only a broker, that means that the final request goes to whatever provider infrastructure that serves your model. OpenRouter only stores your prompt and response if you opt in (with a 1% discount). It also offers features like ZDR (zero data retention) to ensure that you can keep your data private by only choosing providers who won’t store your data. The data however ends up in the big AI players infrastructure, and the privacy guarantee is their promise. There are reasons to be <a href="https://hai.stanford.edu/news/be-careful-what-you-tell-your-ai-chatbot">skeptical</a> about this, depending on the application the risk might be low.<br>The legal side is thinner. OpenRouter’s terms have the user defend and indemnify OpenRouter, and I found nothing in which OpenRouter indemnifies you against IP claims. A mutually signed Data Processing Agreement is available only to enterprise-tier customers, and as far as I can tell OpenRouter does not publish a HIPAA Business Associate Agreement.</p><h4>The alternative</h4><p>For enterprise-grade AI applications that need to survive after the hype and that are treated the same way as “old-school” deliverables, cloud providers do a bit of extra work. AWS, Azure and GCP address, with their AI platforms (Bedrock, Vertex AI and Microsoft Foundry), the shortcomings above. The model list will not be as generous, and models take longer to arrive after launch, but that is for a good reason: every model served is guaranteed to respect their security standards and user data does not leave their infrastructure, or the selected region if willing to use regional endpoints (with a potential added cost).</p><p>This allows them to offer a level of enterprise service that OpenRouter cannot match. Billing is unified, not only for tokens but for any other resource you might need (like logging, serverless functions and API gateways) and they provide everything to build a successful AI application (RAG, custom guardrails, agent policies, etc).</p><p>For a similar token price everyone can get enterprise treatment regardless of how big the AI application is. Even for personal AI assistance, anyone can benefit from it. Knowing this, what would you recommend to your customers, and what would you choose?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a9e8dd714c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Flink to Lambda]]></title>
            <link>https://medium.com/@hermosocloud/from-flink-to-lambda-b80f9e9e9720?source=rss-efd9bf22085a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b80f9e9e9720</guid>
            <category><![CDATA[apache-flink]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Jorge Hermoso]]></dc:creator>
            <pubDate>Mon, 28 Sep 2026 15:22:01 GMT</pubDate>
            <atom:updated>2026-09-28T15:22:01.812Z</atom:updated>
            <content:encoded><![CDATA[<p>IoT devices stream data but the value of it is only determined by the processing pipeline after it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uN_rCx8Z9XQOF_Wd" /><figcaption>Photo by <a href="https://unsplash.com/@zuzannaj?utm_source=medium&amp;utm_medium=referral">Zuzanna J</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>There was a project a few years back that consumed IoT devices data using AWS Glue to perform scheduled ETL jobs on the data stored in S3. The situation was not great, there was barely any data to process, the update rate was once per hour and yet the bill for the Glue Spark ETL represented 90% of the cloud infrastructure operational costs!</p><h4>Mastering Flink</h4><p>Luckily, one year before, AWS had introduced support for Apache Flink in Kinesis Analytics which made our decision clear at that point, ditch a complex multistep pipeline in favour of a real time processing solution that reduced the costs to a tenth (at the given data volume).<br>Setting up the Flink application was a very interesting task. Our data was not windowed by time which meant we had to develop a custom windowing solutions, which was a nice way to dive into the documentation. To make it more interesting the data stream was not continuous and the windowing had to take that into consideration which also meant developing the custom watermarking, out of order management and timeout logic for our window system. It was a very enjoyable adventure to work in such a solution and it ended working so well that we ditched it one year later.</p><h4>Abandoning Flink</h4><p>This might sound crazy, right? The thing is, AWS had updated Lambda with tumbling windows, and we were so caught in the development inertia that we did not hesitate to keep iterating into the new solution, fully serverless. We knew and understood the flow precisely and only because of everything we had learned with Flink were we able to immediately migrate to lambda. I must say that the requirements had slightly changed; the first releases had shown us that Flink was extremely good doing its real time job but the batch re-processing was painful (for our application). Our expectation was a one time setup that would serve to process the data as it was being collected but the final users needed the option to issue corrections in certain processing parameters and then re-process the whole batch. The logic to connect Flink’s batch processing to our API and wait for the results was good but not responsive enough and it was at that particular point in the iteration cycle (when we understood what users wanted now that real time processing was actually real time) that AWS brought the lambda tumbling window.</p><h4>The final architecture</h4><p>The tumbling window allowed us to port the two pipelines running in our Flink processor (a windowed in time stream and a second one windowed in a custom feature) without breaking a sweat. The improvement were immediate:</p><ul><li><strong>Simplified structure:</strong> No more Kinesis analytics, pipeline to compile java or bucket to host it</li><li><strong>100x cost reduction: </strong>Compared with the initial Glue implementation</li><li><strong>Shared Type Definitions:</strong> Writing our Lambda functions in TypeScript allowed us to share type libraries directly between our backend processing and front-end Web application.</li></ul><h4>Lessons learned</h4><p>This obviously doesn’t have to be the right solution for everyone but it was for that particular project. Flink has proven useful many more times and there is no replacement in what it can do and how it does it.</p><p>Iterative development means not to be attached to what you have created and instead use it as a stepping stone for the next improvement. I think every developer will agree that looking at old code is rarely satisfying and, don’t get me wrong, I’m not advocating for some sort of perfectionism that lasts forever never delivering the product. On the contrary, the product needs to get out of the door as soon as possible and the development team needs to have the trust from the product owners to take (controlled) risks. Then and only then will the team be at the right place at the right time, ready to take advantage of the new technologies continuously being released.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b80f9e9e9720" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“System One” Detectives]]></title>
            <link>https://medium.com/@hermosocloud/system-one-detectives-67a398a6d2ad?source=rss-efd9bf22085a------2</link>
            <guid isPermaLink="false">https://medium.com/p/67a398a6d2ad</guid>
            <category><![CDATA[laya]]></category>
            <category><![CDATA[typesafe-ai]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Jorge Hermoso]]></dc:creator>
            <pubDate>Wed, 23 Sep 2026 09:24:40 GMT</pubDate>
            <atom:updated>2026-09-23T09:35:44.597Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DYBYpT5R22CP8h_I" /><figcaption>Photo by <a href="https://unsplash.com/@mediamodifier?utm_source=medium&amp;utm_medium=referral">Mediamodifier</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><a href="https://typesafe.ai/">TypeSafe.ai</a> launched Jev last week and my feed has been busy announcing it as the next big thing. Their case is clear, a “System One” model that does not generate text and only makes decisions returning back their probabilities as the early days of LLMs. It is quick, cheap and structured by design with no hallucinations. As a result it presents a clear alternative to traditional LLMs paired with custom classification heads.<br>The use cases are still growing but most the most popular a week in are spam and support ticket classification. I wanted to give it a go and my first instinct was anomaly detection, unfortunately this is not supported and my and my attempts to overcome its limitations — such as unreliable counting, treating dates as unordered text, and dropping accuracy when unrelated content expands the prompt — by converting pre-computed trend indicators into state prompts were unfruitful.</p><p>The next step was game theory problems which were alright and Jev performed well but there’s only so much that can be done without adding numbers and quantities. Then I tried something more interesting: murder mysteries! It was great to assess the capabilities and it quickly got my interest. I started using public mysteries, and Jev would correctly guess the guilty person without even receiving the whole set of data. Then I started writing new mysteries trying to be more sneaky and finally, as my imagination ran dry, I asked Claude to help me build a small test set of murder-mystery scenarios, structured in stages, to judge the detective capacities of Jev and <a href="https://huggingface.co/convaiinnovations/laya">Laya</a> (an open-weight community clone built on a ModernBERT-large encoder).</p><p><strong>The setup</strong></p><p>Each case starts with a weak, single clue and layers in more information stage by stage. Some stages add real evidentiary weight (a motive combined with a method, an alibi that should overturn a lead), some add pure distractor text (irrelevant trivia about an uninvolved suspect), and some test whether the model can handle negation (an evidenced alibi vs. a bare, unsupported “I didn’t do it”). Cases can be found in <a href="https://gist.github.com/jorge-hermoso/f0e06c35a25a0a5fa0ba744760b26b8b">this gist</a>.</p><p><strong>Findings</strong></p><ul><li>Jev correctly identified 13 out of 17 cases, while Laya only identified 8 of them.</li><li>Adding an “unclear” option significantly improved Jev’s calibration. Without it, the model displayed far higher confidence than the evidence warranted.</li><li>Jev correctly overrode an “obvious suspect” once the real evidence pointed elsewhere and held that conclusion even when irrelevant distractor text about the other suspects was added.</li><li>It appropriately dropped confidence from near-certain to “unclear” when given a solid, evidenced alibi, only after removing timestamps and numbers from the evidence, since Jev is documented as unable to do date/time arithmetic.</li><li>It showed a genuine confidence jump when two facts combined to implicate a suspect that neither fact alone would.</li><li>Laya, tested on the identical cases, struggled with almost all of this. It flipped its correct answer to the wrong suspect purely because that suspect’s name appeared more often in the text, and it repeatedly failed to lower confidence even when I added evidence that should have cleared someone.</li><li>Both models failed the same control test: an unsupported claim of innocence with zero corroborating evidence. Jev over-trusted it and dropped its confidence to zero anyway; Laya essentially ignored it. Neither seemed to weigh a claim by how well-supported it actually was.</li><li>Neither model handled clean elimination logic well. When an airtight alibi for one of three equally likely suspects was given it was expected that the remaining suspects would absorb the confidence. Jev correctly cleared the alibied suspect but dumped the freed probability into “unclear” instead of redistributing it. Laya barely cleared the suspect at all.</li></ul><p><strong>Where I finished</strong></p><p>Jev is doing more than simple pattern completion; several test cases required reasoning that a surface-level classifier would miss, and Laya’s failure on the same cases is a useful contrast. But it’s not doing full deductive reasoning either. It seems to be good at weighing single strong reframings and noticeably worse at elimination across multiple facts at once, and it doesn’t distinguish an evidenced claim from an assertion the way you’d want a reliable decision layer to.</p><p>None of this is a formal benchmark but it was a great way to get to know Jev and Laya. I will surely keep researching more uses in our workflows but so far the great value from Jev is the simplicity it brings on using frontier models: no cost anxiety during dataset evaluation (1 cent for an afternoon of experiments), rapid inference, and structured outputs that make application development truly enjoyable.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67a398a6d2ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>