The REAL Cost Of AWS (And How To Avoid It)

Theo - t3․gg
2 Apr 202308:32

Summary

TLDRIn this video, the speaker addresses concerns about the cost of recommended services for small projects and startups, arguing that they are more cost-effective than AWS. They highlight generous free tiers, the hidden costs of in-house development, and the time-saving benefits of using these services. The speaker emphasizes that these tools not only save time but also reduce costs through efficient scaling and caching, ultimately providing a better return on investment for businesses.

Takeaways

  • 💡 The services recommended have very generous free tiers, which can accommodate small projects and startups without incurring costs.
  • 📊 The cost of setting up and maintaining infrastructure on AWS can be high in terms of time and effort, which is often overlooked when considering 'cheaper' alternatives.
  • 💼 Engineers may undervalue their time, but the time spent on setup and maintenance can be significant and costly for a company.
  • 🔒 Job security can be a factor when using complex, self-hosted solutions, as it can be challenging to find a replacement with the same setup knowledge.
  • 💼 For companies, especially startups, it's more cost-effective to focus on developing unique business features rather than optimizing AWS costs.
  • 🚀 Services like Vercel, PlanetScale, Clerk, and others offer benefits like 'scale to zero', which means you only pay for the resources you actively use.
  • 💰 These services can lead to actual cost savings by allowing for efficient scaling, caching, and reduced need for server maintenance.
  • 🛠️ Using services like Vercel's edge functions can significantly reduce compute costs due to their低廉的 invocation pricing and caching capabilities.
  • 💡 The speaker emphasizes that these services are recommended based on their time, money, and energy-saving benefits, not because of sponsorships.
  • 💼 The speaker challenges the notion that self-hosting is always cheaper, arguing that it often costs more in the long run due to the complexity and maintenance involved.

Q & A

  • What is the main concern people have about the services recommended on the channel?

    -People are concerned that the services recommended are more expensive than using AWS directly, especially for low budget teams.

  • How does the speaker refute the claim that AWS is cheaper?

    -The speaker refutes this by explaining the generous free tiers of the services recommended, the cost savings in terms of developer time, and the actual cost savings due to the services' features.

  • What is the significance of the free tier for services like PlanetScale?

    -The free tier for services like PlanetScale is very generous, offering a billion row reads and 10 million row writes per month for free, which is more than enough for many small projects.

  • How much does it cost to go over the free tier limits on PlanetScale?

    -If you go over the free tier limits on PlanetScale, it costs one dollar per billion reads and one dollar and fifty cents per million writes.

  • What is the speaker's opinion on the pricing of services like Clerk compared to Auth0?

    -The speaker believes that the pricing of Clerk is very similar to professional solutions like Auth0, with a hobby tier that is affordable and doesn't require a credit card.

  • Why is the time spent by engineers setting up and maintaining services considered expensive?

    -The time spent by engineers is considered expensive because it can take days or weeks to solve problems and set up services like CI/CD, databases, and serverless traffic handling, which translates to a significant cost in terms of lost productivity.

  • What is the benefit of using recommended services in terms of job security?

    -Using recommended services can increase job security because the complex setup an engineer creates becomes reliant on their expertise, making it harder to replace them.

  • What is the speaker's advice for companies regarding the cost of developer time?

    -The speaker advises companies to understand the value of their engineers' time and to let them focus on tasks that drive unique business differentiators rather than optimizing AWS costs.

  • How do services like Vercel and PlanetScale help in reducing actual costs?

    -Services like Vercel and PlanetScale help reduce costs by allowing scale to zero, meaning you only pay for the compute you use, and by providing features that minimize the need for unused compute.

  • What is the cost of using Vercel's edge functions in the pro tier?

    -The cost of using Vercel's edge functions in the pro tier is 65 cents per million invocations.

  • Why does the speaker recommend services like Vercel, PlanetScale, Clerk, and others?

    -The speaker recommends these services because they save time, money, and energy, and make it faster to develop the right solution for users at any scale.

Outlines

00:00

💸 The Generosity of Free Tiers

