<?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 László Tóth on Medium]]></title>
        <description><![CDATA[Stories by László Tóth on Medium]]></description>
        <link>https://medium.com/@tothl74?source=rss-c316992b7870------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*kk1zL71_5vaBGtcR</url>
            <title>Stories by László Tóth on Medium</title>
            <link>https://medium.com/@tothl74?source=rss-c316992b7870------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 20:16:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tothl74/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 Multi-Tenant WordPress Trap: Why In-Account Deployment Automation Matters]]></title>
            <link>https://medium.com/@tothl74/the-multi-tenant-wordpress-trap-why-in-account-deployment-automation-matters-2ba53ba8ec4f?source=rss-c316992b7870------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ba53ba8ec4f</guid>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[cloud-architecture]]></category>
            <category><![CDATA[enterprise-software]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[László Tóth]]></dc:creator>
            <pubDate>Thu, 02 Jul 2026 11:10:18 GMT</pubDate>
            <atom:updated>2026-07-02T11:10:18.202Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="WP Suite architecture illustration showing WordPress as the content layer and AWS as the runtime layer for identity, AI, workflows, and protected delivery." src="https://cdn-images-1.medium.com/max/1024/1*w2FZuHj8bs0JBL_VN39B1Q.png" /></figure><p>For a long time, scaling WordPress has meant choosing between two imperfect models.</p><p>You could move everything into a managed WordPress platform and let the vendor own most of the operational complexity.</p><p>Or you could keep control by building your own AWS stack with EC2, RDS, CloudFront, S3, Lambda, WAF, Cognito, SES, DynamoDB, Bedrock, and a lot of custom glue.</p><p>Both models are valid. Both solve real problems. But neither one is ideal for every agency or enterprise team.</p><p>The first model is convenient, but the customer does not own the runtime boundary in the same way. The second model gives control, but it often becomes a pile of one-off infrastructure decisions that are difficult to repeat across client projects.</p><p>There is a third model:</p><blockquote><em>Keep WordPress as the editorial layer. Move selected runtime responsibilities into the customer’s own AWS account through repeatable deployment automation.</em></blockquote><p>WP Suite’s <a href="https://aws.amazon.com/marketplace/pp/prodview-db6r5h44kydsa">Agency Subscription is now available on AWS Marketplace</a>. The next step is Deployment Access, a guided deployment path for selected backend components.</p><p>For a broader comparison of the operating models, I also wrote this technical comparison: <a href="https://wpsuite.io/compare/enterprise-wordpress-aws-marketplace/">Enterprise WordPress on AWS Marketplace: managed hosting, control panels or in-account deployment automation?</a></p><h3>The problem is not WordPress</h3><p>WordPress is still excellent at what it was designed for.</p><p>Editors know it. Agencies know it. Marketing teams can move fast with it. It has a huge ecosystem and a familiar publishing workflow.</p><p>The problem starts when WordPress is asked to own too many runtime responsibilities at once.</p><p>Authentication. Enterprise SSO. AI chatbots. Knowledge base search. Form workflow state. Protected static delivery. Edge authorization. API access control. Bot protection. Email workflows.</p><p>You can put all of that into WordPress PHP, but for many enterprise projects, that is not the cleanest boundary.</p><h3>Managed hosting solves one problem and creates another</h3><p>Managed WordPress platforms are very useful. They remove server management. They improve reliability for many teams. They make procurement easier when they are available on a marketplace.</p><p>But the managed-hosting model usually means that important operational details live in the vendor’s environment. That can be fine for a normal marketing website. It becomes more complicated when the customer needs direct control over IAM roles, WAF rules, VPC design, encryption policies, API security, audit boundaries or data residency assumptions.</p><p>For regulated or security-conscious clients, the question is often not only:</p><blockquote><em>Does the platform work?</em></blockquote><p>It is also:</p><blockquote><em>Where does the runtime live, and who controls the boundary?</em></blockquote><h3>Classic control panels solve control, but not architecture</h3><p>The other route is to keep everything in your own AWS account and run a traditional hosting panel or a hand-built stack. That gives more control, but it also brings operational weight.</p><p>A control panel is good at accounts, domains, databases, files, DNS and email. It is not necessarily designed around modern WordPress integration layers like Cognito-backed login, Bedrock-powered knowledge search, EventBridge-driven workflows or CloudFront protected static delivery.</p><p>So agencies end up rebuilding the same patterns again and again.</p><p>One client gets a custom Cognito setup. Another gets a custom form backend. Another gets a static publishing pipeline. Another gets a chatbot connected to an S3 knowledge base.</p><p>Technically, it works. Operationally, it becomes hard to standardize.</p><h3>The control plane / runtime plane split</h3><p>The more interesting model is to separate two things:</p><ul><li>the control plane handles subscription, licensing, site registration, deployment sessions and the agency dashboard;</li><li>the runtime plane runs inside the buyer’s AWS account.</li></ul><p>That runtime can include the pieces that should be close to the customer’s security boundary:</p><ul><li>identity and SSO,</li><li>AI and knowledge search,</li><li>form submissions and workflows,</li><li>static publishing,</li><li>protected CloudFront/S3 delivery,</li><li>WAF and reCAPTCHA protection,</li><li>IAM/Cognito authorization,</li><li>logs, buckets, tables and API endpoints.</li></ul><p>This is the direction we are taking with <a href="https://wpsuite.io/">WP Suite</a>.</p><h3>The four runtime layers</h3><p>The important point is that this is not only about login or only about AI.</p><p>For us, WP Suite has four runtime layers.</p><h3>1. Identity: Gatey</h3><p><a href="https://wpsuite.io/gatey/">Gatey</a> connects WordPress with Amazon Cognito.</p><p>The goal is to move login, registration, SSO, MFA and token-based access control away from WordPress PHP and into a proper identity service.</p><p>That matters for dynamic WordPress sites, but it matters even more when the frontend is static or protected at the edge.</p><h3>2. AI: AI-Kit</h3><p><a href="https://wpsuite.io/ai-kit/">AI-Kit</a> starts local-first, with on-device AI where supported.</p><p>For more advanced use cases, it can connect to a backend deployed into AWS. That backend can support chat, DocSearch, knowledge base retrieval, Bedrock model access and optional guardrails.</p><p>This is the difference between adding a generic chatbot script and building an AI layer that can be part of the customer’s own architecture.</p><h3>3. Workflows: Flow</h3><p><a href="https://wpsuite.io/flow/">Flow</a> is the business-process layer.</p><p>Forms are not just contact forms. In enterprise sites, they often become intake workflows, lead routing, support requests, ticketing-style state, approval flows, notifications and CRM handoffs.</p><p>That does not have to live inside WordPress tables.</p><p>A Flow backend can use API Gateway, Lambda, DynamoDB, EventBridge, SES, S3 and signed webhook patterns. WordPress remains the form-building and editorial interface, while the workflow runtime becomes cloud-native.</p><h3>4. Publishing and protected delivery: Static Publisher + Static Site Guardian</h3><p><a href="https://wpsuite.io/static-publisher/">Static Publisher</a> handles the publishing side: turning WordPress output into a static site pipeline.</p><p>Static Site Guardian handles the protected delivery side: CloudFront, S3, signed cookies, protected path rules, Cognito JWT validation and edge request protection.</p><p>Together, they make an important point: <strong>a WordPress site does not always need to be served by WordPress at runtime</strong>.</p><p>For many agency and enterprise projects, WordPress can be the editing system, while CloudFront and S3 serve the public site. Protected areas can still exist through Cognito and edge authorization.</p><h3>Why AWS Marketplace matters</h3><p>AWS Marketplace is not only a place to list software. For many enterprise buyers, it is part of the procurement workflow.</p><p>A marketplace subscription can reduce vendor onboarding friction, consolidate billing and fit better into existing cloud purchasing processes.</p><p>But procurement alone is not the full story. The more interesting part is what happens after purchase:</p><ul><li>if the software only creates another external SaaS dependency, the architecture stays mostly the same;</li><li>if the purchase can lead into a guided deployment inside the buyer’s AWS account, the ownership model changes.</li></ul><p>That is the real reason Deployment Access matters.</p><figure><img alt="Deployment Access diagram showing AWS Marketplace Quick Launch, a buyer AWS account root CloudFormation stack, WP Suite backend validation, a buyer-owned S3 staging bucket and conditional nested stacks." src="https://cdn-images-1.medium.com/max/1024/1*SxG-p3CUIqK0_tfNpzuZFQ.png" /><figcaption>Deployment Access is designed to connect Marketplace procurement with buyer-account CloudFormation deployment.</figcaption></figure><h3>What this model is good for</h3><p>This model is not for every WordPress project:</p><ul><li>if you run a small brochure site and want someone else to manage everything, a managed WordPress host is probably simpler;</li><li>if you are a traditional hosting company, a mature control panel may still be the right operational tool.</li></ul><p>But if you are an agency or enterprise team managing many WordPress projects with stricter requirements, the model becomes attractive:</p><ul><li>the editor experience stays in WordPress,</li><li>the agency gets a repeatable platform,</li><li>the customer can keep runtime resources in its AWS account,</li><li>identity, AI, workflows and protected delivery can be standardized,</li><li>procurement can happen through AWS Marketplace.</li></ul><h3>The trade-off</h3><p>There is still a trade-off.</p><p>Buyer-owned infrastructure means the buyer or agency must care about architecture. It is not “zero responsibility.” AWS resources still need monitoring, cost awareness, IAM design, logging, backups and operational ownership.</p><p>But that is exactly the point! Some customers do not want to outsource the entire boundary. They want a guided path to own it. That is the gap we are trying to close.</p><p>WordPress should not have to become a monolithic runtime for everything, and enterprise WordPress should not always mean moving into a closed hosting sandbox.</p><p>A better pattern is possible:</p><blockquote><em>WordPress for content. AWS for runtime. WP Suite as the bridge.</em></blockquote><p>More details:</p><ul><li><a href="https://aws.amazon.com/marketplace/pp/prodview-db6r5h44kydsa">WP Suite Agency Subscription on AWS Marketplace</a></li><li><a href="https://wpsuite.io/compare/enterprise-wordpress-aws-marketplace/">Technical comparison of enterprise WordPress operating models on AWS Marketplace</a></li><li><a href="https://wpsuite.io/solutions/">WP Suite Solutions Library</a></li><li><a href="https://wpsuite.io/docs/">WP Suite Documentation</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ba53ba8ec4f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Filling Cognito’s Day-2 Gaps with a CloudFormation Template]]></title>
            <link>https://aws.plainenglish.io/filling-cognitos-day-2-gaps-with-a-cloudformation-template-05928c0fda90?source=rss-c316992b7870------2</link>
            <guid isPermaLink="false">https://medium.com/p/05928c0fda90</guid>
            <category><![CDATA[api-gateway]]></category>
            <category><![CDATA[amazon-cognito]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[cloudformation]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[László Tóth]]></dc:creator>
            <pubDate>Sat, 28 Mar 2026 04:45:51 GMT</pubDate>
            <atom:updated>2026-03-28T07:42:23.517Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="AWS cloud services connected to databases and security icons" src="https://cdn-images-1.medium.com/max/1024/1*HGK0CHeSCWj3C1Lt3if0RA.jpeg" /></figure><blockquote>TL;DR —<em> </em>We packaged HTML email templating, IdP user linking, reCAPTCHA at sign-up, custom domains with Route53, pre-token scope mapping, and a clean two-role IAM model into a reusable CloudFormation template with a deployment wizard. This post focuses on the AWS-specific pieces teams usually trip over, and how the template automates them.</blockquote><h3>The Console Is Great… Until You Need the “Day‑2” Bits</h3><p>Amazon Cognito is a solid managed identity service. But most teams eventually need more than the Console wires by default:</p><ul><li>Branded HTML emails that actually look like your product, with SES-backed delivery when a verified SES identity is available, plus safe fallback behavior when it is not.</li><li>Linking users across IdPs (same email, multiple providers) so profiles don’t fragment.</li><li>reCAPTCHA at sign-up without custom glue code.</li><li>Custom domain + Route53 alias so your Hosted UI uses a clean URL.</li><li>A pragmatic IAM model that separates “just authenticated” from “approved to call APIs”.</li></ul><p>We turned that list into a reusable CloudFormation template with a deployment wizard: you flip parameters on or off, and the stack handles the plumbing.</p><h3>What the Template Automates (High Level)</h3><ul><li>User Pool + App Client (no client secret; OAuth code flow; token revocation; prevent user existence errors).</li><li>Optional User Pool Custom Domain + Route53 alias (via a tiny custom resource to resolve the Cognito CloudFront target).</li><li>Optional Identity Pool with two roles (explained below).</li><li>Lambda triggers (TypeScript):<br> —Custom Email Sender — reads HTML templates from S3 and chooses SES-backed delivery, Cognito developer mode, or standard Cognito sending based on HTML configuration and verified SES availability.<br> —Pre Sign-Up — optional reCAPTCHA check and AdminLinkProviderForUser to unify accounts by email.<br> —Post Confirmation — auto-adds confirmed users to the Registered group.<br> — Pre Token Generation — maps Cognito group membership into token scopes such as sc.group.admin or sc.group.editor, creating a clean bridge from Cognito groups to API Gateway method scopes.</li><li>TypeScript + modular AWS SDK v3 delivered via a shared Lambda Layer to keep function bundles tiny.</li></ul><p>You can also attach the triggers to an existing User Pool, not just a new one.</p><h3>The Two‑Role IAM Model (and Why It’s Helpful)</h3><p>Many apps need a distinction between “I logged in” and “I’m allowed to call backend APIs”. We model this with two IAM roles tied to a Cognito Identity Pool and a User Pool group. The key idea is a two-stage access model: users start with a <em>provisional</em> role until their sign‑up is confirmed, then automatically move to the role that can call APIs.</p><h3>1) AuthenticatedRole — provisional, before confirmation</h3><p>Assigned by the Identity Pool to users who have authenticated but whose sign‑up is not yet confirmed/approved. This role is intentionally limited — it’s meant for confirming the account and refreshing tokens, not for calling your application APIs.</p><p>Trust policy (Web Identity from Cognito Identity):</p><pre>{<br>  &quot;Version&quot;: &quot;2012-10-17&quot;,<br>  &quot;Statement&quot;: [{<br>    &quot;Effect&quot;: &quot;Allow&quot;,<br>    &quot;Principal&quot;: { &quot;Federated&quot;: &quot;cognito-identity.amazonaws.com&quot; },<br>    &quot;Action&quot;: &quot;sts:AssumeRoleWithWebIdentity&quot;,<br>    &quot;Condition&quot;: {<br>      &quot;ForAnyValue:StringLike&quot;: {<br>        &quot;cognito-identity.amazonaws.com:amr&quot;: &quot;authenticated&quot;<br>      },<br>      &quot;StringEquals&quot;: {<br>        &quot;cognito-identity.amazonaws.com:aud&quot;: &quot;IDENTITY_POOL_ID&quot;<br>      }<br>    }<br>  }]<br>}</pre><p>Why these conditions?</p><ul><li>amr=authenticated ensures we’re not issuing creds to unauthenticated identities.</li><li>aud=IDENTITY_POOL_ID pins the trust to a single pool (no cross‑account surprises).</li></ul><p>Inline policy (minimal): allow only the identity exchange flow, no API calls:</p><pre>{<br>  &quot;Version&quot;: &quot;2012-10-17&quot;,<br>  &quot;Statement&quot;: [{<br>    &quot;Effect&quot;: &quot;Allow&quot;,<br>    &quot;Action&quot;: [&quot;cognito-identity:GetCredentialsForIdentity&quot;],<br>    &quot;Resource&quot;: &quot;*&quot;<br>  }]<br>}</pre><h3>2) RegisteredRole — after confirmation, API-enabled</h3><p>When a user confirms sign‑up, the Post Confirmation trigger adds them to the Registered User Pool group. That group is mapped to RegisteredRole. From that moment, the user can call your backend APIs.</p><p>Permissions (scoped to this account’s API Gateway; include WebSocket support when needed):</p><pre>{<br>  &quot;Version&quot;: &quot;2012-10-17&quot;,<br>  &quot;Statement&quot;: [{<br>    &quot;Effect&quot;: &quot;Allow&quot;,<br>    &quot;Action&quot;: [<br>      &quot;execute-api:Invoke&quot;,<br>      &quot;execute-api:ManageConnections&quot;<br>    ],<br>    &quot;Resource&quot;: [<br>      &quot;arn:aws:execute-api:*:${AWS::AccountId}:*/*/*/*&quot;<br>    ]<br>  }]<br>}</pre><p>This two-stage model keeps a clean boundary: <em>pre‑confirmation users</em> can authenticate and complete verification, while <em>confirmed (registered) users</em> get API access via RegisteredRole.</p><p>This complements the IAM role model rather than replacing it: Identity Pool roles handle AWS credential boundaries, while Pre Token Generation scope mapping enables fine-grained API Gateway authorization at the HTTP method level.</p><h3>HTML Email Without the Yak-Shave</h3><p>HTML email delivery has an AWS-specific constraint: a verified SES identity is required for HTML-based delivery. The template handles this explicitly. If HTML email is configured and a verified SES identity is available, it uses SES-backed delivery. If HTML is requested but SES is not verified yet, it falls back to Cognito developer email mode. If no HTML template is configured, it uses standard Cognito email sending.</p><h3>Pre Sign-Up: reCAPTCHA + IdP Linking</h3><p>Server-side reCAPTCHA (classic or enterprise; v2/v3) with parameters for min score and expected action — no code changes per environment.<br>Then AdminLinkProviderForUser merges identities from different IdPs that share the same email, so you don’t need a manual reconciliation job later.</p><h3>Pre Token Generation as the Bridge to API Protection</h3><p>One of the more forward-looking pieces in the template is the Pre Token Generation trigger. It projects Cognito group membership into token scopes using a simple convention: sc.group.&lt;groupname&gt;.</p><p>That gives us a practical pattern for backend protection in other templates as well. Instead of introducing a custom authorization layer for every service, API Gateway methods can be protected directly with Cognito Authorizer scopes. If a user is in the matching Cognito group, the corresponding scope is present in the token and API Gateway can enforce access natively.</p><p>In practice, this means a Cognito group can become an API access contract. A method can require sc.group.reports, sc.group.admin, or any other mapped scope, and the authorizer can enforce it without additional backend glue.</p><h3>Custom Domain + Route53 Alias</h3><p>Cognito’s default domain works, but your brand deserves better. The template configures a custom domain (ACM cert in the same region), and — if your zone is in Route53 — it creates the alias record automatically. Because CloudFormation doesn’t expose the Cognito distribution target, a small custom resource looks it up safely.</p><h3>TypeScript, SDK v3, and a Shared Layer</h3><p>All functions are TypeScript, using modular @aws-sdk/* clients via a Lambda Layer. This keeps deployables small and dependency updates predictable (bump the layer, not every function).</p><h3>Safer Validation &amp; Deployment</h3><ul><li>Very large templates (&gt; 51 KB) are validated via an S3 URI — the helper scripts handle that automatically.</li><li>Generic YAML linters choke on CloudFormation intrinsic functions (!Ref, !Sub, !If). We run syntax-only checks to avoid false negatives.</li></ul><h3>Adopting the Template (At a Glance)</h3><ol><li>Decide whether to create or reuse a User Pool.</li><li>Enable the features you need: custom domain, identity pool and roles, trigger set, email templating, reCAPTCHA, and token scope mapping.</li><li>Provide a verified SES identity if you want HTML email delivery; otherwise use the built-in fallback modes.</li><li>Launch through the deployment wizard, then consume the stack outputs in your app and downstream templates.</li></ol><h3>Final Thoughts</h3><p>The goal isn’t to replace Cognito — it’s to smooth the day‑2 gaps with IaC and good defaults. The two‑role model draws a clean line between a provisional pre‑confirmation user and a registered user authorized to call APIs. The rest — branded emails, reCAPTCHA, domain wiring, IdP linking — is plumbing the template can do for you, repeatably.</p><p>Just as importantly, the Pre Token Generation trigger establishes a reusable authorization pattern for other templates: Cognito groups become token scopes, and API Gateway methods can enforce them directly through Cognito Authorizer scopes.</p><p><strong>Try the CloudFormation Template</strong><br>Deploy Cognito day-2 features with a guided deployment wizard and production-oriented defaults.<br>👉 <a href="https://wpsuite.io/deployment-wizard/">Open the Deployment Wizard</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=05928c0fda90" width="1" height="1" alt=""><hr><p><a href="https://aws.plainenglish.io/filling-cognitos-day-2-gaps-with-a-cloudformation-template-05928c0fda90">Filling Cognito’s Day-2 Gaps with a CloudFormation Template</a> was originally published in <a href="https://aws.plainenglish.io/">AWS in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[On-Device First, Serverless Fallback Always: A Practical AI Backend on AWS]]></title>
            <link>https://aws.plainenglish.io/on-device-first-serverless-fallback-always-a-practical-ai-backend-on-aws-3ced670a31a9?source=rss-c316992b7870------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ced670a31a9</guid>
            <category><![CDATA[cloud-cost-optimization]]></category>
            <category><![CDATA[amazon-bedrock]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[amazon-api-gateway]]></category>
            <category><![CDATA[serverless-architecture]]></category>
            <dc:creator><![CDATA[László Tóth]]></dc:creator>
            <pubDate>Wed, 11 Feb 2026 10:44:13 GMT</pubDate>
            <atom:updated>2026-02-11T10:44:13.557Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="AI-Kit for WordPress banner showing a glowing WordPress icon on a circuit-board “AI brain” design, with UI screenshots of the Media Library, editor, and SEO metadata fields — highlighting on-device AI tools and a built-in chatbot." src="https://cdn-images-1.medium.com/max/1024/1*z7Ms2-VlCnm4RTaKaQLK2Q.png" /></figure><h3>TL;DR</h3><ul><li><strong>On-device first:</strong> when Chrome supports built-in AI, content can stay on the device and you avoid per-request AI costs.</li><li><strong>Serverless fallback:</strong> when on-device isn’t available — or when you need RAG/chat — deploy a backend <strong>into your own AWS account</strong> via <strong>Serverless Application Repository (SAR)</strong>.</li><li><strong>Strict grounding modes:</strong> when documentation is missing or ambiguous, the assistant <strong>asks a clarifying question</strong> (or refuses), instead of guessing.</li><li><strong>Category/tag filtering:</strong> narrow retrieval to the right doc domain, boosting accuracy and reducing context size → lower latency + lower spend.</li><li><strong>ROI logic:</strong> shift from “reasoning model everywhere” to “retrieval + grounded generation when needed” and your variable costs become predictable.</li><li><strong>Try it live:</strong> AI-Kit is testable on the product page (Try me + frontend chatbot).</li></ul><h3>A practical AI backend that keeps costs predictable and answers from your docs.</h3><p>Most teams don’t actually need “more AI.” They need <strong>control</strong>:</p><ul><li>Privacy by default</li><li>Coverage across real-world devices and browsers</li><li>Predictable spend</li><li>And a chatbot that answers from <strong>trusted documentation</strong>, not vibes</li></ul><p>That combination is hard to achieve with a single approach.</p><p>So I built a backend around a rule that’s almost boring — until you feel the impact in production:</p><blockquote><strong><em>Use on-device AI whenever it’s available.<br>Use AWS only when you need a reliable fallback — or a doc-grounded chatbot.</em></strong></blockquote><figure><img alt="On-device AI first with AWS backend fallback in WordPress" src="https://cdn-images-1.medium.com/max/490/1*_xQu_o4DJSddnfUzjL6VVg.jpeg" /><figcaption>AI-Kit prioritizes on-device AI in the browser and automatically falls back to an AWS backend when required.</figcaption></figure><p>This backend is packaged as an <strong>AWS Serverless Application Repository (SAR)</strong> <a href="https://serverlessrepo.aws.amazon.com/applications/us-east-1/637423296378/wpsuite-ai-kit">application</a>, so it deploys into <strong>your AWS account boundary</strong>, with your security controls and your cost controls. SAR exists exactly for this kind of distribution: reusable serverless apps that teams can deploy without cloning/building/publishing code themselves.</p><p>Even though this was built to support a WordPress plugin, the architecture is broadly useful for any product that wants <strong>privacy-first UX + secure fallback + grounded answers</strong>.</p><figure><img alt="AI-Kit AWS backend running inside your own AWS account" src="https://cdn-images-1.medium.com/max/544/1*er8jBhTWXYneFVuISjn_rA.jpeg" /><figcaption>The AI-Kit backend runs entirely inside your AWS account, keeping data, configuration, and access under your control.</figcaption></figure><h3>Why on-device AI is great… and still not enough</h3><p>On-device AI (e.g., Chrome’s built-in AI capabilities) is a huge leap forward:</p><ul><li>Your content stays local</li><li>Latency is often great</li><li>The “AI bill” can be <strong>effectively zero</strong> for that path</li></ul><p>But then reality shows up:</p><ul><li>Not all visitors run a compatible browser</li><li>Some environments are locked down (enterprise policies, hardware constraints)</li><li>Some tasks are heavy (long documents, RAG, multi-step prompting)</li><li>A “real” chatbot needs to answer from <strong>your documentation</strong> and stay consistent</li></ul><p>That’s why a backend isn’t the enemy of privacy. It’s the <strong>guardrail for coverage</strong>.</p><p>The goal is not “cloud AI everywhere.”<br>The goal is: <strong>cloud AI only when the device can’t do it — or when the use case requires it.</strong></p><h3>“AI SaaS” vs “AWS in your account”</h3><p>Yes, AWS is still a cloud provider — but the control model is different from typical AI SaaS.</p><p>With many SaaS chat solutions:</p><ul><li>your prompts flow through someone else’s platform</li><li>their retention and policy controls matter as much as yours</li><li>and your cost curve is often opaque until it hurts</li></ul><p>With this approach:</p><ul><li>the backend runs inside <strong>your AWS account boundary</strong></li><li>your docs live in <strong>your S3 bucket</strong></li><li>your authentication and WAF rules apply</li><li>your observability and budgets apply</li><li>and behavior can be governed like infrastructure, not like a black box</li></ul><p>That difference is what many decision makers are really asking for when they say “we want a private AI.”</p><h3>Architecture (high level, production-minded)</h3><p>The backend is a serverless stack designed around four concerns: <strong>security, cost control, grounded answers, and operational simplicity</strong>.</p><p>Components:</p><ul><li><strong>Edge protection</strong> (WAF)</li><li><strong>API entrypoint</strong> (API Gateway)</li><li><strong>Compute</strong> (Lambda)</li><li><strong>State</strong> (DynamoDB for sessions with TTL cleanup)</li><li><strong>Docs &amp; configuration</strong> (S3)</li><li><strong>Knowledge retrieval + generation</strong> (Amazon Bedrock)</li><li><strong>Vector storage/search</strong> (Amazon S3 Vectors)</li></ul><p>Think of it as an “AI runtime” you can deploy like any other backend: repeatable, versionable, auditable. That’s exactly what SAR is designed to enable.</p><figure><img alt="AI-Kit backend components overview for WordPress" src="https://cdn-images-1.medium.com/max/293/1*NwtQbrQ_EwOXOWb4uqcrrw.jpeg" /><figcaption>A high-level overview of the AI-Kit backend components powering AI features in WordPress.</figcaption></figure><h3>Admin vs Frontend: separate surfaces, separate risk</h3><p>A backend that powers both editors and public chat experiences should not be a single undifferentiated API.</p><p>So the endpoints are conceptually split:</p><ul><li><strong>Admin routes</strong>: used by trusted/editor UX</li><li><strong>Frontend routes</strong>: optional public endpoints for visitor-facing features</li></ul><p>This matters because the threat models differ wildly.</p><p>Admin traffic should be locked down hard (auth, IP limits, strict quotas). Frontend traffic should assume abuse and be protected accordingly (rate-limits, bot protection, guardrails).</p><p>If you’ve ever had to explain “why our chatbot got farmed for free inference,” you know this isn’t academic.</p><h3>The differentiators</h3><h3>1) Strict grounding modes: correctness over confidence</h3><p>Most chatbots fail in the same way: they optimize for fluent answers, not for correct answers.</p><p>In AI-Kit’s backend, grounding isn’t “best effort.” It’s explicit behavior:</p><h3>Ask-first mode (strict)</h3><p>If retrieved context is insufficient or ambiguous, the assistant <strong>must ask a clarifying question</strong> rather than guessing.</p><p>This is the mode you want when accuracy matters and your docs are segmented by products, editions, or versions.</p><h3>Refuse-on-missing mode (strict)</h3><p>If there’s no reliable doc support, the assistant <strong>does not answer</strong>.</p><p>That’s valuable for compliance-sensitive domains, internal policies, or security-related questions.</p><h3>Helpful fallback mode (lenient)</h3><p>For low-risk use cases, you can allow best-effort answers — but clearly labeled.</p><p>The practical impact is huge:</p><blockquote><em>When the system isn’t sure, it behaves like a responsible support engineer, not like a confident improviser.</em></blockquote><p>If you expose public endpoints, you can optionally add Amazon Bedrock Guardrails as a policy layer that evaluates inputs and outputs.</p><h3>2) Category/tag filtering: the cheapest accuracy boost you can buy</h3><p>RAG quality isn’t only embeddings. It’s <strong>retrieval discipline</strong>.</p><p>Category/tag filtering lets you constrain retrieval to the correct domain:</p><ul><li>pricing/licensing</li><li>setup/deployment</li><li>troubleshooting</li><li>product-specific feature sets</li><li>etc.</li></ul><p>This improves outcomes in two ways:</p><ol><li><strong>Higher precision</strong>: less irrelevant context means fewer wrong turns.</li><li><strong>Lower cost</strong>: fewer chunks → smaller prompts → less work per request.</li></ol><p>It’s also how one chatbot can serve multiple audiences without running separate stacks.</p><figure><img alt="Knowledge Base answers grounded in your WordPress documentation" src="https://cdn-images-1.medium.com/max/441/1*W3-Mp0j_XS4IYpJ3alorCg.jpeg" /><figcaption>AI-Kit generates answers grounded in your own documentation using a Knowledge Base.</figcaption></figure><h3>3) Why S3 Vectors changes the RAG economics</h3><p>Vector DBs are often where RAG costs quietly explode — clusters, scaling, operations overhead.</p><p>Amazon positioned <strong>S3 Vectors</strong> as “native vector support in S3,” designed for cost-optimized storage and querying of vectors at scale, with messaging that it can reduce total costs by <strong>up to 90%</strong> versus alternatives.</p><p>In December 2025, AWS announced <strong>general availability</strong> with large scale/performance increases (including “40x scale vs preview”).</p><p>The strategic implication is simple:</p><blockquote><em>You get a “RAG memory layer” that behaves more like cloud infrastructure and less like a specialist database you babysit.</em></blockquote><h3>Try it live</h3><p>If you just want to see the UX idea — <strong>on-device first, backend optional</strong> — you can try AI-Kit on the <a href="https://wpsuite.io/ai-kit/">product page</a>. There’s a <strong>Try me</strong> demo and a frontend chatbot example.</p><p>This is intentional: before anyone debates architecture, they should feel what “fallback” means from a user perspective:</p><ul><li>capability checks</li><li>consistent UX across environments</li><li>and a chatbot that doesn’t drift off-policy</li></ul><h3>Business value and ROI: stop paying for “reasoning” when retrieval solves it</h3><p>Decision makers typically care about:</p><ol><li>predictable cost</li><li>reduced risk</li><li>reliable coverage</li></ol><p>This architecture targets all three.</p><h3>Cost control by design</h3><p>There are two levers that dominate the economics:</p><h3>Lever 1: On-device hit rate</h3><p>The more requests you handle on-device, the lower your variable AI spend.</p><h3>Lever 2: Retrieval discipline</h3><p>Category/tag filtering reduces context size and irrelevant tokens. That directly lowers cost and often improves latency.</p><p>S3 Vectors is also explicitly positioned by AWS as cost-optimized, with claims of up to 90% reduction in total vector storage/query costs.</p><h3>ROI model (no price guessing)</h3><p>Instead of pretending we know your exact Bedrock/WAF/API Gateway costs, here’s a <strong>price-agnostic</strong> model you can adapt.</p><p>Define:</p><ul><li><strong>M</strong> = monthly messages (1k / 10k / 100k)</li><li><strong>p</strong> = on-device share (0–1)</li><li><strong>C_reason</strong> = unit cost of “reasoning model everywhere” per message</li><li><strong>C_rag</strong> = unit cost of “RAG + grounded generation” per message</li><li><strong>C_ops</strong> = monthly fixed ops (monitoring/alerts; usually small relative to variable spend)</li></ul><p>Then:</p><ul><li><strong>Cost_reasoning = M · C_reason</strong></li><li><strong>Cost_ondevice+ragn = (M · (1 − p) · C_rag) + C_ops</strong></li></ul><p><strong>Savings (unit-based) = M · C_reason − (M · (1 − p) · C_rag + C_ops)</strong></p><h3>Example with conservative ratios</h3><p>Assume:</p><ul><li><strong>p = 0.50</strong> (half on-device)</li><li><strong>C_reason = 1.0 unit</strong></li><li><strong>C_rag = 0.30 unit</strong></li><li><strong>C_ops</strong> ignored for simplicity</li></ul><figure><img alt="ROI comparison table showing monthly chatbot message volume versus “reasoning everywhere” costs and “on-device + RAG fallback” costs, with an 85% relative saving under conservative assumptions." src="https://cdn-images-1.medium.com/max/642/1*69obCMFruMgKRFA3iV5V8w.jpeg" /><figcaption>Example with conservative ratios: at 50% on-device usage and a 0.30 unit fallback cost, the on-device + RAG approach stays ~85% cheaper than “reasoning everywhere” from 1k to 100k monthly messages.</figcaption></figure><p>Formula used for the fallback column: M * (1 — p) * C_rag</p><h3>Sensitivity</h3><p>Same ratios, but vary <strong>p</strong>:</p><ul><li>If <strong>p = 0.30</strong> → fallback is 70%: cost = 0.70·0.30 = <strong>0.21 per msg</strong> → ~<strong>79%</strong> saving</li><li>If <strong>p = 0.50</strong> → fallback is 50%: cost = 0.50·0.30 = <strong>0.15 per msg</strong> → ~<strong>85%</strong> saving</li><li>If <strong>p = 0.70</strong> → fallback is 30%: cost = 0.30·0.30 = <strong>0.09 per msg</strong> → ~<strong>91%</strong> saving</li></ul><p>The point isn’t the exact number. The point is the shape of the curve:</p><ul><li>“Reasoning everywhere” scales linearly with a high per-message constant</li><li>“On-device + disciplined RAG” scales with <strong>two controllable levers</strong>: on-device hit rate and retrieval discipline</li></ul><h3>Risk reduction: fewer “AI incidents”</h3><p>A fluent hallucination can be more expensive than a slow answer.</p><p>Strict grounding modes reduce the most damaging failures:</p><ul><li>confidently wrong policy answers</li><li>incorrect setup guidance</li><li>security misinformation</li><li>“support deflection” that increases tickets instead of reducing them</li></ul><p>The best support automation isn’t the one that answers fastest. It’s the one that <strong>knows when to ask</strong>.</p><h3>Closing thought</h3><p>The AI market is loud, but architecture is quiet.</p><p>And the quiet decisions — <strong>where data lives, who controls access, how costs scale, how the system behaves when uncertain</strong> — matter more than whichever model is trending this week.</p><p>On-device AI is the best default when you have it. A serverless backend is the best fallback when you don’t. And strict grounding + disciplined retrieval is how you keep chatbots useful without paying premium “reasoning” tax on every message.</p><h3><strong>Want to explore the project further?</strong></h3><ul><li><strong>Deploy the backend into your AWS account (SAR):</strong><br>AWS Serverless Application Repository app: <a href="https://serverlessrepo.aws.amazon.com/applications/us-east-1/637423296378/wpsuite-ai-kit">https://serverlessrepo.aws.amazon.com/applications/us-east-1/637423296378/wpsuite-ai-kit</a></li><li><strong>Try the live demo + read the overview:</strong><br>AI-Kit product page (Try me + frontend chatbot demo): <a href="https://wpsuite.io/ai-kit/">https://wpsuite.io/ai-kit/</a></li><li><strong>Install the WordPress plugin:</strong><br>WordPress.org listing: <a href="https://wordpress.org/plugins/smartcloud-ai-kit/">https://wordpress.org/plugins/smartcloud-ai-kit/</a></li></ul><p><em>Tip:</em> If you’re evaluating this for production, start with the live demo to understand the UX, then deploy the SAR backend to validate security/cost controls in your own environment.</p><h3>A message from our Founder</h3><p><strong>Hey, </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>Sunil</strong></a><strong> here.</strong> I wanted to take a moment to thank you for reading until the end and for being a part of this community.</p><p>Did you know that our team run these publications as a volunteer effort to over 3.5m monthly readers? <strong>We don’t receive any funding, we do this to support the community. ❤️</strong></p><p>If you want to show some love, please take a moment to <strong>follow me on </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>LinkedIn</strong></a><strong>, </strong><a href="https://tiktok.com/@messyfounder"><strong>TikTok</strong></a>, <a href="https://instagram.com/sunilsandhu"><strong>Instagram</strong></a>. You can also subscribe to our <a href="https://newsletter.plainenglish.io/"><strong>weekly newsletter</strong></a>.</p><p>And before you go, don’t forget to <strong>clap</strong> and <strong>follow</strong> the writer️!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ced670a31a9" width="1" height="1" alt=""><hr><p><a href="https://aws.plainenglish.io/on-device-first-serverless-fallback-always-a-practical-ai-backend-on-aws-3ced670a31a9">On-Device First, Serverless Fallback Always: A Practical AI Backend on AWS</a> was originally published in <a href="https://aws.plainenglish.io/">AWS in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Carmen Cloud’s APIs, Engines, Mobile Clients, and On-Prem Components Fit Together]]></title>
            <link>https://medium.com/@tothl74/how-carmen-clouds-apis-engines-mobile-clients-and-on-prem-components-fit-together-9cffa8d103c3?source=rss-c316992b7870------2</link>
            <guid isPermaLink="false">https://medium.com/p/9cffa8d103c3</guid>
            <category><![CDATA[carmen-cloud]]></category>
            <category><![CDATA[anpr]]></category>
            <category><![CDATA[on-premise]]></category>
            <category><![CDATA[mmr]]></category>
            <category><![CDATA[saas]]></category>
            <dc:creator><![CDATA[László Tóth]]></dc:creator>
            <pubDate>Mon, 01 Dec 2025 08:16:24 GMT</pubDate>
            <atom:updated>2025-12-01T08:24:22.614Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Close-up photo of a car-style start button featuring the Carmen Cloud logo, symbolizing activation and seamless integration of cloud and on-prem recognition systems." src="https://cdn-images-1.medium.com/max/1024/1*_N92icr33ycTmzXJJjY-6A.jpeg" /><figcaption>Carmen Cloud — designed to fit seamlessly into any infrastructure, from cloud APIs to on-prem recognition engines.</figcaption></figure><p>Carmen Cloud brings together all core recognition technologies developed by Adaptive Recognition — ANPR, MMR, ADR, industrial code reading, personal-document authentication, mobile-based data collection, and on-prem recognition engines — into one coherent, developer-friendly platform. This article explains what each component does, how they differ, and which one fits a given real-world scenario.</p><p>This overview walks through the entire ecosystem — including camera-based, mobile-based, cloud, and on-prem pipelines.</p><p><strong>TL/DR</strong>: Carmen Cloud is a unified recognition ecosystem covering road vehicles, cargo, document authentication, mobile data capture, and on‑premise processing.<br>Use this quick guide to choose the right component instantly:</p><ul><li>Road‑vehicle image → <strong>Vehicle API</strong></li><li>Container / rail / trailer codes → <strong>Transportation &amp; Cargo API</strong></li><li>Identity documents, Osmond‑based Document Authentication → <strong>Document Authentication API</strong></li><li>Subscription‑based licensing for engines &amp; SDKs → <strong>License Service</strong></li><li>Offline / on‑prem / ultra‑low latency → <strong>Carmen Worker</strong></li><li>Live video streams → <strong>Vehicle Detector</strong></li><li>Mobile‑camera recognition → <strong>Carmen Mobile</strong></li><li>Managing event‑driven workflows → <strong>Storage &amp; Hooks API</strong></li><li>Quota / region / entitlement metadata → <strong>Descriptor API</strong></li></ul><p><strong>The Carmen Cloud ecosystem at a glance:</strong></p><pre>Camera(s)<br>   │<br>   ├── Vehicle Detector (optional)<br>   │       │<br>   │       └── crops → Carmen Worker or Carmen Cloud<br>   │<br>Carmen Mobile<br>   │<br>   └── frames/crops → Carmen Worker or Carmen Cloud</pre><pre>Carmen Cloud APIs<br>   ├── Vehicle API<br>   ├── Transport API<br>   ├── Document Authentication API<br>   ├── Storage &amp; Hooks API<br>   └── Descriptor API<br>   │<br>   └── results → Webhooks / Event Bus / Storage → Your Application</pre><h3>1. Vehicle API — ANPR, MMR, ADR and full vehicle intelligence</h3><p>When people think about license plate recognition, they often imagine a simple text extraction process — but modern mobility systems require much more. That’s why the <strong>Vehicle API</strong> doesn’t just read plates: it helps software understand the entire vehicle.</p><p>Whether you’re building parking automation, road-usage billing, or a high-end tolling back office, the <strong>Vehicle API</strong> becomes the foundation of real-world decision-making.</p><p>It is the API you use when the subject of the image is a road vehicle.</p><h3>What the Vehicle API does</h3><p>In a single request, the Vehicle API can:</p><ul><li>perform ANPR — license plate reading and normalization,</li><li>perform MMR — classify make, model family, and color,</li><li>detect ADR hazard signs on trucks,</li><li>return vehicle attributes such as model generation/variation or viewpoint,</li><li>provide confidence scores for each recognized element.</li></ul><p>The API is region-aware. Each request selects a recognition engine set tuned for a geographic area using a region code:</p><ul><li>eur – Europe</li><li>nam – North America</li><li>cam – Central America</li><li>sam – South America</li><li>afr – Africa</li><li>me – Middle East</li><li>cas – Central Asia</li><li>eas – East Asia</li><li>sas – South Asia</li><li>aus – Australia</li></ul><p>This region abstraction lets you work with a single API surface while still using specialized engines behind the scenes.</p><h3>Typical use cases for the Vehicle API</h3><ul><li>Tolling and road-usage billing</li><li>Parking automation &amp; LPR barriers</li><li>Smart mobility &amp; city analytics</li><li>Border/gate control</li><li>Fleet, depot, and yard management</li><li>Automated enforcement workflows</li></ul><p>For a deeper technical overview of the request and response model, see the <a href="https://carmencloud.com/docs/api/vehicle">Vehicle API documentation →</a>.</p><p>The API response format is stable across all regions and is mirrored on-premise when you use Carmen Worker, which makes cloud ↔ on-prem switching straightforward.</p><h3>2. Transport API — ISO containers, rail wagons, truck identifiers</h3><p>Logistics environments look nothing like traditional traffic lanes: containers are dirty, scratched, misaligned, and sometimes outright chaotic.</p><p>The <strong>Transportation &amp; Cargo API</strong> (or <em>Transport API</em>) was designed exactly for these conditions. Instead of treating containers, trailers, and railcars as special cases, it gives you one unified interface for identifying all major freight identifiers across multiple industries.</p><p>This API focuses on industrial and cargo identifiers.</p><h3>Supported recognition types</h3><ul><li>ISO / ILU container codes (iso)</li><li>truck and trailer body identifiers (truck)</li><li>European rail wagon IDs (eu-rail)</li><li>North American railcar IDs (am-rail)</li></ul><p>You select the engine by indicating a type in the URL path. This enables one consistent abstraction over multiple freight modes.</p><h3>Designed for logistics and intermodal operations</h3><p>Common scenarios:</p><ul><li>ports and container terminals</li><li>intermodal freight hubs</li><li>customs workflows</li><li>depot automation</li><li>inventory tracking</li><li>industrial audit/compliance tasks</li></ul><p>Many deployments use <strong>Vehicle API</strong> + <strong>Transport API</strong> together to identify both the vehicle and its cargo.</p><p>For more details on field types, error handling, and integration patterns, visit the <a href="https://carmencloud.com/docs/api/transport">Transport API reference →</a>.</p><h3>3. Document Authentication API — Cloud-based Document Authentication (Osmond document readers)</h3><p>Physical identity documents remain one of the strongest trust anchors in customer onboarding, banking, border control, and countless service flows.</p><p>The integration between <strong>Osmond </strong>document-reading hardware and <strong>Carmen Cloud</strong> helps bridge the gap between physical documents and digital verification by handling the microscopic details that make a document authentic — so developers can focus on user experience rather than forensic complexity.</p><h3>What this layer does today</h3><p>It:</p><ul><li>validates identity documents captured by Osmond scanners,</li><li>checks structural and security features,</li><li>analyzes MRZ/VIZ elements,</li><li>returns an authentication result with detailed indicators.</li></ul><p>This supports:</p><ul><li>onboarding kiosks,</li><li>border-control systems,</li><li>banking and KYC flows,</li><li>customer-service verification points.</li></ul><p>A more general-purpose Document API is under development.</p><p>If you want to see the underlying hardware platform, check out the <a href="https://adaptiverecognition.com/products/osmond-passport-reader-id-scanner/">Osmond passport reader and ID scanner family →</a>.</p><h3>4. License Service — cloud-based licensing for engines, SDKs, Worker deployments, and downloadable products</h3><p>The <strong>License Service</strong> is a cloud-hosted licensing backend that replaces traditional hardware-based licensing with secure, subscription-driven activation.</p><p>It enables integrators to:</p><ul><li>activate and revoke entitlements centrally via cloud subscriptions,</li><li>license all Adaptive Recognition engines and SDKs without physical dongles,</li><li>use the same entitlement across cloud APIs, on-prem Carmen Worker clusters, and downloadable SDKs,</li><li>manage licensing across deployments in different locations,</li><li>monitor entitlement status,</li><li>eliminate overhead of hardware keys.</li></ul><p>Before processing images, local engines verify entitlements with the License Service, supporting fleet-wide and hybrid deployments.</p><p>For implementation details and client-side integration patterns, see the <a href="https://carmencloud.com/docs/content/category/license-service-client">License Service client documentation →</a>.</p><h3>5. Carmen Worker — full on-prem recognition engine</h3><p>Not every environment has the luxury of cloud connectivity. Some lanes are air-gapped by design; some countries impose strict data residency rules; some use-cases simply require sub-100-millisecond latency. That’s exactly where <strong>Carmen Worker</strong> shines. It behaves like the cloud, speaks the same JSON, but runs directly on your infrastructure — whether that’s a Docker host or your own AWS account via the SAR template.</p><p>The <strong>Carmen Worker</strong> is the on-premise runtime for the same vehicle and transport engines used in <strong>Carmen Cloud</strong>. It is deployed as a Docker container and exposes local HTTP endpoints:</p><pre>http://localhost:8080/vehicle/{region}<br>http://localhost:8080/transport/{type}</pre><h3>Key characteristics</h3><ul><li>No API key required</li><li>No cloud traffic</li><li>Unlimited requests</li><li>Low, predictable latency</li><li>Same JSON format as cloud</li></ul><p>Switching between cloud and on-prem often only requires changing the base URL.</p><h3>Running Worker in your own AWS account (SAR deployment)</h3><p>For integrators without local infrastructure — but who need an isolated environment separated from Carmen Cloud — the Worker can be deployed via the carmen-worker-cluster AWS Serverless Application Repository template.</p><p>It provides:</p><ul><li>isolated VPC</li><li>optional WAF / JWT protection</li><li>private API endpoints</li><li>scalable worker cluster</li><li>CloudWatch monitoring</li></ul><p>This enables a fully self-contained recognition environment inside the customer’s AWS account.</p><p>For deployment guides, configuration examples, and security best practices, refer to the <a href="https://carmencloud.com/docs/content/category/carmen-worker">Carmen Worker documentation →</a> and the <a href="https://serverlessrepo.aws.amazon.com/applications/eu-central-1/328016752712/carmen-worker-cluster">Carmen Worker SAR Infrastructure →</a>.</p><h3>6. Vehicle Detector — stream-to-crop engine for high-volume pipelines</h3><p>A camera stream is messy: vehicles appear at different angles, speeds, lighting conditions, or not at all. The <strong>Vehicle Detector</strong>’s job is to turn this chaos into a clean stream of recognition-ready crops. It works quietly in the background and handles the “boring but essential” job of finding the right frame so your recognition pipeline stays fast, accurate, and predictable.</p><p>The <strong>Vehicle Detector</strong> extracts relevant frames from video streams and forwards them to recognition engines.</p><p>It ingests RTSP or MJPEG streams (or frame sequences), detects vehicles, crops them, and forwards those crops to the <strong>Vehicle API</strong> (cloud or on-prem).</p><h3>Responsibilities</h3><ul><li>connect to camera streams</li><li>detect vehicles</li><li>crop and normalize frames</li><li>apply rate limiting</li><li>forward crops to the chosen recognition endpoint</li><li>optionally publish events</li></ul><h3>When to use it</h3><p>Ideal for large camera networks, continuous operation, and high-throughput pipelines.</p><p>You can learn more about configuration options and health monitoring in the <a href="https://carmencloud.com/docs/content/category/vehicle-detector-agent">Vehicle Detector agent guide →</a>.</p><h3>7. Carmen Mobile — mobile-based detection, tracking, and data collection</h3><p>Fixed cameras aren’t always possible — think patrol units, temporary enforcement, or pop-up checkpoints at events. <strong>Carmen Mobile</strong> turns any modern mobile device into a powerful, field-ready recognition client.</p><p>It handles detection, tracking, image capture, and even offline storage, making it ideal for mobile operations that need professional-grade recognition without the complexity of installing physical infrastructure.</p><p>While conceptually similar to the <strong>Vehicle Detector</strong>, it operates using the mobile camera and adds additional functionality.</p><h3>What Carmen Mobile does</h3><ul><li>performs <strong>real-time vehicle detection</strong> using the device camera,</li><li>performs <strong>vehicle tracking</strong> to find the optimal capture moment,</li><li>automatically calls:<br> — the Carmen Cloud’s <strong>Vehicle API</strong>, or<br> — a local <strong>Carmen Worker</strong></li><li>processes still images from:<br> — camera snapshots,<br> — the device gallery,<br> — local file storage,</li><li>supports whitelist/blacklist logic,</li><li>sends webhook events to arbitrary backends,</li><li>supports offline or low-connectivity scenarios.</li></ul><p><strong>Carmen Mobile</strong> is a full-featured data-gathering and preprocessing client for field operations, patrol units, parking enforcement, temporary checkpoints, and any scenario where fixed camera infrastructure is unavailable.</p><p>For usage examples, configuration screens, and deployment scenarios, see the <a href="https://carmencloud.com/docs/content/category/carmen-mobile">Carmen Mobile documentation →</a>.</p><h3>8. Utility APIs — Storage &amp; Hooks, Descriptor, Common Error Model</h3><p>Real-world systems rarely operate as isolated components. Webhooks, entitlement metadata, licensing, and error handling become just as important as the recognition itself.</p><p>The Utility APIs tie everything together, ensuring that events flow correctly, licensing stays compliant, and the system remains observable and maintainable at scale.</p><p>These APIs complement the recognition engines and data-collection components, and they provide the operational glue that holds full deployments together.</p><h3>Storage &amp; Hooks API</h3><p>The Storage &amp; Hooks API delivers:</p><ul><li>asynchronous webhook notifications,</li><li>retry logic with exponential backoff,</li><li>delivery status tracking,</li><li>seamless integration with event-driven backends.</li></ul><p>For a full schema and callback examples, you can explore the <a href="https://carmencloud.com/docs/api/storage">Storage &amp; Hooks API reference →</a>.</p><h3>Descriptor API</h3><p>The Descriptor API provides metadata about:</p><ul><li>the active subscription tier,</li><li>enabled regions and recognition types,</li><li>limits and quotas,</li><li>entitlement-based access rules.</li></ul><p>For more information on the response schema and practical examples, visit the <a href="https://carmencloud.com/docs/api/descriptor">Descriptor API documentation →</a>.</p><h3>Common error model</h3><p>All Carmen Cloud and Utility APIs follow a consistent error schema:</p><ul><li>machine-readable error code,</li><li>human-readable message,</li><li>optional structured details.</li></ul><h3>9. Cloud vs On-Prem vs Hybrid — choosing the right deployment model</h3><p>The beauty of <strong>Carmen Cloud</strong> is that you don’t have to choose a single path and commit forever. Many deployments start in the cloud, later add <strong>Carmen Workers</strong> for specific lanes, and eventually become fully hybrid. Because everything speaks the same JSON, migration paths are smooth — your architecture can evolve without rewriting the entire system.</p><p><strong>Carmen Cloud</strong> supports three deployment models.</p><h3>Cloud-first deployment</h3><p>Call the cloud <strong>Vehicle </strong>and <strong>Transport APIs</strong> directly.</p><p>Use this when:</p><ul><li>minimal operations overhead is required,</li><li>automatic scaling is preferred,</li><li>cloud-based quotas/dashboards are needed,</li><li>sending images to the cloud is acceptable.</li></ul><h3>On-prem-first deployment</h3><p>Run <strong>Carmen Worker</strong> (and optionally <strong>Vehicle Detector</strong>) locally.</p><p>Use this when:</p><ul><li>privacy or regulation requires local processing,</li><li>networks are air-gapped,</li><li>ultra-low latency is needed,</li><li>offline operation is required.</li></ul><h3>Hybrid deployment</h3><p>Combine:</p><ul><li>Vehicle Detector (streams),</li><li>Carmen Worker (on-prem),</li><li>Cloud APIs,</li><li>Carmen Mobile as an additional image source.</li></ul><p>Examples:</p><ul><li>Vehicle Detector → Carmen Worker for sensitive lanes</li><li>Vehicle Detector → Carmen Cloud where bandwidth allows</li><li>Carmen Mobile → Vehicle API/Carmen Worker for field operations</li><li>Carmen Worker fallback when cloud is temporarily unavailable</li></ul><p>Because the JSON schema is uniform, hybrid routing is configuration rather than code branching.</p><h3>10. The full Carmen Cloud ecosystem at a glance</h3><p>At first glance the ecosystem diagram looks simple, but it captures a critical advantage: every component is interchangeable. Cameras, Carmen Mobile, Vehicle Detector, Carmen Worker, Carmen Cloud APIs — all can be connected in different combinations depending on the project’s needs.</p><p><strong>This modularity is what makes Carmen Cloud suitable for both small integrators and nationwide tolling authorities.</strong></p><p>Below is a simplified representation of how image sources flow into recognition:</p><pre>Camera(s)<br>   │<br>   ├── Vehicle Detector (optional)<br>   │       │<br>   │       └── crops → Carmen Worker or Carmen Cloud<br>   │<br>Carmen Mobile<br>   │<br>   └── frames/crops → Carmen Worker or Carmen Cloud</pre><pre>Carmen Cloud APIs<br>   ├── Vehicle API<br>   ├── Transport API<br>   ├── Document Authentication API<br>   ├── Storage &amp; Hooks API<br>   └── Descriptor API<br>   │<br>   └── results → Webhooks / Event Bus / Storage → Your Application</pre><p>Image sources include:</p><ul><li>fixed cameras,</li><li>video streams via Vehicle Detector,</li><li>mobile devices via Carmen Mobile,</li><li>still images from any source.</li></ul><p>This architecture supports cloud-native, on-premise, hybrid, and multi-site deployments.</p><h3>11. Quick decision guide — which component do I need?</h3><p>Even experienced integrators sometimes ask, “Which component should I start with?” This guide exists exactly for that reason: to make the first architectural choice obvious, even if the project is complex.</p><p>Most workflows become clear once you map them to a single decision: is the image coming from a camera, a stream, a mobile device, or a backend system?</p><ul><li>You have images of road vehicles → <strong>Vehicle API</strong></li><li>You have containers, wagons, trailers → <strong>Transport API</strong></li><li>You need ID document checks → <strong>Document Authentication API</strong></li><li>You must run offline or on-site → <strong>Carmen Worker</strong></li><li>You have video streams → <strong>Vehicle Detector</strong></li><li>You need mobile/field data capture → <strong>Carmen Mobile</strong></li><li>You want event-driven backends → <strong>Storage &amp; Hooks API</strong></li><li>You need to inspect subscription/limits at runtime → <strong>Descriptor API</strong></li><li>You want a unified, subscription-based licensing backend for engines and SDKs → <strong>License Service</strong></li></ul><h3>12. Why this structure matters for integrators</h3><p>Large-scale recognition projects rarely fail because the engines are inaccurate — they fail because the architecture becomes fragmented.</p><p>By offering cloud, on-prem, and mobile components under a single umbrella, Carmen Cloud ensures that teams don’t have to reinvent transport layers, authentication flows, or event distribution.</p><p>Everything fits together by design, so architects can focus on delivering value rather than stitching components manually. By keeping request and response formats unified across all engines and deployments, Carmen Cloud:</p><ul><li>reduces engineering effort,</li><li>simplifies client code,</li><li>allows dynamic routing between cloud and on-prem,</li><li>scales from single devices to multi-site footprints,</li><li>enables clean, modern hybrid architectures.</li></ul><p><strong>Carmen Cloud is not a single API</strong> — it is a fully integrated family of interoperable recognition engines, mobile tools, and utility services designed for tolling, logistics, security, smart cities, and industrial automation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9cffa8d103c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Carmen Cloud’s ANPR Engines Think — And How You Can Help Them Get Better Results]]></title>
            <link>https://medium.com/@tothl74/how-carmen-clouds-anpr-engines-think-and-how-you-can-help-them-get-better-results-53c6bc9787d5?source=rss-c316992b7870------2</link>
            <guid isPermaLink="false">https://medium.com/p/53c6bc9787d5</guid>
            <category><![CDATA[alpr]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[mmr]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[anpr]]></category>
            <dc:creator><![CDATA[László Tóth]]></dc:creator>
            <pubDate>Mon, 17 Nov 2025 15:51:35 GMT</pubDate>
            <atom:updated>2025-11-17T15:51:35.070Z</atom:updated>
            <content:encoded><![CDATA[<h3>How Carmen Cloud’s ANPR Engines Think — And How You Can Help Them Get Better Results</h3><p><a href="https://carmencloud.com/">Carmen® Cloud</a> runs multiple ANPR and MMR engines across the globe, continuously trained and updated to read millions of different license plates. In this article, we’ll open the black box a bit: how these engines work together, why “no plate found” sometimes happens, and what you can do in your integration to get the most out of the service.</p><h3>Why the Same Camera Can Give Different Results</h3><p>ANPR is never just a single algorithm looking at a pixel grid. In Carmen Cloud, every request goes through a carefully designed <strong>engine pipeline</strong> that:</p><ul><li>selects the most relevant engine cluster for your region and location,</li><li>optionally runs one or more <strong>local engines</strong> for specific countries or US sub-regions,</li><li>balances <strong>coverage</strong> against <strong>false-positive protection</strong>,</li><li>and applies strict validation rules before returning any plate text.</li></ul><p>On top of that, small differences in input images and request parameters can have a big impact on what the engines “see”. The good news: once you understand the pipeline, it’s much easier to tune your integration.</p><h3>Global Architecture: Regions, Local Engines and Quarterly Updates</h3><p>Carmen Cloud operates ANPR and MMR engines in <strong>10 geographical regions</strong> (Europe, North America, Middle East, etc.). Each region can host <em>multiple</em> engines:</p><ul><li><strong>Region-level engines</strong> — trained on plate types common across the broader area.</li><li><strong>Location-specific “local” engines</strong> — optimized for a single country or sub-region.</li><li><strong>Special variants</strong> — tuned for ultra-low latency or stronger false-positive filtering.</li></ul><p>All engines undergo a <strong>quarterly update cycle</strong>. During these updates we:</p><ul><li>add new and updated plate layouts,</li><li>extend character sets and local conventions,</li><li>tighten false-positive rules where needed,</li><li>and improve the wide-range search capabilities.</li></ul><p>The engines are also continuously retrained on selected samples, so they can generalize to new plate variants. If a new plate type is still similar to what the engine already knows, it will often be recognized with slightly lower confidence — but still correctly.</p><h3>Multiple Engines per Region: Europe and the US</h3><p>Inside a given region, Carmen Cloud may run more than one engine for a single request. Two important examples:</p><h3>Europe: Country-Specific Local Engines</h3><p>In the eur region, there are:</p><ul><li>European <strong>regional engines</strong>, and</li><li><strong>country-specific local engines</strong> for locations such as HUN, ROU, DEU, and many more.</li></ul><p>When you set the location in your Vehicle API request, the scheduler can prioritize the best combination of engines for that country, then fall back to regional engines if needed.</p><h3>United States: Sub-Region Engines + Multi-Stage Chain</h3><p>In the nam region, the US gets an extra level of specialization. There are engines trained for different US sub-regions, for example:</p><ul><li>USA_NE – Northeast (Region 1)</li><li>USA_MW – Midwest (Region 2)</li><li>USA_SA – South Atlantic (Region 3 / Division 5)</li><li>USA_SC – South Central (Region 3 / Divisions 6 &amp; 7)</li><li>USA_W – West (Region 4)</li></ul><p>On top of that, US plates go through a dedicated <strong>multi-stage engine chain</strong>:</p><ol><li><strong>frq</strong> (“frequent”) – trained on the most common US plate types, very fast and heavily optimized for extremely low false positives.</li><li><strong>pst</strong> (“post”) – broader coverage but still strongly optimized to reject false positives.</li><li><strong>nam</strong> – the general North-American engine that maximizes coverage as a final fallback.</li></ol><p>The scheduler combines sub-region engines with this frq → pst → nam chain, to get the best mix of speed, coverage and reliability.</p><h3>How the Engine Pipeline Looks Internally</h3><p>Here is a simplified view of the generic Vehicle API pipeline inside Carmen Cloud:</p><pre>+------------------+      +------------------+      +-----------------------+<br>|  Client Request  | ---&gt; |  Input Handling  | ---&gt; |  Engine Scheduler     |<br>|  (image + meta)  |      |  (validation)    |      |  (region/location)    |<br>+------------------+      +------------------+      +-----------+-----------+<br>                                                                |<br>                                                                |<br>                                                                v<br>                                                    +-----------+-----------+<br>                                                    |  Local / Country-     |<br>                                                    |  Specific Engines     |<br>                                                    +-----------+-----------+<br>                                                                |<br>                                                                |<br>                                                                v         <br>                                                     +----------+----------+<br>                                                     |  Region-Level       |<br>                                                     |  Engines (global)   |<br>                                                     +----------+----------+<br>                                                                |                                                <br>                                                                v<br>                                                +---------------+------------+<br>                                                |  Result Fusion &amp;           |<br>                                                |  False-Positive Control    |<br>                                                +--+-------------------------+<br>                                                   |<br>                                                   v<br>                                            +------+--------------------+<br>                                            |  JSON Response to Client  |<br>                                            +---------------------------+</pre><p>And a simplified version of the US-specific pipeline:</p><pre>Client Request (region=nam, image, optional location/state)<br>        |<br>        v<br>+------------------+<br>| Input Handling   |<br>+------------------+<br>        |<br>        v<br>+---------------------------+<br>| Engine Scheduler (NAM)    |<br>| - Uses region/location    |<br>| - May use API key stats   |<br>+-------------+-------------+<br>              |<br>              v<br>     +--------+--------+<br>     | US Sub-Region   |<br>     | Engines         |<br>     | (USA_NE, etc.)  |<br>     +--------+--------+<br>              |<br>              v<br>     +--------+--------+<br>     | frq engine      |<br>     | (most common    |<br>     |  plate types)   |<br>     +--------+--------+<br>              |<br>      (no high-confidence<br>         result?)<br>              |<br>              v<br>     +--------+--------+<br>     | pst engine      |<br>     | (broader, still |<br>     |  FP-optimized)  |<br>     +--------+--------+<br>              |<br>      (still no reliable<br>         result?)<br>              |<br>              v<br>     +--------+--------+<br>     | nam engine      |<br>     | (general North  |<br>     |  American)      |<br>     +--------+--------+<br>              |<br>              v<br>+-------------+-------------+<br>| Result Fusion &amp; Scoring   |<br>+-------------+-------------+<br>              |<br>              v<br>+-------------+-------------+<br>| JSON Response to Client   |<br>+---------------------------+</pre><h3>How API Key Statistics Help Pick the Right Engine</h3><p>Carmen Cloud doesn’t just process your images and forget them immediately — it also aggregates <strong>per-API-key statistics</strong> about the countries (and where applicable, states) that appear in successful recognitions.</p><p>After only a short period of usage, the service can typically see patterns like:</p><ul><li>“Most plates for this API key come from Germany and Austria.”</li><li>“Almost all recognitions are from US West Coast states.”</li></ul><p>If your request does not specify a location, the scheduler can use this information to run a <strong>matching local engine</strong> automatically – even when the client-side integration forgot to set it.</p><p><strong>Good practice:</strong> for a single-country deployment, it’s perfectly fine to reuse the same API key and let statistics help automatic engine selection.</p><h3>When You Should Disable Statistics</h3><p>The same API key can be used across multiple sites and countries. In that case, statistics-based heuristics can become misleading, because the engine cannot know which image belongs to which site.</p><p>For these scenarios, Carmen Cloud exposes the header:</p><p>X-Disable-Call-Statistics: true</p><p>When this header is set:</p><ul><li>the server does <strong>not</strong> update API-key statistics for that call, and</li><li>no local engine will be chosen based on previous traffic patterns.</li></ul><p>This is a great fit for:</p><ul><li>multi-tenant integrations serving many countries with one API key,</li><li>test systems mixing sample images from all over the world,</li><li>roaming or mobile deployments with rapidly changing locations.</li></ul><h3>Request Tuning: Headers You Should Know</h3><h3>X-Enable-Wide-Range-Analysis: true (optional)</h3><p>This header tells the engine to search a <strong>much wider range</strong> of orientations and positions inside the image. It is especially useful for:</p><ul><li>mobile photos (iOS/Android) where the image carries EXIF orientation instead of true rotation,</li><li>wide scenes where the plate is small and near the edge,</li><li>hard images where speed is less important than finding any plate.</li></ul><p>The trade-off: processing time may increase by a factor of <strong>3–5×</strong>, depending on region and complexity.</p><h3>X-Disable-Image-Resizing: true (optional)</h3><p>By default, Carmen Cloud resizes large images to Full HD using bicubic resampling. This:</p><ul><li>reduces upload time and bandwidth,</li><li>speeds up processing,</li><li>normalizes input for the engine’s expected character size range.</li></ul><p>Disabling resizing can be useful in very specific, controlled environments, but in general it can actually <strong>make recognition harder</strong> if character sizes or the pixel grid are far from what the engines were optimized for.</p><p>As a rule of thumb:</p><ul><li>keep resizing enabled for most integrations,</li><li>disable it only if you fully control the cameras and image pipeline,</li><li>and consider combining it with X-Enable-Wide-Range-Analysis when needed.</li></ul><h3>X-Enable-Unidentified-License-Plate: true (optional)</h3><p>This header lets the engine return plate-like candidates even if:</p><ul><li>plate type validation fails,</li><li>the plate does not match the expected country/state,</li><li>the confidence would normally be considered too low.</li></ul><p>This can be useful for research or forensic-style workflows, but it <strong>significantly increases the risk of false positives</strong>, so it should only be enabled when you know exactly why you need it.</p><h3>Input Image Quality: Still the Biggest Factor</h3><p>Even the best engine won’t return reliable results if the input image is outside its physical limits. The most important rules from the input image guide:</p><ul><li>Plate characters (after the optional server-side resizing) should be roughly <strong>16–80 pixels</strong> high.</li><li>The plate must be fully visible and not cut off at the edges.</li><li>Avoid heavy blur and extreme motion; use fast shutter speeds.</li><li>Keep the viewing angle under roughly <strong>40°</strong>.</li><li>Avoid overexposure and glare from headlights and reflective surfaces.</li></ul><p>For detailed recommendations, see the <a href="https://carmencloud.com/docs/content/tutorials/vehicle-api/input-image-guide">Input Image Guide</a>.</p><p><strong>Tip:</strong> When you are tuning a new camera or site, always test your real images in the <a href="https://carmencloud.com/">Carmen Cloud demo</a> first. If the demo results are good, your integration will be much easier.</p><h3>Why “No Plate Found” Happens — And How to Debug It</h3><p>If you occasionally get a response with no plates, it does not necessarily mean the engine “failed”. It often means the engine refused to guess. To investigate:</p><ol><li><strong>Inspect the image itself</strong> — orientation, cropping, character height, blur, exposure.</li><li><strong>Check request parameters</strong> — correct region and location? Is wide-range analysis needed?</li><li><strong>Look at device behavior</strong> — especially mobile apps that rely on EXIF orientation.</li><li><strong>Review any custom headers</strong> — did you disable resizing or statistics unintentionally?</li></ol><p>If everything looks correct and you still see issues, our support team can help you analyze sample images and API responses.</p><h3>Key Takeaways</h3><ul><li>Carmen Cloud runs multiple engines per region, including local and specialized variants.</li><li>Region and location determine which engines are used — always set them explicitly when possible.</li><li>In the US, a dedicated frq → pst → nam chain provides high coverage with strong false-positive control.</li><li>Per-API-key statistics help choose local engines automatically; use X-Disable-Call-Statistics when this is not desired.</li><li>Headers like X-Enable-Wide-Range-Analysis and X-Disable-Image-Resizing are powerful tuning tools – but should be used with care.</li><li>Image quality and basic camera setup still have the biggest impact on recognition success.</li></ul><p>With the right combination of <strong>image quality</strong>, <strong>region/location</strong>, and <strong>request headers</strong>, you can unlock the full potential of Carmen Cloud and build ANPR-powered applications that are both accurate and reliable at scale.</p><p>Want to go deeper? Check out the technical docs: <a href="https://carmencloud.com/docs/api/vehicle">Vehicle API reference</a>, <a href="https://carmencloud.com/docs/content/tutorials/vehicle-api/input-image-guide">Input Image Guide</a>, <a href="https://carmencloud.com/docs/content/references/countries">Regions &amp; Locations</a> and <a href="https://carmencloud.com/docs/content/faq">FAQ</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53c6bc9787d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Host-Only vs Domain Cookies in CloudFront Authentication]]></title>
            <link>https://aws.plainenglish.io/host-only-vs-domain-cookies-in-cloudfront-authentication-1d5f2dfdb7a0?source=rss-c316992b7870------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d5f2dfdb7a0</guid>
            <category><![CDATA[signed-cookies]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[kiro]]></category>
            <category><![CDATA[lambda-edge]]></category>
            <category><![CDATA[cloudfront]]></category>
            <dc:creator><![CDATA[László Tóth]]></dc:creator>
            <pubDate>Thu, 18 Sep 2025 01:34:05 GMT</pubDate>
            <atom:updated>2026-03-26T07:49:17.748Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Illustration of a computer monitor with a padlock and chains, symbolizing website security and restricted access to online content." src="https://cdn-images-1.medium.com/max/1024/1*4hiGZRqqExfr3KZhBymPbQ.png" /><figcaption>Protecting static WordPress sites with CloudFront signed cookies — host-only cookies keep each domain secure.</figcaption></figure><p><em>What we learned while building the WordPress Static Site Guardian</em></p><p>When we first built the <strong>WordPress Static Site Guardian</strong>, our stack looked straightforward:</p><ul><li>API Gateway + Lambda on api.&lt;domain&gt; to issue CloudFront signed cookies</li><li>Static site + protected resources served from CloudFront on &lt;domain&gt;</li></ul><p>At first glance, this worked — until we ran into <strong>cookie domain scoping issues</strong>.</p><h3>The Problem: Domain-Wide Cookies Collide</h3><p>When the /issue-cookie Lambda sits on api.&lt;domain&gt;, the response often needs to include:</p><pre>Set-Cookie: CloudFront-Key-Pair-Id=...; Domain=&lt;domain&gt;; ...</pre><p>Why? Because a <strong>host-only cookie</strong> (no Domain, scoped only to the issuing host) won’t be sent with requests to &lt;domain&gt; if it was issued on api.&lt;domain&gt;.<br>But once you add Domain=&lt;domain&gt;, the cookie automatically applies to <strong>all subdomains</strong>.</p><p>That’s fine if you only ever have one site.<br>But if you deploy the same template to both the main domain and a subdomain — each with different CloudFront key pairs and policies — the browser can attach <strong>multiple cookie triples</strong> to a single request. Suddenly, authentication breaks in subtle, hard-to-debug ways.</p><h3>The Demo That Broke: wpsuite.io vs kirodev.wpsuite.io</h3><p>To illustrate, here’s what actually happened during testing:</p><ul><li><strong>Main site:</strong> wpsuite.io – Cognito User Pool in <strong>us-east-1</strong></li><li><strong>Demo site:</strong> kirodev.wpsuite.io – separate User Pool in <strong>us-west-1</strong></li></ul><p>Each site had its own CloudFront distribution, key pair, and policy.<br>Each also had its own signing API:</p><ul><li>api.wpsuite.io for wpsuite.io → issued cookies with Domain=wpsuite.io</li><li>api.kirodev.wpsuite.io for kirodev.wpsuite.io → issued cookies with Domain=kirodev.wpsuite.io</li></ul><p>Here’s where domain scoping hit us:</p><ul><li>The browser correctly sent the <strong>kirodev-scoped</strong> cookie triple to kirodev.wpsuite.io.</li><li><strong>Additionally</strong>, because Domain=wpsuite.io matches <em>all</em> subdomains, the <strong>wpsuite-scoped</strong> cookie triple also rode along to kirodev.wpsuite.io.</li><li>When we visited kirodev.wpsuite.io/blog or /profile, the CloudFront viewer script assumed we were authenticated — it detected CloudFront cookies.</li><li>But the CloudFront behind kirodev.wpsuite.io rejected the request with <strong>403</strong>, because the <strong>wrong policy and key-pair ID</strong> (from the wpsuite.io cookies) were present alongside the expected ones.</li></ul><p>Result: the viewer script didn’t redirect us to /sign-in, and protected resources failed with 403 due to <strong>conflicting cookie triples</strong> sharing the same cookie names.</p><h3>Why Host-Only Cookies Matter</h3><ul><li><strong>Isolation</strong> — Each subdomain can enforce its own policy without interference from broader-scoped cookies.</li><li><strong>Security</strong> — Host-only cookies reduce cross-site leakage across sibling subdomains.</li><li><strong>Correctness</strong> — CloudFront receives exactly one authoritative cookie triple per request.</li></ul><h3>Our Pivot: Lambda@Edge for Same-Domain Issuance</h3><p>The fix was architectural.<br>Instead of issuing cookies from api.&lt;domain&gt;, we moved to <strong>Lambda@Edge behind a CloudFront behavior</strong> (/issue-cookie*) directly on the same &lt;domain&gt; that serves the protected content.</p><p>This change means:</p><ul><li>The Set-Cookie header can <strong>omit</strong> the Domain attribute.</li><li>Cookies become <strong>host-only</strong>, scoped to exactly the domain that serves the content.</li><li>Subdomains issuing their own cookies no longer collide.</li><li>The viewer-request Lambda@Edge now validates the Cognito JWT token directly instead of relying on IAM-protected endpoints, reducing moving parts and keeping authentication fully browser-to-Cognito. ✅</li></ul><p>Bonus: fewer moving parts — no API Gateway endpoint to maintain — and cookie issuance happens at the edge on the <strong>same domain</strong> as the content.</p><h3>Lessons Learned (and How Kiro Helped)</h3><ul><li>Domain scoping is not a footnote — it can make or break your CloudFront auth model.</li><li>Testing across <strong>multiple subdomains</strong> is essential; browsers happily send every matching cookie.</li><li>Thanks to <strong>Kiro</strong>, we quickly regenerated the CloudFormation spec, pivoted the design, and re-tested end-to-end.</li><li>The new Lambda@Edge approach is leaner, safer, and globally performant.</li></ul><h3>Takeaway for AWS Developers</h3><p>If you’re protecting your CloudFront resources with signed cookies:</p><ul><li>Prefer <strong>host-only cookies</strong> (no Domain attribute).</li><li>Issue cookies from the <strong>same domain</strong> that serves the protected resources (e.g., via Lambda@Edge on &lt;domain&gt;/issue-cookie*).</li><li>Always test with <strong>multiple subdomains</strong> — the browser’s cookie merging behavior can surprise you.</li></ul><p>The latest version of <strong>WordPress Static Site Guardian</strong> bakes this in, so you can deploy with confidence.</p><p>Links:</p><ul><li><a href="https://github.com/smartcloudsol/site-guardian">GitHub Repo</a></li><li><a href="https://wordpress.org/plugins/gatey/">Gatey Plugin</a></li><li><a href="https://kiro.dev/">Kiro</a></li></ul><h3>A message from our Founder</h3><p><strong>Hey, </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>Sunil</strong></a><strong> here.</strong> I wanted to take a moment to thank you for reading until the end and for being a part of this community.</p><p>Did you know that our team run these publications as a volunteer effort to over 3.5m monthly readers? <strong>We don’t receive any funding, we do this to support the community. ❤️</strong></p><p>If you want to show some love, please take a moment to <strong>follow me on </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>LinkedIn</strong></a><strong>, </strong><a href="https://tiktok.com/@messyfounder"><strong>TikTok</strong></a>, <a href="https://instagram.com/sunilsandhu"><strong>Instagram</strong></a>. You can also subscribe to our <a href="https://newsletter.plainenglish.io/"><strong>weekly newsletter</strong></a>.</p><p>And before you go, don’t forget to <strong>clap</strong> and <strong>follow</strong> the writer️!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d5f2dfdb7a0" width="1" height="1" alt=""><hr><p><a href="https://aws.plainenglish.io/host-only-vs-domain-cookies-in-cloudfront-authentication-1d5f2dfdb7a0">Host-Only vs Domain Cookies in CloudFront Authentication</a> was originally published in <a href="https://aws.plainenglish.io/">AWS in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Fargate to Lambda SnapStart: Scaling Neural Network Engines in Carmen Cloud]]></title>
            <link>https://aws.plainenglish.io/from-fargate-to-lambda-snapstart-scaling-neural-network-engines-in-carmen-cloud-8d4642465404?source=rss-c316992b7870------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d4642465404</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[serverless]]></category>
            <dc:creator><![CDATA[László Tóth]]></dc:creator>
            <pubDate>Mon, 15 Sep 2025 01:19:19 GMT</pubDate>
            <atom:updated>2025-09-15T01:19:19.550Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="White Tesla car recognized by Carmen Cloud ANPR/MMR engine, license plate and attributes highlighted." src="https://cdn-images-1.medium.com/max/1024/1*ZPzMgp_xxooBr7MqRjWgnQ.jpeg" /><figcaption>Carmen Cloud identifies license plates and vehicle attributes in real time, powered by Adaptive Recognition’s neural network engines.</figcaption></figure><p>At Adaptive Recognition, we run <strong>Carmen Cloud</strong>, a service for automatic license plate recognition (ANPR) and make-model recognition (MMR). Our neural network–based engines have been developed and refined in-house for more than 30 years — long before “AI” became the buzzword it is today. For us, AI is business as usual.</p><p>But there’s a catch: initializing them is heavy. Cold startup used to take <strong>up to a full minute</strong>, and adding a new EC2 instance to a target group could take another minute before it became healthy.</p><p>Scaling under load was painful.</p><h3>The Fargate/ECS Approach</h3><p>Our first version of Carmen Cloud ran on <strong>ECS Fargate with EC2-based target groups</strong>.</p><p>For <strong>predictable workloads</strong>, Fargate can be fine — you can even schedule scale-up and scale-down windows to keep costs under control.</p><p>But Carmen Cloud is not predictable. Multiple customers, across multiple regions, send recognition requests at almost random times. Bursts can come from anywhere in the world, at any hour.</p><p>That made Fargate’s trade-offs painful: <br>- <strong>Slow scale-up:</strong> New EC2 instances + engine initialization = ~60 seconds until usable. <br>- <strong>High idle costs:</strong> To stay responsive, we had to keep containers warm 24/7. <br>- <strong>Operational overhead:</strong> Managing ECR images, patching, monitoring, and scaling rules.</p><pre>Request -&gt; ALB -&gt; ECS/Fargate -&gt; EC2 container -&gt; Engine init (~60s)</pre><h3>Early Adoption of SnapStart</h3><p>When <strong>AWS Lambda SnapStart (Java 21)</strong> was released, we migrated <strong>immediately</strong>.</p><p>That made us among the first to see just how well it scales — and how much money it saves.</p><p>Years later, those benefits are still holding true.</p><h3>How SnapStart + CRaC Changed the Game</h3><p>We re-architected Carmen Cloud around <strong>API Gateway + Lambda SnapStart</strong>. With <strong>CRaC (Coordinated Restore at Checkpoint)</strong>, our engines are pre-initialized at <em>checkpoint time</em> and restored instantly.</p><p>But SnapStart came with a limitation: it doesn’t support <strong>&gt;512 MB of ephemeral storage or EFS</strong>. Our regional engine packages (e.g. EUR, NAM) are much larger than that.</p><p>Our solution: a <strong>staged engine loading strategy</strong>. <br>- During initialization, we download a batch of engines from S3. <br>- Each engine is loaded into memory. <br>- Temporary files are deleted to free up space. <br>- Then the next batch is downloaded.</p><p>It’s more complex than mounting storage, but it keeps us under the 512 MB limit — and the scalability gains are worth it.</p><h3>Supporting Architecture</h3><p>Carmen Cloud is more than just Lambda + API Gateway. Here’s what powers the platform:</p><p>- <strong>API Gateway</strong> — entry point for client requests. <br>- <strong>Lambda (SnapStart, Java 21)</strong> — runs recognition engines. <br>- <strong>Cognito </strong>— manages registered users and authentication. <br>- <strong>DynamoDB</strong> — stores API keys, usage statistics, and billing records. <br>- <strong>SNS</strong> — decouples billing: API responds instantly, while another Lambda updates credits in the background. <br>- <strong>Stripe + AWS Marketplace</strong> — integrated via EventBridge for subscription and billing events. <br>- <strong>SSM Parameter Store</strong> — configuration management. <br>- <strong>S3</strong> — stores binaries + temporary customer images. <br>- <strong>CloudFront + WAF + Route53</strong> — global distribution and security.</p><h3>Lessons Learned</h3><p>1. <strong>Decades-old neural engines can run serverless.</strong> With SnapStart + CRaC, even heavy models scale elastically. <br>2. <strong>Checkpoint pre-initialization is a game changer.</strong> What used to take a minute now takes seconds. <br>3. <strong>Closing &amp; reopening network connections is critical.</strong> CRaC cannot persist sockets, so we manage them around checkpoints. <br>4. <strong>Staged loading overcame storage limits.</strong> Batching engines from S3 kept us under 512 MB and still gave us full scale. <br>5. <strong>Being an early adopter paid off.</strong> SnapStart has been saving us cost and scaling pain since day one.</p><h3>Takeaway</h3><p>For workloads with unpredictable traffic and heavy cold-start requirements, <strong>Lambda SnapStart + CRaC is a breakthrough</strong>.</p><p>For Carmen Cloud, it turned an almost unscalable architecture into a <strong>responsive, elastic, and cost-efficient platform</strong>.</p><p>👉 <a href="https://carmencloud.com/">carmencloud.com</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FeIU-TlzeVBA&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DeIU-TlzeVBA&amp;image=http%3A%2F%2Fi.ytimg.com%2Fvi%2FeIU-TlzeVBA%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/3d94e6a98c6c152dbcfe49dd5c73409a/href">https://medium.com/media/3d94e6a98c6c152dbcfe49dd5c73409a/href</a></iframe><p><em>(I lead the cloud business at </em><a href="https://adaptiverecognition.com/"><em>Adaptive Recognition</em></a><em>, where we built Carmen Cloud. I also maintain </em><a href="https://wpsuite.io/"><em>Gatey</em></a><em>, a Cognito plugin for WordPress.)</em></p><h3>A message from our Founder</h3><p><strong>Hey, </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>Sunil</strong></a><strong> here.</strong> I wanted to take a moment to thank you for reading until the end and for being a part of this community.</p><p>Did you know that our team run these publications as a volunteer effort to over 3.5m monthly readers? <strong>We don’t receive any funding, we do this to support the community. ❤️</strong></p><p>If you want to show some love, please take a moment to <strong>follow me on </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>LinkedIn</strong></a><strong>, </strong><a href="https://tiktok.com/@messyfounder"><strong>TikTok</strong></a>, <a href="https://instagram.com/sunilsandhu"><strong>Instagram</strong></a>. You can also subscribe to our <a href="https://newsletter.plainenglish.io/"><strong>weekly newsletter</strong></a>.</p><p>And before you go, don’t forget to <strong>clap</strong> and <strong>follow</strong> the writer️!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d4642465404" width="1" height="1" alt=""><hr><p><a href="https://aws.plainenglish.io/from-fargate-to-lambda-snapstart-scaling-neural-network-engines-in-carmen-cloud-8d4642465404">From Fargate to Lambda SnapStart: Scaling Neural Network Engines in Carmen Cloud</a> was originally published in <a href="https://aws.plainenglish.io/">AWS in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WordPress + Amazon Cognito: Seamless Social & Enterprise SSO with Gatey]]></title>
            <link>https://medium.com/@tothl74/wordpress-amazon-cognito-seamless-social-enterprise-sso-with-gatey-2b7167fb872b?source=rss-c316992b7870------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b7167fb872b</guid>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[sso]]></category>
            <category><![CDATA[cognito]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[László Tóth]]></dc:creator>
            <pubDate>Sun, 14 Sep 2025 12:33:00 GMT</pubDate>
            <atom:updated>2025-09-15T13:02:27.570Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Abstract blue digital grid with light rays symbolizing secure connections and data flow." src="https://cdn-images-1.medium.com/max/1024/1*KiB-f5dduZWkuuZYzdLT2w.jpeg" /><figcaption>Visual metaphor for secure Single Sign-On connections in WordPress using Amazon Cognito and Gatey.</figcaption></figure><p>WordPress sites increasingly need modern authentication — for <strong>enterprise SSO</strong>, <strong>social logins</strong>, or even static exports on <strong>S3 + CloudFront</strong>.</p><p><strong>Amazon Cognito</strong> serves as the identity hub. <strong>Gatey</strong> is the integration layer that makes Cognito work seamlessly inside WordPress. Together they provide secure, scalable login without storing secrets in your database or relying on PHP callbacks.</p><h4>What you get with Cognito + Gatey</h4><ul><li><strong>Enterprise SSO</strong> with OIDC / SAML (Azure AD, Okta, Auth0, Ping, …)</li><li><strong>Social logins</strong> (Google, Facebook, Apple, Amazon)</li><li>Works on both <strong>dynamic WordPress installs</strong> and <strong>static exports</strong></li><li>By wiring a sign-in hook to an IAM-protected API that issues or revokes <strong>CloudFront signed cookies</strong>, you can secure not only your APIs but also any resources served through CloudFront. See <a href="https://wpsuite.io/blog/static-wordpress-authentication-made-simple-deploy-with-the-aws-sar-template/">how the Static Site Guardian SAR template works</a> or <a href="https://medium.com/@tothl74/building-wordpress-static-site-guardian-with-kiro-1f3315e51aca">this Medium write-up</a> if you’d like to understand what it enables in practice — and how it works with <a href="https://kiro.dev/">Kiro</a>.</li></ul><p>Compared to popular SSO plugins like miniOrange or Nextend, <strong>Amazon Cognito + Gatey beats them in many ways — especially if you’re running on the AWS stack</strong>. We’ve published a <a href="https://wpsuite.io/blog/comparison-gatey-vs-popular-wp-sso-plugins-idps/">full breakdown here</a>.</p><p>If you’re building a secure, modern, and <strong>SSO-ready WordPress setup with Amazon Cognito</strong>, Gatey might be the missing piece. For more information, visit <a href="https://wpsuite.io/">wpsuite.io</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b7167fb872b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building WordPress Static Site Guardian with Kiro]]></title>
            <link>https://medium.com/@tothl74/building-wordpress-static-site-guardian-with-kiro-1f3315e51aca?source=rss-c316992b7870------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f3315e51aca</guid>
            <category><![CDATA[spec-driven-development]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[vibe-coding]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[kiro]]></category>
            <dc:creator><![CDATA[László Tóth]]></dc:creator>
            <pubDate>Tue, 09 Sep 2025 13:56:38 GMT</pubDate>
            <atom:updated>2025-09-09T15:29:46.968Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why I started this project</h3><p>Many WordPress site owners want the performance and security of serving their sites statically from S3 and CloudFront. But once a WordPress site is exported as static HTML, all authentication is lost — member areas, profile editing, or premium content become publicly accessible.</p><p>I wanted to create an AWS-native solution that keeps the speed of static hosting, but still protects certain paths with proper authentication. And since AWS was the hackathon sponsor, I felt confident that Kiro could help me build the entire stack with CloudFormation.</p><h3>What the project does</h3><p>The result is a Serverless Application Repository (SAR) template that:</p><ul><li>Hosts a static WordPress export in S3 behind CloudFront</li><li>Protects configurable URL paths with CloudFront signed cookies</li><li>Exposes an API endpoint (API Gateway + Lambda) to issue or clear those cookies</li><li>Uses KMS and SSM for secure key management</li><li>Integrates seamlessly with the <a href="https://wordpress.org/plugins/gatey/">Gatey plugin</a>, which provides Cognito login pages in WordPress and calls the cookie API on sign-in and sign-out</li></ul><p>So when a visitor logs in with Cognito (through Gatey), they automatically receive the correct CloudFront cookie, and protected pages just work.</p><figure><img alt="Sign-in page rendered by Gatey, offering multiple identity providers (Google, Facebook, Auth0) alongside Cognito username/password login." src="https://cdn-images-1.medium.com/max/1024/1*uOuTuDH559Xk0p3QL71Rxg.png" /><figcaption>Sign-in page rendered by Gatey, offering multiple identity providers (Google, Facebook, Auth0) alongside Cognito username/password login.</figcaption></figure><h3>How I built it with Kiro</h3><p>The project started with a single, detailed prompt to Kiro: “<em>Generate a CloudFormation stack that protects a static WordPress export with signed cookies, plus an API Gateway + Lambda for cookie issuance.”</em></p><p>That initial code generation was surprisingly close to usable. I still had to fix and polish things, but the core idea worked — and within a few hours, I had a complete, deployable stack.</p><p>Since I already understood AWS architecture but hadn’t written much CloudFormation before, Kiro helped me bridge the gap. It produced large YAML scaffolds that I would have struggled to write by hand.</p><p>Later, I asked Kiro to generate a reverse specification of the final implementation. That gave me a blueprint describing the actual system, as if it had been designed from scratch. This made it easier to validate the project, plan additional features like cache policies and end-to-end tests, and keep track of what still needed to be done.</p><figure><img alt="Project workspace with Kiro-generated specifications, design documents, and production-readiness tasks." src="https://cdn-images-1.medium.com/max/1024/1*IYp6PXW-hNkCzGJdSEHQIg.png" /><figcaption>Project workspace with Kiro-generated specifications, design documents, and production-readiness tasks.</figcaption></figure><h3>Challenges along the way</h3><p>It wasn’t all smooth sailing. A few things needed manual fixes and deeper AWS knowledge:</p><ul><li><strong>SAR limitations</strong> — Some CloudFront resources (KeyGroup, PublicKey, OAC) aren’t supported directly, so I had to write Lambda-backed custom resources to handle them.</li><li><strong>Cookie expiration</strong> — Making sure cookie lifetimes matched Cognito refresh tokens.</li><li><strong>Domain scoping</strong> — Ensuring cookies applied both to the site and the API subdomain.</li></ul><p>Still, the fact that a working end-to-end stack came together in just a few hours shows how much Kiro accelerated the process.</p><h3>What I learned</h3><ul><li>How to extend SAR with Lambda-backed resources to cover unsupported CloudFront features.</li><li>Practical aspects of CloudFront signed cookies — key management, expiration, scoping.</li><li>The value of mixing a “quick prompt” approach with a more formal, spec-driven phase.</li></ul><h3>Final thoughts</h3><p>Kiro didn’t magically produce a perfect CloudFormation stack on the first try. I had to adjust things and fix some issues. But the important part is that it delivered exactly what I expected: a huge head start. In just a few hours, with limited CloudFormation experience, I went from idea to a working SAR template that anyone can deploy.</p><figure><img alt="Diagram of the WordPress Static Site Guardian architecture, showing S3, CloudFront, API Gateway, Lambda, and supporting AWS services." src="https://cdn-images-1.medium.com/max/1024/1*yL7mSFkdQaSIjDBLtUrIEg.png" /><figcaption>Architecture of WordPress Static Site Guardian: CloudFront serves the static site from S3 and enforces signed cookies, while API Gateway and Lambda handle cookie issuance with KMS and SSM key management.</figcaption></figure><p>That’s why I’m excited about this project. It’s production-ready, but still simple enough for WordPress developers to use. And it shows how AI can really accelerate building real-world, AWS-based solutions.</p><h3>Explore more</h3><ul><li><a href="https://us-east-1.console.aws.amazon.com/lambda/home#/create/app?applicationId=arn:aws:serverlessrepo:us-east-1:637423296378:applications/wordpress-static-site-guardian">AWS Serverless Application Repository</a></li><li><a href="https://github.com/smartcloudsol/wordpress-static-site-guardian">GitHub repository</a></li><li><a href="https://wordpress.org/plugins/gatey/">Gatey plugin</a></li><li><a href="https://wpsuite.io/">WPSuite.io</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f3315e51aca" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>