The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
update blog
Inian91bdf67a13aa
diff --git a/apps/www/_blog/2022-12-13-storage-image-reising-smart-cdn.mdx b/apps/www/_blog/2022-12-13-storage-image-reising-smart-cdn.mdxindex 2cc2d690566..f3ce0ceb307 100644--- a/apps/www/_blog/2022-12-13-storage-image-reising-smart-cdn.mdx+++ b/apps/www/_blog/2022-12-13-storage-image-reising-smart-cdn.mdx@@ -132,7 +132,7 @@ Let's step through a few different flows to see how it all works:Let's imagine one of your users makes a request for a resized cat (kitten?) image in your application. Here's the flow:-+1. The request hits our globally-distributed API Gateway. This gateway reads the image metadata from a global KV store (this metadata is created when the image was uploaded).2. Inside the image metadata is a Cache Key - this is comprised of an [Etag](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag) + tenant ID + bucketname + image name. The Gateway tries to find a cached object in our CDN using the Cache Key. If the image has never been accessed, it is a “Cache miss”.@@ -143,7 +143,7 @@ Let's imagine one of your users makes a request for a resized cat (kitten?) imagThe cat image goes viral, and so now multiple users want to see the resized image.-+1. The request hits our globally-distributed API Gateway. This gateway reads the image metadata from a global KV store.2. Using the Cache Key the Gateway tries to find a cached object in our CDN. Because this image has already been resized, it returns it directly from the cache.@@ -154,7 +154,7 @@ To complete this architecture, we need to keep the global KV store (which storesUsing our cat picture from above:-+1. You update the cat picture to a dog picture. This triggers an `ObjectCreated:Put` event from the Supabase Storage server.2. A cache manager service subscribes to these events and updates the global metadata store with the new Etag. This takes around 60 seconds to propagate globally.@@ -166,9 +166,7 @@ Most CDNs offer this functionality “natively”. However there is usually a haBesides solving issues with stale data, one of the biggest benefits this architecture offers is higher cache hits. Why is that important? Because image resizing is slow. Every cache miss is increased latency for your users.---+The green line here shows the number of cache hits to our CDN. As you can see, when we enabled the Smart CDN, the number of requests cache hits increased significantly (which means faster cat images).@@ -204,6 +202,6 @@ A few features to look out for in the future:[Upgrade to Pro](https://supabase.com/pricing) to get started with Image Resizing today.-- Check out the Docs for [Image Resizing](https://supabase.com/docs/guides/storage/image-resizing).+- Check out the Docs for [Image Resizing](https://supabase.com/docs/guides/storage/image-transformations).- Check out the Docs for the [Storage CDN](https://supabase.com/docs/guides/storage/cdn).- Get Started today with the [JavaScript](https://supabase.com/docs/reference/javascript/storage-from-download) and [Dart](https://supabase.com/docs/reference/dart/storage-from-list) client libraries.diff --git a/apps/www/public/images/blog/launch-week-6/day-2-storage-resize/cache hit.jpg b/apps/www/public/images/blog/launch-week-6/day-2-storage-resize/cache hit.jpgnew file mode 100644index 00000000000..9171d3756e4Binary files /dev/null and b/apps/www/public/images/blog/launch-week-6/day-2-storage-resize/cache hit.jpg differdiff --git a/apps/www/public/images/blog/launch-week-6/day-2-storage-resize/cache miss.jpg b/apps/www/public/images/blog/launch-week-6/day-2-storage-resize/cache miss.jpgnew file mode 100644index 00000000000..19fb205859cBinary files /dev/null and b/apps/www/public/images/blog/launch-week-6/day-2-storage-resize/cache miss.jpg differdiff --git a/apps/www/public/images/blog/launch-week-6/day-2-storage-resize/cache refresh.jpg b/apps/www/public/images/blog/launch-week-6/day-2-storage-resize/cache refresh.jpgnew file mode 100644index 00000000000..f3d463fab64Binary files /dev/null and b/apps/www/public/images/blog/launch-week-6/day-2-storage-resize/cache refresh.jpg differdiff --git a/apps/www/public/images/blog/launch-week-6/day-2-storage-resize/hit rate improvement.png b/apps/www/public/images/blog/launch-week-6/day-2-storage-resize/hit rate improvement.pngnew file mode 100644index 00000000000..6c9670f8339Binary files /dev/null and b/apps/www/public/images/blog/launch-week-6/day-2-storage-resize/hit rate improvement.png differ