The speaker addresses concerns about the cost of services recommended on the channel, particularly for low-budget teams. They argue that the free tiers of recommended services are very generous, allowing extensive use without charge. They give the example of Versel's free tier, which offers a billion row reads and 10 million row writes per month for free. Even when upgrading to a paid plan, the cost remains minimal, with Versel charging only one dollar per billion reads and one dollar and fifty cents per million writes after the free tier is exceeded. The speaker emphasizes that the cost savings from these services are significant and that their recommendation is based on the value they provide, not on margin.

05:01

🕒 The True Cost of DIY Solutions

The speaker discusses the hidden costs of setting up and maintaining infrastructure using AWS directly, as opposed to using recommended services. They highlight that engineers often undervalue their time, which can be costly when spent on tasks like setting up CI/CD, configuring databases, and managing serverless traffic. The speaker shares personal experiences of spending significant time on such tasks, which could have been better used for developing unique business solutions. They argue that the time saved by using recommended services is valuable and can lead to significant cost savings, especially when considering the high cost of change in most companies. The speaker suggests that the cost of maintaining complex setups can outweigh the minor savings of using AWS directly.

Mindmap

Keywords

💡Free Tier

The 'Free Tier' refers to the basic level of service provided by cloud platforms without charge, often used to attract new users. In the video, the speaker emphasizes the generosity of the free tiers offered by services like Vercel and PlanetScale, which allow for extensive usage without cost, thus being particularly beneficial for low-budget teams and side projects. The script mentions that Vercel's free tier offers a billion row reads and 10 million row writes per month, which is 'disgustingly generous' and can accommodate many small-scale projects without incurring charges.

💡PlanetScale

PlanetScale is a database service mentioned in the script that provides a very generous free tier and is designed to scale efficiently. The speaker argues that PlanetScale's pricing model, which includes a low cost per billion reads after the free tier is exhausted, makes it an economically viable option for developers. The service's ability to scale databases properly and pass on cost savings to users is highlighted as a key advantage.

💡Clerk

Clerk is a service that provides backend functionality, and it is compared to other professional solutions like Auth0 in the video. The speaker discusses Clerk's pricing structure, which includes a 'hobby tier' for small-scale usage and overage pricing for larger user bases. Clerk's approach to pricing and its focus on providing a developer-friendly experience are emphasized as reasons why it can be more cost-effective than self-hosted alternatives.

💡CI/CD

CI/CD stands for Continuous Integration and Continuous Deployment, which are practices that help automate the software development process. The video script points out the time and effort required to set up CI/CD correctly, which can be significant. The speaker argues that using services that simplify CI/CD can save developers hundreds of hours, which translates to substantial cost savings for the company, even if there is a monthly fee for the service.

💡Serverless

Serverless computing is a cloud computing execution model where the cloud provider dynamically manages the allocation and provisioning of servers. The script mentions serverless as a way to save costs because you only pay for the compute time you use, rather than paying for idle servers. This is particularly relevant when discussing services like Vercel and PlanetScale, which allow for 'scale to zero', meaning no cost when there's no usage.

💡Edge Functions

Edge Functions refer to running code in a decentralized manner, close to the user to reduce latency. In the video, the speaker discusses how using edge functions can be cost-effective because they are only invoked when necessary and can leverage caching to minimize compute costs. Vercel's edge pricing is given as an example, where the cost is very low per million invocations, highlighting the efficiency of this approach.

💡Caching

Caching is the temporary storage of frequently accessed data to improve performance and reduce latency. The video script explains how caching can significantly reduce compute costs, as it prevents the need to process the same data repeatedly. The speaker uses Vercel's caching primitives as an example, where responses are cached, and compute is only used when there's a change or specific user interaction.

💡Job Security

Job security in the context of the video refers to the stability and longevity of a job role. The speaker suggests that by setting up complex, self-hosted systems, engineers inadvertently create job security for themselves because their expertise becomes necessary to maintain those systems. However, this can be counterproductive for companies as it ties up valuable engineering time in maintenance rather than innovation.

💡Cost of Change

The 'cost of change' is the effort and resources required to modify or update a system. In the video, the speaker argues that the cost of change is high when using self-hosted solutions, as any change can require significant reconfiguration and maintenance. This contrasts with using services that abstract away complexity, allowing for easier and less costly changes.

