[{"data":1,"prerenderedAt":464},["ShallowReactive",2],{"bootstrap":3,"blog-optimizing-global-latency-cdn-performance":277},{"navigation":4,"globalConfig":196,"forms":218},{"headerSections":5,"headerFooterLinks":67,"footer":76,"legalLinks":153,"socialLinks":176},[6,39,44,50,57,62],{"hasSubMenu":7,"title":8,"links":9,"columns":38},true,"Product",[10,20,26,32],{"showTag":11,"_modelApiKey":12,"text":13,"subtitle":14,"icon":15,"isExternal":11,"link":16,"openForm":11},false,"navigation_link","Universal checkout","Sell anywhere","globe-simple",{"_modelApiKey":17,"slug":18,"title":19},"page","universal-checkout","Universal Checkout",{"showTag":11,"_modelApiKey":12,"text":21,"subtitle":22,"icon":23,"isExternal":11,"link":24,"openForm":11},"Distributed OMS","Manage orders","package",{"_modelApiKey":17,"slug":25,"title":21},"distributed-oms",{"showTag":11,"_modelApiKey":12,"text":27,"subtitle":28,"icon":29,"isExternal":11,"link":30,"openForm":11},"Promotion engine","Automated discounts","seal-percent",{"_modelApiKey":17,"slug":31,"title":27},"promotion-engine",{"showTag":11,"_modelApiKey":12,"text":33,"subtitle":34,"icon":35,"isExternal":11,"link":36,"openForm":11},"POS system","Operate stores","devices",{"_modelApiKey":17,"slug":37,"title":33},"pos-system",2,{"hasSubMenu":11,"showTag":11,"_modelApiKey":12,"text":40,"isExternal":11,"link":41,"openForm":11,"title":40},"Pricing",{"_modelApiKey":42,"slug":43},"pricing_page","pricing",{"hasSubMenu":11,"showTag":11,"_modelApiKey":12,"text":45,"isExternal":11,"link":46,"openForm":11,"title":45},"Customers",{"_modelApiKey":47,"slug":48,"title":49},"customer_landing_page","customers","Customers page",{"hasSubMenu":11,"showTag":11,"_modelApiKey":12,"text":51,"isExternal":11,"link":52,"openForm":11,"form":54,"title":51},"Partners",{"_modelApiKey":17,"slug":53,"title":51},"partners",{"_modelApiKey":55,"slug":53,"name":56},"form","PartnersForm",{"hasSubMenu":11,"showTag":11,"_modelApiKey":12,"text":58,"label":59,"isExternal":7,"url":60,"openForm":11,"title":61},"Docs Hub","Learn more","https:\u002F\u002Fdocs.commercelayer.io\u002F","Docs",{"hasSubMenu":11,"showTag":11,"_modelApiKey":12,"text":63,"isExternal":11,"link":64,"openForm":11,"title":63},"Blog",{"_modelApiKey":65,"slug":66},"blog_landing_page","blog",[68,72],{"text":69,"link":70},"Sign in",{"_modelApiKey":12,"text":69,"isExternal":7,"url":71,"openForm":11},"https:\u002F\u002Fdashboard.commercelayer.io\u002Fsign_in",{"text":73,"link":74},"Sign up for free",{"_modelApiKey":12,"text":73,"isExternal":7,"url":75,"openForm":11},"https:\u002F\u002Fdashboard.commercelayer.io\u002Fsign_up",[77,89,109,132],{"hasSubMenu":7,"title":8,"links":78},[79,81,83,85,87],{"showTag":11,"_modelApiKey":12,"text":13,"subtitle":14,"icon":15,"isExternal":11,"link":80,"openForm":11},{"_modelApiKey":17,"slug":18,"title":19},{"showTag":11,"_modelApiKey":12,"text":21,"subtitle":22,"icon":23,"isExternal":11,"link":82,"openForm":11},{"_modelApiKey":17,"slug":25,"title":21},{"showTag":11,"_modelApiKey":12,"text":27,"subtitle":28,"icon":29,"isExternal":11,"link":84,"openForm":11},{"_modelApiKey":17,"slug":31,"title":27},{"showTag":11,"_modelApiKey":12,"text":33,"subtitle":34,"icon":35,"isExternal":11,"link":86,"openForm":11},{"_modelApiKey":17,"slug":37,"title":33},{"showTag":11,"_modelApiKey":12,"text":40,"isExternal":11,"link":88,"openForm":11},{"_modelApiKey":42,"slug":43},{"hasSubMenu":7,"title":90,"links":91},"Resources",[92,94,99,104,107],{"showTag":11,"_modelApiKey":12,"text":93,"isExternal":7,"url":60,"openForm":11},"Documentation",{"showTag":11,"_modelApiKey":12,"text":95,"label":95,"isExternal":11,"link":96,"openForm":11},"Agentic Commerce",{"_modelApiKey":17,"slug":97,"title":98},"agentic-commerce-whitepaper","Agentic Commerce Whitepaper",{"showTag":11,"_modelApiKey":12,"text":100,"isExternal":11,"link":101,"openForm":11},"Core concepts",{"_modelApiKey":17,"slug":102,"title":103},"headless-commerce","Headless commerce",{"showTag":11,"_modelApiKey":12,"text":105,"isExternal":7,"url":106,"openForm":11},"Changelog","https:\u002F\u002Fdocs.commercelayer.io\u002Fchangelog\u002F",{"showTag":11,"_modelApiKey":12,"text":63,"isExternal":11,"link":108,"openForm":11},{"_modelApiKey":65,"slug":66},{"hasSubMenu":7,"title":110,"links":111},"Company",[112,116,118,121,126],{"showTag":11,"_modelApiKey":12,"text":113,"isExternal":11,"link":114,"openForm":11},"Vision",{"_modelApiKey":17,"slug":115,"title":113},"vision",{"showTag":11,"_modelApiKey":12,"text":45,"isExternal":11,"link":117,"openForm":11},{"_modelApiKey":47,"slug":48,"title":49},{"showTag":11,"_modelApiKey":12,"text":51,"isExternal":11,"link":119,"openForm":11,"form":120},{"_modelApiKey":17,"slug":53,"title":51},{"_modelApiKey":55,"slug":53,"name":56},{"showTag":11,"_modelApiKey":12,"text":122,"isExternal":11,"link":123,"openForm":11},"Security",{"_modelApiKey":17,"slug":124,"title":125},"security","Security at Commerce Layer",{"showTag":11,"_modelApiKey":12,"text":127,"label":128,"isExternal":11,"openForm":7,"form":129},"Giveback","Giveback program",{"_modelApiKey":55,"slug":130,"name":131},"giveback","GivebackForm",{"hasSubMenu":7,"title":133,"links":134},"Get in touch",[135,140,145,149],{"showTag":11,"_modelApiKey":12,"text":136,"isExternal":11,"openForm":7,"form":137},"Contact",{"_modelApiKey":55,"slug":138,"name":139},"contact","ContactUsForm",{"showTag":11,"_modelApiKey":12,"text":141,"isExternal":11,"openForm":7,"form":142},"Book a demo",{"_modelApiKey":55,"slug":143,"name":144},"demo","RequestDemoForm",{"showTag":11,"_modelApiKey":12,"text":146,"label":147,"isExternal":7,"url":148,"openForm":11},"Support","Email support","mailto:support@commercelayer.io",{"showTag":11,"_modelApiKey":12,"text":150,"label":151,"isExternal":7,"url":152,"openForm":11},"Community","Discord community","https:\u002F\u002Fdiscord.gg\u002Fcommercelayer",{"hasSubMenu":7,"title":154,"links":155},"Legal",[156,161,165,169,173],{"showTag":11,"_modelApiKey":12,"text":157,"label":158,"isExternal":7,"url":159,"openForm":11,"htmlClassNames":160},"Terms","Terms and conditions","\u002Flegal-embed\u002Fterms-of-service","iubenda-nostyle no-brand iubenda-noiframe iubenda-embed",{"showTag":11,"_modelApiKey":12,"text":162,"label":163,"isExternal":7,"url":164,"openForm":11,"htmlClassNames":160},"Privacy","Privacy policy","\u002Flegal-embed\u002Fprivacy-policy",{"showTag":11,"_modelApiKey":12,"text":166,"label":167,"isExternal":7,"url":168,"openForm":11,"htmlClassNames":160},"Cookies","Cookie policy","\u002Flegal-embed\u002Fcookie-policy",{"showTag":11,"_modelApiKey":12,"text":170,"isExternal":7,"url":171,"openForm":11,"htmlClassNames":172},"Notice at collection","#","iubenda-cs-uspr-link",{"showTag":11,"_modelApiKey":12,"text":174,"isExternal":7,"url":171,"openForm":11,"htmlClassNames":175},"Privacy preferences","iubenda-cs-preferences-link",[177,180,184,188,192],{"title":178,"type":179,"url":152,"isExternal":7},"Discord","discord-logo",{"title":181,"type":182,"url":183,"isExternal":7},"Github","github","https:\u002F\u002Fgithub.com\u002Fcommercelayer",{"title":185,"type":186,"url":187,"isExternal":7},"Bluesky","bluesky-logo","https:\u002F\u002Fbsky.app\u002Fprofile\u002Fcommercelayer.io",{"title":189,"type":190,"url":191,"isExternal":7},"X","x-logo","https:\u002F\u002Fx.com\u002Fcommercelayer",{"title":193,"type":194,"url":195,"isExternal":7},"LinkedIn","linkedin","https:\u002F\u002Fwww.linkedin.com\u002Fcompany\u002Fcommerce-layer",{"pagesWithoutCtaPanel":197,"ctaPanel":198,"notification":208,"showApiResponseTime":11,"newsletterSignup":216},[],{"title":199,"subtitle":200,"ctas":201},"Ready to get started?","Discover how we can help your business.",[202,205],{"_modelApiKey":203,"text":204,"isExternal":7,"url":75,"openForm":11},"link","Get started for free",{"_modelApiKey":203,"text":206,"isExternal":11,"openForm":7,"form":207},"Contact us",{"_modelApiKey":55,"slug":138,"name":139},{"showNotification":7,"link":209,"linkText":210,"text":215},{"_modelApiKey":203,"text":210,"isExternal":11,"link":211,"openForm":11},"Read article",{"_modelApiKey":212,"slug":213,"title":214},"blog_post","the-new-payments-api-built-for-how-people-pay-now","The new Payments API. Built for how people pay now.","\u003Cp>The new Payments API. Built for how people pay now.\u003C\u002Fp>\n",{"ctaText":217},"Subscribe",[219,225,229,236,240,246,249,253,261,262,267,272,274],{"_modelApiKey":55,"slug":220,"pardotFormEmbedCode":221,"formEmbedMinHeight":222,"successTitle":223,"successCopy":224},"agentic-commerce","https:\u002F\u002Fcommercelayer.fillout.com\u002Ft\u002F5w4Khwgxr6us?whitepaper=agentic",520,"Thank you for your request!","We’ll be in touch soon to arrange a date and time for your personalized demo.",{"_modelApiKey":55,"slug":226,"pardotFormEmbedCode":227,"formEmbedMinHeight":228,"successTitle":223,"successCopy":224},"shopify","https:\u002F\u002Fform.fillout.com\u002Ft\u002FgVnLSmKZwRus",850,{"_modelApiKey":55,"slug":130,"pardotFormEmbedCode":230,"formEmbedMinHeight":231,"displayTitle":232,"copy":233,"successTitle":234,"successCopy":235},"https:\u002F\u002Fform.fillout.com\u002Ft\u002FmVDF8aAiofus",500,"We give back.","\u003Cp>Part of Commerce Layer&#39;s company ethos is to empathize and support one another: co-workers, customers, and community. We want to do our part to help nonprofit organizations and small businesses who may feel adversely affected by the current global economic climate, and as a result, need in-kind support to reach their customers.\u003C\u002Fp>\n\n\u003Cp>If this general description matches your organization’s needs, please tell us your story by completing the following form so we can consider helping your cause.\u003C\u002Fp>\n","Thank you!","We will contact you soon to learn more about your story.",{"_modelApiKey":55,"slug":237,"pardotFormEmbedCode":227,"formEmbedMinHeight":228,"displayTitle":238,"copy":239},"book-an-onboarding-session","Book an onboarding session","\u003Cp>Schedule some time and our devs will help you set up a Commerce Layer + Sanity store.\u003C\u002Fp>\n",{"_modelApiKey":55,"slug":241,"pardotFormEmbedCode":242,"formEmbedMinHeight":243,"displayTitle":244,"successTitle":234,"successCopy":245},"download-our-whitepaper","https:\u002F\u002Fform.fillout.com\u002Ft\u002F5YPWmy8oT7us?whitepaper=ComposableCommerce",450,"Download our whitepaper.","Check your inbox. You should receive a download link soon.",{"_modelApiKey":55,"slug":247,"pardotFormEmbedCode":248,"formEmbedMinHeight":243,"displayTitle":244,"successTitle":234,"successCopy":245},"download-the-content-and-commerce-whitepaper","https:\u002F\u002Fform.fillout.com\u002Ft\u002F5YPWmy8oT7us?whitepaper=ContentAndCommerce",{"_modelApiKey":55,"slug":250,"pardotFormEmbedCode":251,"formEmbedMinHeight":243,"displayTitle":244,"copy":252,"successTitle":234,"successCopy":245},"whitepaper","https:\u002F\u002Fform.fillout.com\u002Ft\u002F5YPWmy8oT7us?whitepaper=Jamstack","\u003Cp>Commerce Layer is the perfect platform for building commerce on the Jamstack. Convert any design into pixel perfect HTML pages. Connect a best-of-breed headless CMS. Go serverless and forget the hassle of managing complex infrastructures.\u003C\u002Fp>\n",{"_modelApiKey":55,"slug":254,"pardotFormEmbedCode":255,"formEmbedMinHeight":256,"displayTitle":257,"copy":258,"successTitle":259,"successCopy":260},"contact-links","https:\u002F\u002Fform.fillout.com\u002Ft\u002FeWPyhHGHT7us",750,"Contact us.","\u003Cp>Tell us about your project. Our team will reach out to you for a personalized offer.\u003C\u002Fp>\n","Thanks for your message!","We’ll be in touch soon to discuss your project details.",{"_modelApiKey":55,"slug":138,"pardotFormEmbedCode":255,"formEmbedMinHeight":256,"displayTitle":257,"copy":258,"successTitle":259,"successCopy":260},{"_modelApiKey":55,"slug":263,"pardotFormEmbedCode":227,"formEmbedMinHeight":228,"displayTitle":264,"successTitle":265,"successCopy":266},"demo-embed","Want to see it in action? Request a demo.","Thanks for your request!","We’ll be in touch soon to arrange a date and time for your free live demo.",{"_modelApiKey":55,"slug":53,"pardotFormEmbedCode":268,"formEmbedMinHeight":228,"displayTitle":269,"copy":270,"successTitle":234,"successCopy":271},"https:\u002F\u002Fform.fillout.com\u002Ft\u002F9MTkDWMUSqus","Become our partner.","\u003Cp>Join us and get our guidance in helping your clients succeed. Our partners are our ambassadors. We are committed to your success as much as you are.\u003C\u002Fp>\n","We will contact you soon to discuss the details of our partnership.",{"_modelApiKey":55,"slug":273,"pardotFormEmbedCode":268,"formEmbedMinHeight":228,"displayTitle":269,"copy":270,"successTitle":234,"successCopy":271},"partners-embed",{"_modelApiKey":55,"slug":143,"pardotFormEmbedCode":227,"formEmbedMinHeight":228,"displayTitle":275,"copy":276,"successTitle":265,"successCopy":266},"Get a free live demo.","\u003Cp>Get a personalized demo and learn more about what Commerce Layer can do for your company.\u003C\u002Fp>\n",{"_modelApiKey":212,"link":278,"subtitle":283,"date":283,"author":284,"additionalAuthors":294,"icon":295,"abstract":296,"tag":297,"displayTitle":279,"cardRatio":299,"featured":11,"seoMetaTags":300,"layout":364,"blogPostCarousel":302,"_seoMetaTags":425,"authors":459},{"text":279,"isExternal":11,"url":280,"link":281},"Optimizing global latency: how Commerce Layer supercharged CDN performance.","",{"_modelApiKey":212,"slug":282},"optimizing-global-latency-cdn-performance","November 6, 2025",{"name":285,"picture":286},"Diego Mantellassi",{"url":287,"alt":288,"title":288,"width":289,"height":289,"format":290,"focalPoint":291,"customData":293},"https:\u002F\u002Fwww.datocms-assets.com\u002F35053\u002F1762192623-diego.jpg","Diego Mantellassi avatar",1280,"jpg",{"x":292,"y":292},0.5,{},[],"rocket-launch","How we reduced global response times by up to 47% through smart CDN optimizations — synthetic edge responses and origin shielding across distant regions.",{"color":298,"name":8},"gray","portrait",[301,305,309,312,316,319,322,326,330,334,337,341,345,349,353,356,360],{"attributes":302,"tag":303,"content":304},null,"title","How Commerce Layer supercharged global CDN performance",{"attributes":306,"tag":308,"content":302},{"property":307,"content":304},"og:title","meta",{"attributes":310,"tag":308,"content":302},{"name":311,"content":304},"twitter:title",{"attributes":313,"tag":308,"content":302},{"name":314,"content":315},"description","Commerce Layer boosts CDN performance with edge optimizations and origin shielding, cutting global API latency and improving TTFB worldwide.",{"attributes":317,"tag":308,"content":302},{"property":318,"content":315},"og:description",{"attributes":320,"tag":308,"content":302},{"name":321,"content":315},"twitter:description",{"attributes":323,"tag":308,"content":302},{"property":324,"content":325},"og:image","https:\u002F\u002Fwww.datocms-assets.com\u002F35053\u002F1762192791-cdn-improvements-thumb.jpg?auto=format&fit=max&w=1200",{"attributes":327,"tag":308,"content":302},{"property":328,"content":329},"og:image:width","1200",{"attributes":331,"tag":308,"content":302},{"property":332,"content":333},"og:image:height","630",{"attributes":335,"tag":308,"content":302},{"name":336,"content":325},"twitter:image",{"attributes":338,"tag":308,"content":302},{"property":339,"content":340},"og:locale","en",{"attributes":342,"tag":308,"content":302},{"property":343,"content":344},"og:type","article",{"attributes":346,"tag":308,"content":302},{"property":347,"content":348},"og:site_name","Commerce Layer",{"attributes":350,"tag":308,"content":302},{"property":351,"content":352},"article:modified_time","2025-11-06T15:07:35Z",{"attributes":354,"tag":308,"content":302},{"property":355,"content":280},"article:publisher",{"attributes":357,"tag":308,"content":302},{"name":358,"content":359},"twitter:card","summary_large_image",{"attributes":361,"tag":308,"content":302},{"name":362,"content":363},"twitter:site","@commercelayer",[365,371,375,378,381,384,387,390,393,403,406,409,412,415,422],{"_modelApiKey":366,"copy":367,"listStyle":368,"darkTheme":11,"buttons":369,"color":370,"indent":7},"wysiwyg","\u003Cp>At Commerce Layer, we live and breathe performance. Every millisecond matters when you’re running commerce APIs at global scale. Our customers expect near-instant responses, and that means constantly tuning the network so that the &quot;distance&quot; between user and data keeps shrinking — even when they’re halfway around the world.\u003C\u002Fp>\n\n\u003Cp>Recently, we introduced two key CDN-level improvements that have significantly reduced response times across all regions:\u003C\u002Fp>\n\n\u003Cul>\n\u003Cli>\u003Cstrong>Synthetic responses to browsers’ pre-flight requests at the edge\u003C\u002Fstrong>\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Origin shielding for distant regions\u003C\u002Fstrong>\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Cp>Each tackles a different type of latency, but together they’ve driven measurable gains in our core performance metric — \u003Cstrong>time to first byte (TTFB)\u003C\u002Fstrong> — for both average and tail latencies.\u003C\u002Fp>\n","checkbox",[],"violet",{"_modelApiKey":366,"copy":372,"listStyle":373,"darkTheme":11,"buttons":374,"color":370,"indent":11},"\u003Ch3>Synthetic responses to pre-flight requests at the edge\u003C\u002Fh3>\n\n\u003Cp>Modern web applications rely heavily on cross-origin resource sharing (CORS). Whenever a browser makes an API call that includes custom headers, credentials, or non-simple methods (like \u003Ccode>PUT\u003C\u002Fcode>, \u003Ccode>PATCH\u003C\u002Fcode>, or \u003Ccode>DELETE\u003C\u002Fcode>), it first sends a \u003Cstrong>pre-flight request\u003C\u002Fstrong> — an HTTP \u003Ccode>OPTIONS\u003C\u002Fcode> call — to verify that the target server permits the operation.\u003C\u002Fp>\n\n\u003Cp>Pre-flight requests are small and informational, but the irony is that they often travel as far as a real API request would. That round trip adds latency to every subsequent call and inflates perceived response times, especially for UI elements such as MFEs or Drop-Ins.\u003C\u002Fp>\n\n\u003Cp>Even with caching, this setup means unnecessary network hops for millions of lightweight requests every day. Given that pre-flights represented \u003Cstrong>13.26% of total traffic\u003C\u002Fstrong>, this overhead had a real, measurable impact on global latency.\u003C\u002Fp>\n","directional",[],{"_modelApiKey":366,"copy":376,"listStyle":373,"darkTheme":11,"buttons":377,"color":370,"indent":11},"\u003Ch4>The optimization\u003C\u002Fh4>\n\n\u003Cp>We implemented \u003Cstrong>synthetic pre-flight responses\u003C\u002Fstrong> directly at the CDN edge. In practice, this means the edge node instantly recognizes a valid pre-flight request and generates the appropriate \u003Ccode>OPTIONS\u003C\u002Fcode> response \u003Cstrong>without ever contacting the origin\u003C\u002Fstrong>.\u003C\u002Fp>\n\n\u003Cp>Here’s what happens now:\u003C\u002Fp>\n\n\u003Col>\n\u003Cli>The CDN edge inspects incoming \u003Ccode>OPTIONS\u003C\u002Fcode> requests.\u003C\u002Fli>\n\u003Cli>If the request matches the expected CORS patterns (verified domain, methods, headers), it immediately returns a \u003Cstrong>synthetic\u003C\u002Fstrong> \u003Ccode>204 No content\u003C\u002Fcode> with the correct \u003Ccode>Access-Control-Allow-*\u003C\u002Fcode> headers.\u003C\u002Fli>\n\u003Cli>The request never leaves the edge, eliminating the origin round trip.\u003C\u002Fli>\n\u003Cli>The browser receives the response in near-zero time and proceeds to send the actual API call.\u003C\u002Fli>\n\u003C\u002Fol>\n\n\u003Cp>This logic runs at the CDN’s edge scripting layer, integrated into our caching configuration. The synthetic response includes dynamically maintained values for:\u003C\u002Fp>\n\n\u003Cul>\n\u003Cli>\u003Ccode>Access-Control-Allow-Origin\u003C\u002Fcode> — based on the request’s \u003Ccode>Origin\u003C\u002Fcode> header and our configured allowlist.\u003C\u002Fli>\n\u003Cli>\u003Ccode>Access-Control-Allow-Methods\u003C\u002Fcode> and \u003Ccode>Access-Control-Allow-Headers\u003C\u002Fcode> — aligned with API contract metadata.\u003C\u002Fli>\n\u003Cli>\u003Ccode>Access-Control-Max-Age\u003C\u002Fcode> — to let browsers cache the permission check.\u003C\u002Fli>\n\u003C\u002Ful>\n",[],{"_modelApiKey":366,"copy":379,"listStyle":368,"darkTheme":11,"buttons":380,"color":370,"indent":11},"\u003Ch4>Benefits beyond latency\u003C\u002Fh4>\n\n\u003Cul>\n\u003Cli>\u003Cstrong>\u003Cem>Reduced origin load\u003C\u002Fem>\u003C\u002Fstrong>---Millions of pre-flight requests no longer hit the origin, freeing resources for actual API operations.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Cem>Lower bandwidth cost\u003C\u002Fem>\u003C\u002Fstrong>---The edge logic ensures CORS behavior is uniform worldwide, even if origin clusters differ slightly in configuration.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Cem>Instantaneous response times\u003C\u002Fem>\u003C\u002Fstrong>---The TTFB for pre-flights is effectively zero, since the edge serves the request immediately.\u003C\u002Fli>\n\u003C\u002Ful>\n",[],{"_modelApiKey":366,"copy":382,"listStyle":368,"darkTheme":11,"buttons":383,"color":370,"indent":11},"\u003Ch4>The results\u003C\u002Fh4>\n\n\u003Cp>While these requests represent only a fraction of total traffic, their optimization had an outsized global impact:\u003C\u002Fp>\n\n\u003Cul>\n\u003Cli>\u003Cstrong>Pre-flight TTFB reduced to near zero\u003C\u002Fstrong>.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Global average TTFB decreased by 23.4%\u003C\u002Fstrong>.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>95th-percentile TTFB improved by 13.3%\u003C\u002Fstrong>.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Cp>In short, we eliminated a category of latency that had been silently slowing down a significant share of requests worldwide.\u003C\u002Fp>\n",[],{"_modelApiKey":366,"copy":385,"listStyle":373,"darkTheme":11,"buttons":386,"color":370,"indent":11},"\u003Ch3>Origin shielding for regions distant from US\u002FEU\u003C\u002Fh3>\n\n\u003Cp>While synthetic responses improved performance everywhere, customers in regions far from our origins — like Asia-Pacific, Latin America, and Africa — still experienced longer response times due to simple physics: distance. To fix that, we implemented the CDN’s origin shield feature to bring data effectively “closer” to those users.\u003C\u002Fp>\n",[],{"_modelApiKey":366,"copy":388,"listStyle":373,"darkTheme":11,"buttons":389,"color":370,"indent":11},"\u003Ch4>How origin shielding works\u003C\u002Fh4>\n\n\u003Cp>A \u003Cstrong>shield\u003C\u002Fstrong> is a designated CDN Point of Presence (POP) that sits between the outer edge POPs and the origin. Rather than each edge contacting the origin on a cache miss, edges forward those requests to the shield POP.\u003C\u002Fp>\n\n\u003Cp>If the shield has the object cached, it replies immediately. If not, it fetches it once from the origin, caches it, and serves subsequent requests locally.\u003C\u002Fp>\n\n\u003Cp>This architecture reduces the number of direct origin fetches and consolidates traffic, creating a single optimized path per region.\u003C\u002Fp>\n",[],{"_modelApiKey":366,"copy":391,"listStyle":368,"darkTheme":11,"buttons":392,"color":370,"indent":11},"\u003Ch4>Our implementation\u003C\u002Fh4>\n\n\u003Cp>We identified the best POP to act as shield for each of our origins - i.e. evaluating factors such as distance from origin, capacity and level of congestion. Since each request is assigned a specific origin as destination, we configured edge POPs in distant regions to forward misses to that origin’s shield POP.\u003C\u002Fp>\n\n\u003Cp>By consolidating origin requests this way, we achieved:\u003C\u002Fp>\n\n\u003Cul>\n\u003Cli>\u003Cstrong>Lower round-trip times\u003C\u002Fstrong> between edge and shield (as both are on the CDN backbone).\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Fewer duplicate origin requests\u003C\u002Fstrong>, improving cache efficiency.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Reduced variability\u003C\u002Fstrong>, especially for 95th-percentile latency, since shield fetches are over optimized internal links.\u003C\u002Fli>\n\u003C\u002Ful>\n",[],{"_modelApiKey":394,"border":11,"caption":280,"image":395,"size":402,"darkTheme":11,"rounded":11,"color":370},"image_block",{"url":396,"alt":397,"title":397,"width":398,"height":399,"format":400,"focalPoint":302,"customData":401},"https:\u002F\u002Fwww.datocms-assets.com\u002F35053\u002F1762430861-cdn-shielding.svg","CDN shielding diagram",981,1154,"svg",{},"standard",{"_modelApiKey":366,"copy":404,"listStyle":368,"darkTheme":11,"buttons":405,"color":370,"indent":11},"\u003Ch4>The results\u003C\u002Fh4>\n\n\u003Cp>In all involved regions:\u003C\u002Fp>\n\n\u003Cul>\n\u003Cli>\u003Cstrong>Average TTFB improved by 47.1%\u003C\u002Fstrong>\u003C\u002Fli>\n\u003Cli>\u003Cstrong>95th-percentile TTFB improved by 44.9%\u003C\u002Fstrong>\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Cp>That’s nearly half the latency gone for users previously farthest from our origins.\u003C\u002Fp>\n",[],{"_modelApiKey":366,"copy":407,"listStyle":373,"darkTheme":11,"buttons":408,"color":370,"indent":11},"\u003Ch3>Delivering performance that scales with growth\u003C\u002Fh3>\n\n\u003Cp>Together, these two improvements — \u003Cstrong>synthetic pre-flight responses\u003C\u002Fstrong> and \u003Cstrong>origin shielding\u003C\u002Fstrong> — attack latency at both the micro and macro levels. One trims unnecessary network hops globally; the other re-architects how data flows across continents.\u003C\u002Fp>\n",[],{"_modelApiKey":410,"icon":295,"copy":411,"color":370},"banner","\u003Cp>The outcome is faster, more consistent API performance, less load on origins, and a better experience for every Commerce Layer customer, wherever they build and deploy.\u003C\u002Fp>\n",{"_modelApiKey":366,"copy":413,"listStyle":373,"darkTheme":11,"buttons":414,"color":370,"indent":11},"\u003Ch3>Enabling the next generation of AI-driven and agentic commerce\u003C\u002Fh3>\n\n\u003Cp>These optimizations don’t just make human-driven commerce faster — they also lay the groundwork for \u003Cstrong>AI agentic commerce\u003C\u002Fstrong>, where autonomous systems make, manage, and optimize transactions on behalf of users.\u003C\u002Fp>\n",[],{"_modelApiKey":416,"title":417,"preTitle":418,"linkText":419,"darkTheme":11,"link":420},"link_block","Principles of Agentic Commerce","White paper","Download",{"_modelApiKey":203,"text":419,"label":280,"subtitle":280,"icon":280,"isExternal":11,"url":280,"link":421,"anchor":280,"openForm":11,"form":302,"htmlClassNames":280},{"_modelApiKey":17,"slug":97,"title":98},{"_modelApiKey":366,"copy":423,"listStyle":368,"darkTheme":11,"buttons":424,"color":370,"indent":11},"\u003Cp>In this emerging model, \u003Cstrong>speed, predictability, and data freshness\u003C\u002Fstrong> become even more critical. Agent-based systems — such as shopping bots, inventory optimizers, and personalization engines — operate in real time and depend on rapid API feedback loops to act intelligently.\u003C\u002Fp>\n\n\u003Cp>By minimizing network latency at both the edge and the origin, our CDN improvements unlock several key advantages for AI-driven commerce:\u003C\u002Fp>\n\n\u003Cul>\n\u003Cli>\u003Cstrong>\u003Cem>Real-time decisioning\u003C\u002Fem>\u003C\u002Fstrong>---Agents can evaluate offers, prices, and stock availability with near-zero lag, enabling dynamic purchasing or repricing at scale.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Cem>Higher reliability for autonomous workflows\u003C\u002Fem>\u003C\u002Fstrong>---Reduced tail latency (95th percentile TTFB) ensures that long or chained API sequences complete without timeouts or bottlenecks.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Cem>Improved data coherence\u003C\u002Fem>\u003C\u002Fstrong>---With faster propagation through shields and consistent edge responses, AI systems maintain a more accurate view of global commerce states.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Cem>Lower compute overhead\u003C\u002Fem>\u003C\u002Fstrong>---By cutting network latency, AI agents spend less time idling between calls, improving overall throughput and cost efficiency.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Cp>These capabilities turn performance from a metric into an enabler — allowing both human developers and intelligent agents to build responsive, adaptive, and high-frequency commerce experiences on top of Commerce Layer’s APIs.\u003C\u002Fp>\n",[],[426,427,429,431,433,435,437,439,441,443,445,447,449,451,453,455,457],{"attributes":302,"tag":303,"content":304},{"attributes":428,"tag":308,"content":302},{"property":307,"content":304},{"attributes":430,"tag":308,"content":302},{"name":311,"content":304},{"attributes":432,"tag":308,"content":302},{"name":314,"content":315},{"attributes":434,"tag":308,"content":302},{"property":318,"content":315},{"attributes":436,"tag":308,"content":302},{"name":321,"content":315},{"attributes":438,"tag":308,"content":302},{"property":324,"content":325},{"attributes":440,"tag":308,"content":302},{"property":328,"content":329},{"attributes":442,"tag":308,"content":302},{"property":332,"content":333},{"attributes":444,"tag":308,"content":302},{"name":336,"content":325},{"attributes":446,"tag":308,"content":302},{"property":339,"content":340},{"attributes":448,"tag":308,"content":302},{"property":343,"content":344},{"attributes":450,"tag":308,"content":302},{"property":347,"content":348},{"attributes":452,"tag":308,"content":302},{"property":351,"content":352},{"attributes":454,"tag":308,"content":302},{"property":355,"content":280},{"attributes":456,"tag":308,"content":302},{"name":358,"content":359},{"attributes":458,"tag":308,"content":302},{"name":362,"content":363},[460],{"name":285,"picture":461},{"url":287,"alt":288,"title":288,"width":289,"height":289,"format":290,"focalPoint":462,"customData":463},{"x":292,"y":292},{},1791534732200]