<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CloudFront Archives | Cloudar</title>
	<atom:link href="https://cloudar.be/tag/cloudfront/feed/" rel="self" type="application/rss+xml" />
	<link>https://cloudar.be/tag/cloudfront/</link>
	<description>100% Focus On AWS // 100% Customer Obsession</description>
	<lastBuildDate>Mon, 29 Jan 2024 09:43:44 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Enhancing redirect strategies with AWS CloudFront Functions and KeyValueStore</title>
		<link>https://cloudar.be/awsblog/enhancing-redirect-strategies-with-aws-cloudfront-functions-and-keyvaluestore/</link>
		
		<dc:creator><![CDATA[Patrick Daulie]]></dc:creator>
		<pubDate>Mon, 29 Jan 2024 09:43:44 +0000</pubDate>
				<category><![CDATA[Serverless]]></category>
		<category><![CDATA[CloudFront]]></category>
		<guid isPermaLink="false">https://cloudar.be/?p=21937</guid>

					<description><![CDATA[<p>Elevating Your E-Commerce Experience with AWS More and more, e-commerce businesses turn to serverless and cost-efficient hosting solutions from AWS, often combining CloudFront with S3, alongside other AWS services and third party APIs. Let&#8217;s take a real-life example: a common challenge encountered in e-commerce is the graceful conclusion of a &#8216;flash sales&#8217; event on a [&#8230;]</p>
<p>The post <a href="https://cloudar.be/awsblog/enhancing-redirect-strategies-with-aws-cloudfront-functions-and-keyvaluestore/">Enhancing redirect strategies with AWS CloudFront Functions and KeyValueStore</a> appeared first on <a href="https://cloudar.be">Cloudar</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3>Elevating Your E-Commerce Experience with AWS</h3>
<p>More and more, e-commerce businesses turn to serverless and cost-efficient hosting solutions from AWS, often combining CloudFront with S3, alongside other AWS services and third party APIs.</p>
<p>Let&#8217;s take a real-life example: a common challenge encountered in e-commerce is the graceful conclusion of a &#8216;flash sales&#8217; event on a predefined date and time. Ensuring a seamless transition as these sales come to an end, is essential for maintaining customer satisfaction and fostering long-term loyalty.</p>
<p>In this case you want to avoid website redeployments or server-side changes. You could make use of a simple URL redirect &#8216;toggle switch&#8217;.<br />
Enter AWS’s power at the edge : AWS CloudFront Functions and CloudFront KeyValueStore!</p>
<p>This blog post will explore how I used this simple, yet powerful (and new!) KeyValueStore feature to redirect users after sales end, without server-side headaches or code changes.</p>
<h3>Creating a Seamless User Experience with CloudFront Functions :</h3>
<p>CloudFront Functions brings computation to the edge, closer to the user, which results in lightning-fast execution. By attaching a function to my CloudFront distribution and linking it to a KeyValueStore, I could easily manage the flash sales states with minimal effort. The function checks a value in the KeyValueStore and if it’s “off,” users are redirected to a “Sale Ended” page.</p>
<p>As you can see in the screenshot of the Cloudfront Functions code, it is pretty straightforward to request the value of a key and then use it in your function logic.</p>
<p><img decoding="async" src="https://cloudar.be/wp-content/uploads/2024/01/kvs.png" alt="Cloudfront KeyValueStore Function" /></p>
<p>Now you can use the value of the “Sales” KeyValue in your function logic.<br />
This example performs a redirect when the Flash Sales has ended :</p>
<p><img decoding="async" src="https://cloudar.be/wp-content/uploads/2024/01/Redirect-kvs.png" alt="Cloudfront Redirect Function" /></p>
<p>You can probably discover other use cases or solutions built upon this feature, such as A/B testing, feature flags or access authorization based on data stored in the KeyValueStore.</p>
<p>Stay tuned for more posts, where I’ll dive deeper into the benefits of AWS serverless technologies, helping you tap into the potential of the cloud for your e-commerce and other application needs!</p>
<p>Do not underestimate the power of AWS Cloudfront Functions: it has supersonic execution times for your Viewer requests and Viewer Responses. Think about cache-key and header manipulation, access authorization at the Edge. And as mentioned, nifty URL rewrite and redirect capabilities.</p>
<p>In one of my upcoming blog posts, I will be adding more functionalities to Cloudfront/S3 web applications. So don’t miss out on the insights – follow our blog and join me on this journey to unlock the full potential of serverless architectures with AWS!</p>
<h3>Conclusion:</h3>
<p><strong>CloudFront Functions and KeyValueStore simplify redirection after flash sales, showcasing the potency of edge computing.</strong></p>
<p>The post <a href="https://cloudar.be/awsblog/enhancing-redirect-strategies-with-aws-cloudfront-functions-and-keyvaluestore/">Enhancing redirect strategies with AWS CloudFront Functions and KeyValueStore</a> appeared first on <a href="https://cloudar.be">Cloudar</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Using Route53 to support on-demand applications</title>
		<link>https://cloudar.be/awsblog/using-route53-to-support-on-demand-applications/</link>
					<comments>https://cloudar.be/awsblog/using-route53-to-support-on-demand-applications/#respond</comments>
		
		<dc:creator><![CDATA[Ben Bridts]]></dc:creator>
		<pubDate>Tue, 22 Nov 2016 11:44:20 +0000</pubDate>
				<category><![CDATA[AWS Blog]]></category>
		<category><![CDATA[CloudFront]]></category>
		<category><![CDATA[Cost]]></category>
		<category><![CDATA[Lambda]]></category>
		<category><![CDATA[Route53]]></category>
		<guid isPermaLink="false">https://cloudar.be/?p=3670</guid>

					<description><![CDATA[<p>One of the best ways to save money on AWS is turning resources off when you don&#8217;t use them. This is pretty easy to automate if you have consistent usage patterns (like an application that&#8217;s only used during business hours), but can be harder if the usage is very irregular (for example an application that&#8217;s [&#8230;]</p>
<p>The post <a href="https://cloudar.be/awsblog/using-route53-to-support-on-demand-applications/">Using Route53 to support on-demand applications</a> appeared first on <a href="https://cloudar.be">Cloudar</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>One of the best ways to save money on AWS is turning resources off when you don&#8217;t use them. This is pretty easy to automate if you have consistent usage patterns (like an application that&#8217;s only used during business hours), but can be harder if the usage is very irregular (for example an application that&#8217;s only used a few times per quarter).</p>
<p>We recently worked with a customer that had some applications that could be without usage for months. To be more cost efficient, they were looking for a solution where:</p>
<ul>
<li>They could turn off as much instances and services as possible</li>
<li>The users could start the application with one button click if they needed to use it</li>
<li>The users didn&#8217;t have AWS credentials</li>
</ul>
<p>We came up with the following solution to satisfy these requirements, and if you&#8217;re running the same kind of applications, maybe you can also reduce costs by implementing this.</p>
<p><img fetchpriority="high" decoding="async" src="https://cloudar.be/wp-content/uploads/2016/11/Untitled-15.png" alt="" width="730" height="815" class="alignnone size-full wp-image-5971" srcset="https://cloudar.be/wp-content/uploads/2016/11/Untitled-15.png 730w, https://cloudar.be/wp-content/uploads/2016/11/Untitled-15-645x720.png 645w" sizes="(max-width: 730px) 100vw, 730px" /></p>
<p>This solutions works by taking advantage of the Route53 health checks. We&#8217;ve split up our infrastructure in two parts: an always-on part that uses low cost or usage based services to provide the user with a way to start the real application; and a part that can started and stopped on demand.</p>
<p>We configure the on-demand part to be the primary resource in Route53 and the always-on part as a failover. This way the traffic will be routed to the real application if it&#8217;s online, and the user will get a static webpage that gives him the option to start the application if it&#8217;s not.</p>
<p>If we look at how this would go if the application is offline, these are the steps that would happen:</p>
<ol>
<li>The user requests the DNS record for application.example.com from Route53. Because the real application is offline, Route53 will respond with the recordset of the fallback CloudFront distribution.</li>
<li>The user request a page from CloudFront. CloudFront will get this from S3 and serve it to the user. This page contains an explanation of why the application is not available and a button to start it.</li>
<li>When the user clicks the button, it uses javascript to call the API Gateway and invoke a lambda function.</li>
<li>The lambda function calls Service Catalog or CloudFormation (depending on your environment) to start the real application</li>
<li>When the application has started, the health check will pass, and Route53 will start returning the recordset for the CloudFront distribution that is linked to the application</li>
<li>When the user uses the new DNS records, it will go through the second CloudFront distribution and to the real application</li>
</ol>
<p>Some things to keep in mind.</p>
<p>This only a high level overview of a possible solution. To implement this, you would also have to consider the following:</p>
<ul>
<li>After starting the Application, the static webpage should refresh the page, to force the browser to do a new DNS lookup.</li>
<li>CloudFront will cache errors for 5 minutes by default. Decreasing this will make the failover go faster.</li>
<li>The TTL of an CloudFront DNS record is 60 seconds</li>
</ul>
<p>The post <a href="https://cloudar.be/awsblog/using-route53-to-support-on-demand-applications/">Using Route53 to support on-demand applications</a> appeared first on <a href="https://cloudar.be">Cloudar</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cloudar.be/awsblog/using-route53-to-support-on-demand-applications/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