💡Developer Experience

Developer experience (DX) refers to the tools, services, and practices that make it easy and efficient for developers to build software. The video emphasizes the importance of a good DX, as it can save engineers' time and enable them to focus on creating unique business value. The speaker argues that services like Vercel, PlanetScale, and Clerk enhance DX, making them more cost-effective in the long run by allowing developers to build and iterate faster.

Highlights

Services recommended have a very generous free tier, which can be used for a long time.

Planet Scale's free tier offers a billion row reads and 10 million row writes per month for free.

Upgrading to Planet Scale's $30/month plan increases the free tier benefits significantly.

The cost for exceeding the free tier on Planet Scale is very low, at $1 per billion reads and $1.50 per million writes.

Planet Scale's pricing model is based on database usage rather than reads and writes, making it very cost-effective.

Planet Scale passes on cost savings to customers by focusing on upselling additional features and developer experience.

Clerk's pricing is similar to other professional solutions like Auth0, with a hobby tier starting at $25/month.

Clerk's free tier allows unlimited sign-ins without a credit card, up to 5,000 users in a month.

Additional users on Clerk are priced at two cents each in the hobby tier and five cents in the business tier.

The cost of setting up and maintaining infrastructure like CI/CD and databases can be time-consuming and expensive.

The time spent on setup and maintenance can be hundreds of hours, which is a significant cost.

Using recommended services can save time and money, as they are designed to be cost-effective and efficient.

Services like Vercel and Planet Scale allow for scaling to zero, meaning no cost for unused compute.

Using services that scale based on usage can lead to significant cost savings compared to self-hosted solutions.

Edge functions can be extremely cost-effective, with Vercel's pro tier pricing at $0.65 per million invocations.

Caching and CDN setup can save a lot of compute costs and are part of the recommended services' benefits.

The recommended services not only save time but also lead to actual cost savings through efficient billing mechanisms and features.

Self-hosting backends and services should be done only if there's a strong reason, as it's usually more expensive.

The speaker emphasizes the importance of understanding the true cost of engineering time and the value of developer experience.

Transcripts

play00:00

I keep hearing concern about the cost of

play00:02

the services I recommend on the channel

play00:03

in particular for low budget teams

play00:06

trying to spin up side projects small

play00:07

apps and all sorts of things saying it's

play00:09

cheaper to use AWS directly and not to

play00:11

use the tech that I recommend and that's

play00:13

fine you're wrong in three ways and I

play00:16

want to talk about those so let's do it

play00:17

the first one is how long you can get

play00:19

away with the free tier for almost all

play00:22

the services I recommend have a very

play00:24

very generous free tier like

play00:27

disgustingly generous I've not shipped a

play00:30

service to date that doesn't fit within

play00:31

versel's free tier even the stuff y'all

play00:33

spam when I post it Planet Skills free

play00:36

tier gives you a billion row reads a

play00:39

month and 10 million row rights a month

play00:43

for free and when you upgrade to the 30

play00:45

a month plan that becomes a hundred

play00:48

billion reads and 50 million rights do

play00:51

you want to know how much it costs if

play00:53

you somehow go over one dollar per

play00:56

billion reads afterwards and one dollar

play00:58

and fifty cents per million rights

play01:01

thereafter that's insane Planet scale is

play01:05

effectively free your build on how many

play01:07

databases you host not on your reads and

play01:10

rights it's insane how cheap Planet

play01:12

scale is when you scale your databases

play01:15

properly they become cheap and they're

play01:17

passing the cost savings on because they

play01:20

can make their money on the Enterprise

play01:21

scale Planet scale doesn't win based on

play01:24

how much margin they make on their

play01:25

servers per compute they win based on

play01:28

how much they can upsell you on the

play01:30

additional features in developer

play01:31

experience that they provide they found

play01:34

a technical win and they scale developer

play01:36

experience on top and the result is just

play01:39

really really hard to beat and if we

play01:41

look at the other services that I

play01:43

recommend stuff like clerk the pricing

play01:45

is very similar to other professional

play01:47

Solutions like auth zero they have a

play01:49

hobby tier 25 bucks a month that isn't

