<?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>Serverless Archives | Cloudar</title>
	<atom:link href="https://cloudar.be/tag/serverless/feed/" rel="self" type="application/rss+xml" />
	<link>https://cloudar.be/tag/serverless/</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>
	</channel>
</rss>
