{
    "componentChunkName": "component---src-pages-blog-markdown-remark-fields-slug-js",
    "path": "/blog/how-we-cut-our-aws-costs-part-2",
    "result": {"data":{"markdownRemark":{"html":"<p><a href=\"./how-we-cut-our-aws-costs/\"><strong>Part 1: How does the SuperTokens managed service work and why does it need to change.</strong></a></p>\n<p><strong>Part 2: Using multi-tenancy to cut our AWS infra costs by by more than 50%</strong></p>\n<p>In this part we will go over SuperTokens Multi-tenancy feature and how it evolved our deployment cycle to cut our AWS billing by 50%.</p>\n<p>Here’s what we covered in our <a href=\"./how-we-cut-our-aws-costs/\">last post</a>:</p>\n<ul>\n<li>SuperTokens infrastructure and deployment cycle.</li>\n<li>Improvements made to the SuperTokens deployment cycle to speed up production deployment times by 30%</li>\n<li>How our infra costs were not sustainable and why it needed to change.</li>\n</ul>\n<h2 id=\"what-is-multi-tenancy\" style=\"position:relative;\"><a href=\"#what-is-multi-tenancy\" aria-label=\"what is multi tenancy permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>What is multi-tenancy?</h2>\n<p>As mentioned in Part 1, “We saw multi-tenancy as an opportunity to optimize the utilization of our EC2 instances by consolidating our core instances. This would cut down our costs while also providing the expected performance”… But what does that mean? Let’s break it down. Multi-tenancy is a feature, typically used by B2B SaaS companies to allow multiple organizations to sign up to their SaaS app, with the ability for each organization to have their own login methods or SSO configurations. Additionally, user pools can also be segmented. Here’s how it helped us.</p>\n<h2 id=\"how-we-implemented-supertokens-multi-tenancy\" style=\"position:relative;\"><a href=\"#how-we-implemented-supertokens-multi-tenancy\" aria-label=\"how we implemented supertokens multi tenancy permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>How we implemented SuperTokens Multi-tenancy</h2>\n<p>With multi-tenancy, we re-architected the way we host and manage our users. Initially, whenever a user signed up and created an app with SuperTokens, it would trigger the following flow:</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 630px; \"\n    >\n      <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/static/23fe31ac9ea589a4ae08d7943018c02c/5c98f/supertokens-deployment-process.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n    <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 126.58227848101265%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAZCAIAAAC+dZmEAAAACXBIWXMAABibAAAYmwFJdYOUAAAB0UlEQVQ4y5WUiZLaMAyGef9nbAvLLpA7li3r8BE6dlraLRSymkzGSfSNlF/H7vrIcs7WOhFRVRFB9CHGe7fdQzilRMxdP+wPx64fQogi8gWYa9gSX7U88mY45+yLkXMoIt5TynkrvFqM0Tn3xOExLKLeEzMbA0Uw70OI22Hp+uF0bi6X9nS+DOMUQngNL0u5MzOAnWczz8YYAGtF9QtqxxhVA4BNKamGvEWwGvhKxN4TEVtXWoVFrHP3/OO0iXicZgBomq4fJgPWGHgNX39HXgvriVJK9c2vw2tYVUvO1vXDOBsgYiJe1qy2NAmLENGyLMzl8KxJEH35ReuISwTvSf+qjWpATzEmAAvWOsQ/8FI/i0gIkYgQMcZ016oJEbUOya1hPqUdQtBHzXCLbwwUCXNex3vHzJem7YfxfGkOh2Pb9V03yN0AEtE4TbMxQ5Vwmuac884hHt8/mrb7/mN/eHvvh/HjdEb0/+rHXHz2b9+K23GaK6whcB18sNY6p6rMcj9DouoQx3Fqux6sRfQFXgW71XCp9r/fLuuplm31ebYMPqdd9gl6mmejGhwiM2+Hy2KocvZt2wFYYtkKExVhoJoBKP27PfK6BqWs8XKh9yLyE/oQvQhv5HlRAAAAAElFTkSuQmCC'); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"SuperTokens Old Deployment Process\"\n        title=\"SuperTokens Old Deployment Process\"\n        src=\"/static/23fe31ac9ea589a4ae08d7943018c02c/f058b/supertokens-deployment-process.png\"\n        srcset=\"/static/23fe31ac9ea589a4ae08d7943018c02c/c26ae/supertokens-deployment-process.png 158w,\n/static/23fe31ac9ea589a4ae08d7943018c02c/6bdcf/supertokens-deployment-process.png 315w,\n/static/23fe31ac9ea589a4ae08d7943018c02c/f058b/supertokens-deployment-process.png 630w,\n/static/23fe31ac9ea589a4ae08d7943018c02c/40601/supertokens-deployment-process.png 945w,\n/static/23fe31ac9ea589a4ae08d7943018c02c/78612/supertokens-deployment-process.png 1260w,\n/static/23fe31ac9ea589a4ae08d7943018c02c/5c98f/supertokens-deployment-process.png 1283w\"\n        sizes=\"(max-width: 630px) 100vw, 630px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n        decoding=\"async\"\n      />\n  </a>\n    </span></p>\n<p>In this process, each development and production SuperTokens core ran in it’s own separate EC2 instances. With Multi-tenancy we now treat all SuperTokens customers as tenants. This means that we could now host multiple users on a single SuperTokens instance. Our deployment process now looks like this:</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 630px; \"\n    >\n      <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/static/ccaa6fb34d626b059a7302493f4cbc68/bb072/supertokens-deployment-process-new.png.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n    <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 126.58227848101265%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAZCAIAAAC+dZmEAAAACXBIWXMAABibAAAYmwFJdYOUAAABgklEQVQ4y82U646cMAyFef/H3BlmBgbIxU4cX8isAlK7mnYrUFWpVv45H/Y5duhefxHddwk1U1XbQlTXtZ6AERMAOh9ChJRyKeUoXGtlZgD8uFyHYTSzE/BeuTCXwiJCROfgJlUkRlBRVa21nmh7tyqEqNZsW9f1KKxqzgfn/DTN8+KcDznTcVi9D49hHMbnYxid9ydgW1cqRURTziLCIoX5BIwp5UzjNGPKOTe7f5X9e1hU58V5H5bFTfMSQlwWp6rHYFGiUmsFaB28Xi8iOgyrIiZm9iECIIsgJjM7sSQASESpRf7TkqjZZkophfdRYfpZqhSmTLVWKoWImHn/VPdDpPM+Roi42bxd/VqEWSJAjACAEXDPvrfN3F7CN0LWwvx1YF2tFTGFzZhrf5+WBTERvb+hUtj5sDh3fww+tsmZWWdmKedhfH5crv3tfu3vMULO7w4Rlf52v/T9duc2jE8RbZVTyphShCZ3H2ym901mkZZJuZ2cAdBs7f7JD/D/hj8B2lPDBxCqKA0AAAAASUVORK5CYII='); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"SuperTokens New Deployment Process\"\n        title=\"SuperTokens New Deployment Process\"\n        src=\"/static/ccaa6fb34d626b059a7302493f4cbc68/f058b/supertokens-deployment-process-new.png.png\"\n        srcset=\"/static/ccaa6fb34d626b059a7302493f4cbc68/c26ae/supertokens-deployment-process-new.png.png 158w,\n/static/ccaa6fb34d626b059a7302493f4cbc68/6bdcf/supertokens-deployment-process-new.png.png 315w,\n/static/ccaa6fb34d626b059a7302493f4cbc68/f058b/supertokens-deployment-process-new.png.png 630w,\n/static/ccaa6fb34d626b059a7302493f4cbc68/40601/supertokens-deployment-process-new.png.png 945w,\n/static/ccaa6fb34d626b059a7302493f4cbc68/78612/supertokens-deployment-process-new.png.png 1260w,\n/static/ccaa6fb34d626b059a7302493f4cbc68/bb072/supertokens-deployment-process-new.png.png 1318w\"\n        sizes=\"(max-width: 630px) 100vw, 630px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n        decoding=\"async\"\n      />\n  </a>\n    </span></p>\n<p>As you can see in the new deployment strategy, when a new user signs up, we now create a new tenant in a SuperTokens instance. These instances run in <code class=\"language-text\">T3 large</code> instances. In our testing, for development mode, up to 100 tenants can be run seamlessly on a single instance and for production mode, up to 50 tenants can be created on a single instance.</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 630px; \"\n    >\n      <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/static/7fe7972251fff36bea749aaaab1fbb75/166a3/supertokens-infrastructure.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n    <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 56.32911392405063%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAALCAIAAADwazoUAAAACXBIWXMAABibAAAYmwFJdYOUAAABBklEQVQoz2WRC47DIAxEc/+rbkhStfgzNlAZJ91GtSJkMX7DEJYxRmutlG0tpZRt23Yz67PGrGyY+W8t27ava2GW3F/c3VsUMe/HAbN2VWKttRwRkf3xUNVUzXwxs+Qr0XGE5r17aHbC7uHYe7qLaOvd3A12wmMMAM9nBTDGcHczy9juDkRvZs/XS1WzN7vg3nvEu9L+wjnQ7gMBA6iVVLXSuQL4xHZ3VSVmUWHm6IlF9ISvcrvXF4xU88A87x9OJxEBICK/sKoC5yoi+oEBS4BZmEVYpnSDL9/MLKpfsTMGERMzEf/cOTfCvVYKNu8cGhCfIn5J2qrafL/5zk0yMzCpmJB58huYMIVesh4XpgAAAABJRU5ErkJggg=='); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"SuperTokens infrastructure\"\n        title=\"SuperTokens infrastructure\"\n        src=\"/static/7fe7972251fff36bea749aaaab1fbb75/f058b/supertokens-infrastructure.png\"\n        srcset=\"/static/7fe7972251fff36bea749aaaab1fbb75/c26ae/supertokens-infrastructure.png 158w,\n/static/7fe7972251fff36bea749aaaab1fbb75/6bdcf/supertokens-infrastructure.png 315w,\n/static/7fe7972251fff36bea749aaaab1fbb75/f058b/supertokens-infrastructure.png 630w,\n/static/7fe7972251fff36bea749aaaab1fbb75/40601/supertokens-infrastructure.png 945w,\n/static/7fe7972251fff36bea749aaaab1fbb75/78612/supertokens-infrastructure.png 1260w,\n/static/7fe7972251fff36bea749aaaab1fbb75/166a3/supertokens-infrastructure.png 1980w\"\n        sizes=\"(max-width: 630px) 100vw, 630px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n        decoding=\"async\"\n      />\n  </a>\n    </span></p>\n<h2 id=\"what-are-the-benefits-of-the-new-architecture\" style=\"position:relative;\"><a href=\"#what-are-the-benefits-of-the-new-architecture\" aria-label=\"what are the benefits of the new architecture permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>What are the benefits of the new architecture?</h2>\n<h3 id=\"1-cost-savings\" style=\"position:relative;\"><a href=\"#1-cost-savings\" aria-label=\"1 cost savings permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>1. Cost Savings</h3>\n<p>Well, the biggest difference post this change is the cost savings.</p>\n<p>Here’s a bill for the month of July before the multi-tenancy changes kicked-in:</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 630px; \"\n    >\n      <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/static/235ff4d1a09e7b47ccfd9a87605f2282/0c1ff/supertokens-aws-bill-july.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n    <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 20.253164556962027%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAECAYAAACOXx+WAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAm0lEQVQY031O2Q6CMBDs/3+f4vXAIUqpFIq05SxjtrEmGuIk8zI7xzLnHH65risIxhjUqsXT9Jjn2etbdG8/eRg2EIq7TqNRCrJuoLX+un3KnMOyOEzThGEYwJRqUXAOIQQeVYVSCOT5DWl29Yv/QGUEa3vcCw7qYhQax9EvBJJGDJ+EoLEWcZwgSTNIKb12Ol+w20eIDkfwssQLpJI3iodU/2MAAAAASUVORK5CYII='); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"SuperTokens AWS bill for July\"\n        title=\"SuperTokens AWS bill for July\"\n        src=\"/static/235ff4d1a09e7b47ccfd9a87605f2282/f058b/supertokens-aws-bill-july.png\"\n        srcset=\"/static/235ff4d1a09e7b47ccfd9a87605f2282/c26ae/supertokens-aws-bill-july.png 158w,\n/static/235ff4d1a09e7b47ccfd9a87605f2282/6bdcf/supertokens-aws-bill-july.png 315w,\n/static/235ff4d1a09e7b47ccfd9a87605f2282/f058b/supertokens-aws-bill-july.png 630w,\n/static/235ff4d1a09e7b47ccfd9a87605f2282/40601/supertokens-aws-bill-july.png 945w,\n/static/235ff4d1a09e7b47ccfd9a87605f2282/78612/supertokens-aws-bill-july.png 1260w,\n/static/235ff4d1a09e7b47ccfd9a87605f2282/0c1ff/supertokens-aws-bill-july.png 2192w\"\n        sizes=\"(max-width: 630px) 100vw, 630px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n        decoding=\"async\"\n      />\n  </a>\n    </span></p>\n<p>And here’s the bill for September, post the changes going live</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 630px; \"\n    >\n      <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/static/64993b9d67b5988a78f937cceff8115a/0c1ff/supertokens-aws-bill-september.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n    <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 20.88607594936709%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAECAYAAACOXx+WAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAqUlEQVQY032PWw+DIAyF+f8/zz24S+IicxFBEdQ4LoOzQMYelmVfctKmbU5bEkLAt2KMSGzbhkkqrLuBtTbLOZf7IcYcS57w3oPgB8VYaw3OBfSyQogR0yShl+VjlM3es9Y5GGNAlNLoGQPnHGIcMXCOrrujpRTeP/GPctm+P9D3DLNSIOnM8kpRqiWlzQkuBJrmiraleRmlN0g5597pfEFdH1FVB7BhwAsA9jYq3SvfOAAAAABJRU5ErkJggg=='); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"SuperTokens AWS bill for September\"\n        title=\"SuperTokens AWS bill for September\"\n        src=\"/static/64993b9d67b5988a78f937cceff8115a/f058b/supertokens-aws-bill-september.png\"\n        srcset=\"/static/64993b9d67b5988a78f937cceff8115a/c26ae/supertokens-aws-bill-september.png 158w,\n/static/64993b9d67b5988a78f937cceff8115a/6bdcf/supertokens-aws-bill-september.png 315w,\n/static/64993b9d67b5988a78f937cceff8115a/f058b/supertokens-aws-bill-september.png 630w,\n/static/64993b9d67b5988a78f937cceff8115a/40601/supertokens-aws-bill-september.png 945w,\n/static/64993b9d67b5988a78f937cceff8115a/78612/supertokens-aws-bill-september.png 1260w,\n/static/64993b9d67b5988a78f937cceff8115a/0c1ff/supertokens-aws-bill-september.png 2192w\"\n        sizes=\"(max-width: 630px) 100vw, 630px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n        decoding=\"async\"\n      />\n  </a>\n    </span></p>\n<p>When compared, its <strong>54%</strong> down</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 630px; \"\n    >\n      <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/static/3a2e0f7542abdd6458c9cf9b8b0d21f1/9451d/supertokens-pricing-comparison.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n    <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 17.088607594936708%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAADCAYAAACTWi8uAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAi0lEQVQI102P2w6DQAhE/f+/tA8atbpb2BvuZRqIaUpyQmZgQpiICPP8wnaciClBpOC+b6OUgiJiXXWtFfKn3+eJZV3BIRgxRkzOe+z7Ae8/FtbSoXMeKWcLmkeEbdtNjzHMuy6HZVlBzHZM/SmEACI25FnOORt9DPTeIbXBke4RWmvmKfoRM/+08gUdGOjOFTL+AgAAAABJRU5ErkJggg=='); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"SuperTokens Pricing comparison\"\n        title=\"SuperTokens Pricing comparison\"\n        src=\"/static/3a2e0f7542abdd6458c9cf9b8b0d21f1/f058b/supertokens-pricing-comparison.png\"\n        srcset=\"/static/3a2e0f7542abdd6458c9cf9b8b0d21f1/c26ae/supertokens-pricing-comparison.png 158w,\n/static/3a2e0f7542abdd6458c9cf9b8b0d21f1/6bdcf/supertokens-pricing-comparison.png 315w,\n/static/3a2e0f7542abdd6458c9cf9b8b0d21f1/f058b/supertokens-pricing-comparison.png 630w,\n/static/3a2e0f7542abdd6458c9cf9b8b0d21f1/40601/supertokens-pricing-comparison.png 945w,\n/static/3a2e0f7542abdd6458c9cf9b8b0d21f1/78612/supertokens-pricing-comparison.png 1260w,\n/static/3a2e0f7542abdd6458c9cf9b8b0d21f1/9451d/supertokens-pricing-comparison.png 2782w\"\n        sizes=\"(max-width: 630px) 100vw, 630px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n        decoding=\"async\"\n      />\n  </a>\n    </span></p>\n<h3 id=\"2-improved-start-up-time\" style=\"position:relative;\"><a href=\"#2-improved-start-up-time\" aria-label=\"2 improved start up time permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>2. Improved start up time</h3>\n<p>Another improvement was app startup time. In the new architecture, creating a new user is as simple as creating a new tenant. When compared to the old process, the new architecture is about 94% faster and new apps can be created in seconds.</p>\n<h2 id=\"conclusion\" style=\"position:relative;\"><a href=\"#conclusion\" aria-label=\"conclusion permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Conclusion</h2>\n<p>Multi-tenancy with SuperTokens is a powerful feature that enables businesses to create unique authentication flows for their customers, segment users into unique user pools and automatically create new tenants. For SuperTokens, multi-tenancy allowed us to consolidate our user applications to save on resources, but, your use case maybe very different. You can learn more about how multi-tenancy works and the experiences it enables by visiting the <a href=\"https://supertokens.com/features/multi-tenancy\" target=\"_blank\" rel=\"nofollow\">multi-tenancy feature page</a></p>","frontmatter":{"date":"October 01, 2023","title":"How we used multi-tenancy to cut our AWS costs by 50%","cover":"how-we-cut-our-aws-costs-part-2.png","author":"Joel Coutinho","description":"Part 2 in a series of howe we were able to cut down our AWS infrastructure costs by more than 50%"},"fields":{"slug":"/how-we-cut-our-aws-costs-part-2/"}},"site":{"siteMetadata":{"title":"SuperTokens Blog"}}},"pageContext":{"id":"033c4b89-afbf-555a-87f3-baac80884f8c","fields__slug":"/how-we-cut-our-aws-costs-part-2/","__params":{"fields__slug":"how-we-cut-our-aws-costs-part-2"}}},
    "staticQueryHashes": []}