play01:52

limited to the 5 000 monthly active

play01:55

users of the free tier yes that's right

play01:57

no credit card unlimited sign-ins but up

play02:00

to 5 000 users can exist in a given

play02:04

month and they have pricing for overage

play02:06

yeah included monthly active users

play02:08

they're active if they've visited and

play02:10

then it's two cents for each additional

play02:12

user at the hobby tier

play02:15

five cents for the business tier because

play02:17

they have a bunch of additional features

play02:18

integrated and they have obviously

play02:20

discounts if you do like big business

play02:22

stuff each additional employee that you

play02:25

have working inside of the clerk

play02:26

dashboard is initial 20 bucks but you

play02:28

probably don't need too many of those

play02:29

because you can just share the

play02:30

environment variables and everyone's

play02:31

good to go it's

play02:34

pretty cheap like your free tier window

play02:37

is massive and the rest is super cheap

play02:39

as well the same goes for upstash and

play02:41

Axiom I don't need to go into all the

play02:42

details of all of these the point I'm

play02:44

trying to make is very specifically the

play02:46

free tier carries you really far so what

play02:49

are these other two points the next one

play02:51

I want to focus in on is how expensive

play02:54

you are it's easy for us as Engineers to

play02:57

think of our time as cheap because it's

play02:58

ours and we can spend it however we want

play03:01

but when it comes to stuff like setting

play03:03

up CI and CD correctly or connecting

play03:05

your database in setting up your PG

play03:08

bouncer to handle serverless traffic the

play03:10

types of problems I dealt with when I

play03:12

was using AWS myself took time to solve

play03:15

sometimes days sometimes weeks always

play03:18

including a lot of Maintenance long term

play03:19

and the amount of time I have lost

play03:21

setting up PG bouncers switching

play03:23

databases between platforms figuring out

play03:25

how appsync or amplify and all these

play03:28

other things work and trying to get CI

play03:30

CD linked to GitHub properly is insane

play03:32

we're talking hundreds upon hundreds of

play03:35

hours and whether or not I like to admit

play03:37

it that's expensive if I'm doing that

play03:39

for a company that's more expensive

play03:41

there is a benefit here

play03:43

job security if I have all of this

play03:46

effort I've put into setting everything

play03:47

up and now I have this complex setup

play03:49

that we rely on if I then decide to

play03:51

leave I have to put a lot of work in

play03:52

finding a replacement who can maintain

play03:54

whatever chaos I have set up there if

play03:56

the benefit there is a few less cents a

play03:59

month per whatever depends on how many

play04:01

whatevers there are before that number

play04:03

matters other extremes have talked about

play04:04

the line of prime the point at which a

play04:06

service is stable enough in its feature

play04:09

set and trafficked enough and its usage

play04:12

patterns where it makes sense to rewrite

play04:14

it in a stable self-hosted thing to

play04:17

really try and minimize cost but most of

play04:19

us are very far from that point even

play04:22

y'all working at big companies because

play04:24

most code is changing and the cost of

play04:26

change is high I would venture to bet

play04:28

that the majority of the companies y'all

play04:31

work at it would be more expensive for

play04:33

the company to pay you to build versus

play04:35

developer experience than to pay for

play04:37

sell to use their existing experience

play04:39

and the same goes for everything we

play04:41

recommend on this channel these tools

play04:43

save real amounts of time and that time

play04:46

might not be valuable to you in your

play04:47

head as a developer but for me as a team

play04:50

lead and a person who runs companies and

play04:51

also invests in companies it's important

play04:53

to understand how valuable your

play04:55

engineer's time is so that your

play04:57

engineers can use that time in things

play04:59

that drive unique business

play05:01

differentiators your engineer should be

play05:03

spending time making your product better

play05:04

for your users so you can beat your

play05:06

competition not making your AWS cheaper

play05:08

so that you can feel good about yourself

play05:10

and your job security at night as you're

play05:12

paid 200k a year to save the company 100

play05:14

bucks a month but we're not even at the

play05:16

most important thing these Services

play05:18

actually save money I'm not talking time

play05:21

saved money I'm not talking free to your

play05:23

money I'm talking the actual benefits of

play05:26

these Services allow you to build things

play05:28

that run at cheaper costs the first

play05:31

thing is scale to zero you're not paying

play05:33

for compute you're not using if you set

play05:35

up your kubernetes and your terraform

play05:37

and everything correctly you can

play05:38

minimize how much compute you're paying

play05:40

for that goes unused but if you're

play05:41

spinning up servers then your running

play05:43

server first and if you're running

play05:44

servers you're paying for a compute that

play05:46

isn't being used period you use services

play05:48

like for sale and Planet scale you're

play05:50

not paying when the month ends you're

play05:52

paying when the users use the service

play05:54

and that billing mechanism makes it much

play05:56

easier to flex your costs based on usage

play06:00

of every single part of what you're

play06:01

building it is significantly easier to

play06:03

scale your pricing based on the scale of

play06:05

your application rather than spinning up

play06:07

things and letting them sit and paying

play06:09

for a bunch of servers you're not

play06:10

actually using on top of that you can

play06:12

save a ton of compute using things like

play06:14

versel's cache Primitives and

play06:15

incremental static regeneration only

play06:17

actually Computing on the server when

play06:19

things have changed or on planet scale

play06:21

using database.js package to hit their

play06:24

HTTP endpoint instead of making a SQL

play06:26

connection meaning you can avoid setting

play06:28

up pools and bouncers and all these

play06:30

other things you normally have to set up

play06:31

to maintain your connection to your

play06:33

database you can just hit it from an

play06:34

edge function and Edge functions are

play06:37

hilariously cheap like let's just go

play06:39

look at Versailles pricing quick for

play06:41

sales edge pricing on the pro tier is 65

play06:44

cents per million invocations that means

play06:47

every million times your Edge function

play06:50

runs it costs you 65 cents and it only

play06:53

runs if it doesn't have data in the

play06:55

cache already so if you're caching your

play06:58

responses and you're only invalidating

play06:59

them on user requests or specifically

play07:02

interactions like I'm only going to

play07:04

update the posts on my profile on

play07:05

Twitter when I make a new post then

play07:08

every other request is hitting a cache

play07:09

and not actually running compute at all

play07:11

it's so much cheaper to Cache a response

play07:14

than to run a server that processes

play07:16

every single request like comically so

play07:19

in setting up your caching and your CDN

play07:22

all that stuff correctly goes back into

play07:23

the second category of cost savings

play07:25

where you're paying your engineers a lot

play07:26

of money to get that all set up and

play07:28

maintained correctly the benefit of

play07:30

versel in Planet scale and Clerk and

play07:32

Axiom and upstash and all the other T3

play07:34

deploy Partners who are not paying me to

play07:36

make this video to be very very clear

play07:40

the reason I recommended them before

play07:42

they paid me is because they saved me

play07:44

time money and energy they made it

play07:46

faster for me to develop the right

play07:48

solution for my users at every scale

play07:50

I've ever worked at and I feel like when

play07:53

you all say these things are too

play07:54

expensive you don't actually see where

play07:56

the cost is so I hope this is helpful

play07:59

and y'all having a slightly better

play08:01

understanding of why these services are

play08:04

indeed cheaper than your AWS based

play08:06

Alternatives and if you're hosting your

play08:08

own backends and you're hosting your own

play08:09

Services you better have a damn good

play08:11

reason because you are costing more

play08:13

money the vast majority of the time I

play08:16

hope this was helpful I've been holding

play08:17

this rant in for a while and I think it

play08:19

shows with how it came out let me know

play08:21

what you thought about it I'm I'm gonna

play08:23

love the comment section on this one I'm

play08:24

sure you want to hear more about all the

play08:26

info I use and recommend I'll pin that

play08:27

video right here I put a lot of effort

play08:29

into that one so please check it out

play08:30

thank you as always peace nerds

Rate This

5.0 / 5 (0 votes)

Ähnliche Tags
Tech ServicesAWS AlternativesCost AnalysisStartup ToolsDeveloper ExperienceCloud ComputingFree Tier BenefitsScalabilityTime ManagementProductivity
Benötigen Sie eine Zusammenfassung auf Englisch?