Vercel just introduced 4 new storage products, including a serverless Postgres database, a durable Redis store, and file uploads with CloudFlare R2. They also leaked some details about a new server actions feature for Next.js

#webdevelopment #database #thecodereport 

🔥 Get the new Next.js 13 Full Course

Upgrade at https://fireship.io/courses/nextjs
Use code NEXT30 for 30% off PRO access 

💬 Chat with Me on Discord

https://discord.gg/fireship

🔗 Resources

Vercel Storage Announcement https://vercel.com/blog/vercel-storage
Next13 Report https://youtu.be/_w0Ikk4JY7U
Next13 Course https://fireship.io/courses/nextjs

🎨 My Editor Settings

- Atom One Dark 
- vscode-icons
- Fira Code Font

🔖 Topics Covered

- Does Vercel offer a database?
- Vercel Postgres basics
- Vercel KV basics
- Alternatives to AWS S3 file storage
- New Next.js Features
- Next.js server actions
2024-02-04T05:07:13.316Z
nova-2
2-general-nova
2024-01-09.29447
30089e05-99d1-4376-b32e-c263170674af
fbb4e480-6574-4519-99ea-fcb90da971ad
5aeda8feaad42229dd77c281d2b9e3cee6acb31c0d508fbb833a384f29acf4ac
67875a7f-c9c4-48a0-aa55-5bdb8a91c34a
deprecated
It is May 2, 2023, and you're watching the CodeReport.
If you haven't deployed an app to production at 4:59 pm on Friday that accidentally deletes database, causing your entire team to work all weekend while the company loses $1,000,000,000 on its market cap while you go fishing and get fired on Monday, you haven't really lived.
Developers are terrified of screwing things up when deploying apps, which is why platforms like Vercel, Netlify, Heroku, and Firebase are incredibly popular.
When your boss says All You gotta do is not up.
The obvious solution is to use a platform to handle deployment for you.
Vercel is the platform of choice for Next.
Js deployments, but the one big thing it's missing is database.
Well, not anymore.
Just yesterday, Vercel announced not 1, not 2, not 3, but 4 new databases.
Everybody in tech wants to sell you a fully managed database.
It's a huge multibillion dollar industry with tons of competition in the startup ecosystem, and Rightfully so because managing a database is extremely difficult, and if you screw things up, it's game over.
Let's see what Vercel has to offer.
In My opinion, the most exciting new option is Vercel Postgres Serverless SQL for the front end cloud.
Which is an SQL database powered by Neon.
Neon is an awesome product, and Coincidentally, I used it when building my new Next.
Js 13 course, which is now available to Fireship Pro members if you wanna learn all about it.
What's Nice about this database is that it scales automatically, it's fault tolerant, and has a nice UI that's just easy to work with.
Basically, all you do is click a button, add your database connection link to the environment, and then you start writing raw SQL code directly in a server component with Next.
Js.
It also integrates nicely with libraries like Kissele and my personal favorite, Prisma.
While Neon is definitely awesome as a building block, it's still quite a ways behind tools like Supabase that have a really advanced UI where you can do row level security, procedures, and a bunch of other stuff.
We've also done a full course on Supabase, but I don't think Vercel is going for that full back end as a service approach.
I think they want to be more of a front end cloud that provides you with bunch of different infrastructure options.
One funny side note for Next.
Js users is that in the blog post, it looks like they leaked the details for a new API called server actions.
Apparently, that'll be announced Thursday, but, basically, it looks like you can create server functions alongside your components to handle form submissions without needing to create API routes.
This is an awesome feature, and I'm glad to see that Next is finally stealing it from Remix.
But now let's check out database number 2.
Vercel Kv, a key value store like Redis based on Upstash.
Key value databases are extremely easy to use, but more importantly, They're extremely fast because unlike most databases, the data is held in memory instead of on the disk.
Well, it is stored on disk as well, but because it's also in memory, you get extremely fast reads, making it ideal as a cache for your data.
Database number 3 is edge config, which allows you to distribute configuration variables across the edge network, providing virtually instant reads It's for things like feature flags if you do AB testing, or if you have a list of malicious IPs, you could store them on the edge and then use Next.
Js Middleware to block those requests.
And finally, that brings access to database number 4, Vercel Blob.
It's based on Cloudflare r two, which allows you to store large amounts of unstructured data, like images .pdf files on the edge.
In other words, it's a replacement for storage buckets like s 3, and that could be a game changer if your app does file upload.
The SDK is incredibly simple.
All you do is a way to call to put with the file that you want to upload, and it returns you with a download URL.
That's pretty awesome, but one limitation currently is that the max file upload size is 4 megabytes.
However, that should increase after the beta phase.
Vercel gets a lot retention, but what you might have missed is that Deno also just released its own global key value database.
It's based on FoundationDB, which is developed by Apple, and is extremely fast while also porting consistency and ACID transactions, and the API is incredibly easy to use with 0 setup.
Choosing a database in 2023 is harder than ever.
If you thought the JavaScript framework war bad, it's nothing compared to the database war, where companies have 1,000,000,000 of dollars at stake, all competing to store your data.
This has been the CodeReport.
Thanks for watching, and I will see you in the next one.

Speaker 0: It is May 2, 2023, and you're watching the CodeReport. If you haven't deployed an app to production at 4:59 pm on Friday that accidentally deletes database, causing your entire team to work all weekend while the company loses $1,000,000,000 on its market cap while you go fishing and get fired on Monday, you haven't really lived. Developers are terrified of screwing things up when deploying apps, which is why platforms like Vercel, Netlify, Heroku, and Firebase are incredibly popular. When your boss says All You gotta do is not up. The obvious solution is to use a platform to handle deployment for you.

Vercel is the platform of choice for Next. Js deployments, but the one big thing it's missing is database. Well, not anymore. Just yesterday, Vercel announced not 1, not 2, not 3, but 4 new databases. Everybody in tech wants to sell you a fully managed database.

It's a huge multibillion dollar industry with tons of competition in the startup ecosystem, and Rightfully so because managing a database is extremely difficult, and if you screw things up, it's game over. Let's see what Vercel has to offer. In My opinion, the most exciting new option is Vercel Postgres Serverless SQL for the front end cloud. Which is an SQL database powered by Neon. Neon is an awesome product, and Coincidentally, I used it when building my new Next.

Js 13 course, which is now available to Fireship Pro members if you wanna learn all about it. What's Nice about this database is that it scales automatically, it's fault tolerant, and has a nice UI that's just easy to work with. Basically, all you do is click a button, add your database connection link to the environment, and then you start writing raw SQL code directly in a server component with Next. Js. It also integrates nicely with libraries like Kissele and my personal favorite, Prisma.

While Neon is definitely awesome as a building block, it's still quite a ways behind tools like Supabase that have a really advanced UI where you can do row level security, procedures, and a bunch of other stuff. We've also done a full course on Supabase, but I don't think Vercel is going for that full back end as a service approach. I think they want to be more of a front end cloud that provides you with bunch of different infrastructure options. One funny side note for Next. Js users is that in the blog post, it looks like they leaked the details for a new API called server actions.

Apparently, that'll be announced Thursday, but, basically, it looks like you can create server functions alongside your components to handle form submissions without needing to create API routes. This is an awesome feature, and I'm glad to see that Next is finally stealing it from Remix. But now let's check out database number 2. Vercel Kv, a key value store like Redis based on Upstash. Key value databases are extremely easy to use, but more importantly, They're extremely fast because unlike most databases, the data is held in memory instead of on the disk.

Well, it is stored on disk as well, but because it's also in memory, you get extremely fast reads, making it ideal as a cache for your data. Database number 3 is edge config, which allows you to distribute configuration variables across the edge network, providing virtually instant reads It's for things like feature flags if you do AB testing, or if you have a list of malicious IPs, you could store them on the edge and then use Next. Js Middleware to block those requests. And finally, that brings access to database number 4, Vercel Blob. It's based on Cloudflare r two, which allows you to store large amounts of unstructured data, like images .pdf files on the edge.

In other words, it's a replacement for storage buckets like s 3, and that could be a game changer if your app does file upload. The SDK is incredibly simple. All you do is a way to call to put with the file that you want to upload, and it returns you with a download URL. That's pretty awesome, but one limitation currently is that the max file upload size is 4 megabytes. However, that should increase after the beta phase.

Vercel gets a lot retention, but what you might have missed is that Deno also just released its own global key value database. It's based on FoundationDB, which is developed by Apple, and is extremely fast while also porting consistency and ACID transactions, and the API is incredibly easy to use with 0 setup. Choosing a database in 2023 is harder than ever. If you thought the JavaScript framework war bad, it's nothing compared to the database war, where companies have 1,000,000,000 of dollars at stake, all competing to store your data. This has been the CodeReport.

Thanks for watching, and I will see you in the next one.
It is May 2, 2023, and you're watching the CodeReport. If you haven't deployed an app to production at 4:59 pm on Friday that accidentally deletes database, causing your entire team to work all weekend while the company loses $1,000,000,000 on its market cap while you go fishing and get fired on Monday, you haven't really lived. Developers are terrified of screwing things up when deploying apps, which is why platforms like Vercel, Netlify, Heroku, and Firebase are incredibly popular. When your boss says All You gotta do is not up.
The obvious solution is to use a platform to handle deployment for you. Vercel is the platform of choice for Next. Js deployments, but the one big thing it's missing is database. Well, not anymore. Just yesterday, Vercel announced not 1, not 2, not 3, but 4 new databases. Everybody in tech wants to sell you a fully managed database. It's a huge multibillion dollar industry with tons of competition in the startup ecosystem, and Rightfully so because managing a database is extremely difficult, and if you screw things up, it's game over. Let's see what Vercel has to offer. In My opinion, the most exciting new option is Vercel Postgres Serverless SQL for the front end cloud.
databases
data management
Which is an SQL database powered by Neon. Neon is an awesome product, and Coincidentally, I used it when building my new Next. Js 13 course, which is now available to Fireship Pro members if you wanna learn all about it. What's Nice about this database is that it scales automatically, it's fault tolerant, and has a nice UI that's just easy to work with. Basically, all you do is click a button, add your database connection link to the environment, and then you start writing raw SQL code directly in a server component with Next.
databases
data management
Js. It also integrates nicely with libraries like Kissele and my personal favorite, Prisma. While Neon is definitely awesome as a building block, it's still quite a ways behind tools like Supabase that have a really advanced UI where you can do row level security, procedures, and a bunch of other stuff. We've also done a full course on Supabase, but I don't think Vercel is going for that full back end as a service approach. I think they want to be more of a front end cloud that provides you with bunch of different infrastructure options. One funny side note for Next. Js users is that in the blog post, it looks like they leaked the details for a new API called server actions.
Apparently, that'll be announced Thursday, but, basically, it looks like you can create server functions alongside your components to handle form submissions without needing to create API routes. This is an awesome feature, and I'm glad to see that Next is finally stealing it from Remix. But now let's check out database number 2. Vercel Kv, a key value store like Redis based on Upstash. Key value databases are extremely easy to use, but more importantly, They're extremely fast because unlike most databases, the data is held in memory instead of on the disk. Well, it is stored on disk as well, but because it's also in memory, you get extremely fast reads, making it ideal as a cache for your data. Database number 3 is edge config, which allows you to distribute configuration variables across the edge network, providing virtually instant reads It's for things like feature flags if you do AB testing, or if you have a list of malicious IPs, you could store them on the edge and then use Next. Js Middleware to block those requests. And finally, that brings access to database number 4, Vercel Blob. It's based on Cloudflare r two, which allows you to store large amounts of unstructured data, like images .pdf files on the edge. In other words, it's a replacement for storage buckets like s 3, and that could be a game changer if your app does file upload. The SDK is incredibly simple. All you do is a way to call to put with the file that you want to upload, and it returns you with a download URL.
databases
data management
data
streaming
That's pretty awesome, but one limitation currently is that the max file upload size is 4 megabytes. However, that should increase after the beta phase. Vercel gets a lot retention, but what you might have missed is that Deno also just released its own global key value database. It's based on FoundationDB, which is developed by Apple, and is extremely fast while also porting consistency and ACID transactions, and the API is incredibly easy to use with 0 setup.
Choosing a database in 2023 is harder than ever. If you thought the JavaScript framework war bad, it's nothing compared to the database war, where companies have 1,000,000,000 of dollars at stake, all competing to store your data. This has been the CodeReport. Thanks for watching, and I will see you in the next one.
databases
It is May 2, 2023, and you're watching the CodeReport. If you haven't deployed an app to production at 4:59 pm on Friday that accidentally deletes database, causing your entire team to work all weekend while the company loses $1,000,000,000 on its market cap while you go fishing and get fired on Monday, you haven't really lived. Developers are terrified of screwing things up when deploying apps, which is why platforms like Vercel, Netlify, Heroku, and Firebase are incredibly popular. When your boss says All You gotta do is not up. The obvious solution is to use a platform to handle deployment for you. Vercel is the platform of choice for Next. Js deployments, but the one big thing it's missing is database. Well, not anymore. Just yesterday, Vercel announced not 1, not 2, not 3, but 4 new databases. Everybody in tech wants to sell you a fully managed database. It's a huge multibillion dollar industry with tons of competition in the startup ecosystem, and Rightfully so because managing a database is extremely difficult, and if you screw things up, it's game over. Let's see what Vercel has to offer. In My opinion, the most exciting new option is Vercel Postgres Serverless SQL for the front end cloud. Which is an SQL database powered by Neon. Neon is an awesome product, and Coincidentally, I used it when building my new Next. Js 13 course, which is now available to Fireship Pro members if you wanna learn all about it. What's Nice about this database is that it scales automatically, it's fault tolerant, and has a nice UI that's just easy to work with. Basically, all you do is click a button, add your database connection link to the environment, and then you start writing raw SQL code directly in a server component with Next. Js. It also integrates nicely with libraries like Kissele and my personal favorite, Prisma. While Neon is definitely awesome as a building block, it's still quite a ways behind tools like Supabase that have a really advanced UI where you can do row level security, procedures, and a bunch of other stuff. We've also done a full course on Supabase, but I don't think Vercel is going for that full back end as a service approach. I think they want to be more of a front end cloud that provides you with bunch of different infrastructure options. One funny side note for Next. Js users is that in the blog post, it looks like they leaked the details for a new API called server actions. Apparently, that'll be announced Thursday, but, basically, it looks like you can create server functions alongside your components to handle form submissions without needing to create API routes. This is an awesome feature, and I'm glad to see that Next is finally stealing it from Remix. But now let's check out database number 2. Vercel Kv, a key value store like Redis based on Upstash. Key value databases are extremely easy to use, but more importantly, They're extremely fast because unlike most databases, the data is held in memory instead of on the disk. Well, it is stored on disk as well, but because it's also in memory, you get extremely fast reads, making it ideal as a cache for your data. Database number 3 is edge config, which allows you to distribute configuration variables across the edge network, providing virtually instant reads It's for things like feature flags if you do AB testing, or if you have a list of malicious IPs, you could store them on the edge and then use Next. Js Middleware to block those requests. And finally, that brings access to database number 4, Vercel Blob. It's based on Cloudflare r two, which allows you to store large amounts of unstructured data, like images .pdf files on the edge. In other words, it's a replacement for storage buckets like s 3, and that could be a game changer if your app does file upload. The SDK is incredibly simple. All you do is a way to call to put with the file that you want to upload, and it returns you with a download URL. That's pretty awesome, but one limitation currently is that the max file upload size is 4 megabytes. However, that should increase after the beta phase. Vercel gets a lot retention, but what you might have missed is that Deno also just released its own global key value database. It's based on FoundationDB, which is developed by Apple, and is extremely fast while also porting consistency and ACID transactions, and the API is incredibly easy to use with 0 setup. Choosing a database in 2023 is harder than ever. If you thought the JavaScript framework war bad, it's nothing compared to the database war, where companies have 1,000,000,000 of dollars at stake, all competing to store your data. This has been the CodeReport. Thanks for watching, and I will see you in the next one.
It
it
is
is
May
may
2,
2
2023,
2023
and
and
you're
you're
watching
watching
the
the
CodeReport.
codereport
If
if
you
you
haven't
haven't
deployed
deployed
an
an
app
app
to
to
production
production
at
at
4:59
4:59
pm
pm
on
on
Friday
friday
that
that
accidentally
accidentally
deletes
deletes
database,
database
causing
causing
your
your
entire
entire
team
team
to
to
work
work
all
all
weekend
weekend
while
while
the
the
company
company
loses
loses
$1,000,000,000
$1,000,000,000
on
on
its
its
market
market
cap
cap
while
while
you
you
go
go
fishing
fishing
and
and
get
get
fired
fired
on
on
Monday,
monday
you
you
haven't
haven't
really
really
lived.
lived
Developers
developers
are
are
terrified
terrified
of
of
screwing
screwing
things
things
up
up
when
when
deploying
deploying
apps,
apps
which
which
is
is
why
why
platforms
platforms
like
like
Vercel,
vercel
Netlify,
netlify
Heroku,
heroku
and
and
Firebase
firebase
are
are
incredibly
incredibly
popular.
popular
When
when
your
your
boss
boss
says
says
All
all
You
you
gotta
gotta
do
do
is
is
not
not
up.
up
The
the
obvious
obvious
solution
solution
is
is
to
to
use
use
a
a
platform
platform
to
to
handle
handle
deployment
deployment
for
for
you.
you
Vercel
vercel
is
is
the
the
platform
platform
of
of
choice
choice
for
for
Next.
next
Js
js
deployments,
deployments
but
but
the
the
one
one
big
big
thing
thing
it's
it's
missing
missing
is
is
database.
database
Well,
well
not
not
anymore.
anymore
Just
just
yesterday,
yesterday
Vercel
vercel
announced
announced
not
not
1,
1
not
not
2,
2
not
not
3,
3
but
but
4
4
new
new
databases.
databases
Everybody
everybody
in
in
tech
tech
wants
wants
to
to
sell
sell
you
you
a
a
fully
fully
managed
managed
database.
database
It's
it's
a
a
huge
huge
multibillion
multibillion
dollar
dollar
industry
industry
with
with
tons
tons
of
of
competition
competition
in
in
the
the
startup
startup
ecosystem,
ecosystem
and
and
Rightfully
rightfully
so
so
because
because
managing
managing
a
a
database
database
is
is
extremely
extremely
difficult,
difficult
and
and
if
if
you
you
screw
screw
things
things
up,
up
it's
it's
game
game
over.
over
Let's
let's
see
see
what
what
Vercel
vercel
has
has
to
to
offer.
offer
In
in
My
my
opinion,
opinion
the
the
most
most
exciting
exciting
new
new
option
option
is
is
Vercel
vercel
Postgres
postgres
Serverless
serverless
SQL
sql
for
for
the
the
front
front
end
end
cloud.
cloud
Which
which
is
is
an
an
SQL
sql
database
database
powered
powered
by
by
Neon.
neon
Neon
neon
is
is
an
an
awesome
awesome
product,
product
and
and
Coincidentally,
coincidentally
I
i
used
used
it
it
when
when
building
building
my
my
new
new
Next.
next
Js
js
13
13
course,
course
which
which
is
is
now
now
available
available
to
to
Fireship
fireship
Pro
pro
members
members
if
if
you
you
wanna
wanna
learn
learn
all
all
about
about
it.
it
What's
what's
Nice
nice
about
about
this
this
database
database
is
is
that
that
it
it
scales
scales
automatically,
automatically
it's
it's
fault
fault
tolerant,
tolerant
and
and
has
has
a
a
nice
nice
UI
ui
that's
that's
just
just
easy
easy
to
to
work
work
with.
with
Basically,
basically
all
all
you
you
do
do
is
is
click
click
a
a
button,
button
add
add
your
your
database
database
connection
connection
link
link
to
to
the
the
environment,
environment
and
and
then
then
you
you
start
start
writing
writing
raw
raw
SQL
sql
code
code
directly
directly
in
in
a
a
server
server
component
component
with
with
Next.
next
Js.
js
It
it
also
also
integrates
integrates
nicely
nicely
with
with
libraries
libraries
like
like
Kissele
kissele
and
and
my
my
personal
personal
favorite,
favorite
Prisma.
prisma
While
while
Neon
neon
is
is
definitely
definitely
awesome
awesome
as
as
a
a
building
building
block,
block
it's
it's
still
still
quite
quite
a
a
ways
ways
behind
behind
tools
tools
like
like
Supabase
supabase
that
that
have
have
a
a
really
really
advanced
advanced
UI
ui
where
where
you
you
can
can
do
do
row
row
level
level
security,
security
procedures,
procedures
and
and
a
a
bunch
bunch
of
of
other
other
stuff.
stuff
We've
we've
also
also
done
done
a
a
full
full
course
course
on
on
Supabase,
supabase
but
but
I
i
don't
don't
think
think
Vercel
vercel
is
is
going
going
for
for
that
that
full
full
back
back
end
end
as
as
a
a
service
service
approach.
approach
I
i
think
think
they
they
want
want
to
to
be
be
more
more
of
of
a
a
front
front
end
end
cloud
cloud
that
that
provides
provides
you
you
with
with
bunch
bunch
of
of
different
different
infrastructure
infrastructure
options.
options
One
one
funny
funny
side
side
note
note
for
for
Next.
next
Js
js
users
users
is
is
that
that
in
in
the
the
blog
blog
post,
post
it
it
looks
looks
like
like
they
they
leaked
leaked
the
the
details
details
for
for
a
a
new
new
API
api
called
called
server
server
actions.
actions
Apparently,
apparently
that'll
that'll
be
be
announced
announced
Thursday,
thursday
but,
but
basically,
basically
it
it
looks
looks
like
like
you
you
can
can
create
create
server
server
functions
functions
alongside
alongside
your
your
components
components
to
to
handle
handle
form
form
submissions
submissions
without
without
needing
needing
to
to
create
create
API
api
routes.
routes
This
this
is
is
an
an
awesome
awesome
feature,
feature
and
and
I'm
i'm
glad
glad
to
to
see
see
that
that
Next
next
is
is
finally
finally
stealing
stealing
it
it
from
from
Remix.
remix
But
but
now
now
let's
let's
check
check
out
out
database
database
number
number
2.
2
Vercel
vercel
Kv,
kv
a
a
key
key
value
value
store
store
like
like
Redis
redis
based
based
on
on
Upstash.
upstash
Key
key
value
value
databases
databases
are
are
extremely
extremely
easy
easy
to
to
use,
use
but
but
more
more
importantly,
importantly
They're
they're
extremely
extremely
fast
fast
because
because
unlike
unlike
most
most
databases,
databases
the
the
data
data
is
is
held
held
in
in
memory
memory
instead
instead
of
of
on
on
the
the
disk.
disk
Well,
well
it
it
is
is
stored
stored
on
on
disk
disk
as
as
well,
well
but
but
because
because
it's
it's
also
also
in
in
memory,
memory
you
you
get
get
extremely
extremely
fast
fast
reads,
reads
making
making
it
it
ideal
ideal
as
as
a
a
cache
cache
for
for
your
your
data.
data
Database
database
number
number
3
3
is
is
edge
edge
config,
config
which
which
allows
allows
you
you
to
to
distribute
distribute
configuration
configuration
variables
variables
across
across
the
the
edge
edge
network,
network
providing
providing
virtually
virtually
instant
instant
reads
reads
It's
it's
for
for
things
things
like
like
feature
feature
flags
flags
if
if
you
you
do
do
AB
ab
testing,
testing
or
or
if
if
you
you
have
have
a
a
list
list
of
of
malicious
malicious
IPs,
ips
you
you
could
could
store
store
them
them
on
on
the
the
edge
edge
and
and
then
then
use
use
Next.
next
Js
js
Middleware
middleware
to
to
block
block
those
those
requests.
requests
And
and
finally,
finally
that
that
brings
brings
access
access
to
to
database
database
number
number
4,
4
Vercel
vercel
Blob.
blob
It's
it's
based
based
on
on
Cloudflare
cloudflare
r
r
two,
two
which
which
allows
allows
you
you
to
to
store
store
large
large
amounts
amounts
of
of
unstructured
unstructured
data,
data
like
like
images
images
.pdf
pdf
files
files
on
on
the
the
edge.
edge
In
in
other
other
words,
words
it's
it's
a
a
replacement
replacement
for
for
storage
storage
buckets
buckets
like
like
s
s
3,
3
and
and
that
that
could
could
be
be
a
a
game
game
changer
changer
if
if
your
your
app
app
does
does
file
file
upload.
upload
The
the
SDK
sdk
is
is
incredibly
incredibly
simple.
simple
All
all
you
you
do
do
is
is
a
a
way
way
to
to
call
call
to
to
put
put
with
with
the
the
file
file
that
that
you
you
want
want
to
to
upload,
upload
and
and
it
it
returns
returns
you
you
with
with
a
a
download
download
URL.
url
That's
that's
pretty
pretty
awesome,
awesome
but
but
one
one
limitation
limitation
currently
currently
is
is
that
that
the
the
max
max
file
file
upload
upload
size
size
is
is
4
4
megabytes.
megabytes
However,
however
that
that
should
should
increase
increase
after
after
the
the
beta
beta
phase.
phase
Vercel
vercel
gets
gets
a
a
lot
lot
retention,
retention
but
but
what
what
you
you
might
might
have
have
missed
missed
is
is
that
that
Deno
deno
also
also
just
just
released
released
its
its
own
own
global
global
key
key
value
value
database.
database
It's
it's
based
based
on
on
FoundationDB,
foundationdb
which
which
is
is
developed
developed
by
by
Apple,
apple
and
and
is
is
extremely
extremely
fast
fast
while
while
also
also
porting
porting
consistency
consistency
and
and
ACID
acid
transactions,
transactions
and
and
the
the
API
api
is
is
incredibly
incredibly
easy
easy
to
to
use
use
with
with
0
0
setup.
setup
Choosing
choosing
a
a
database
database
in
in
2023
2023
is
is
harder
harder
than
than
ever.
ever
If
if
you
you
thought
thought
the
the
JavaScript
javascript
framework
framework
war
war
bad,
bad
it's
it's
nothing
nothing
compared
compared
to
to
the
the
database
database
war,
war
where
where
companies
companies
have
have
1,000,000,000
1,000,000,000
of
of
dollars
dollars
at
at
stake,
stake
all
all
competing
competing
to
to
store
store
your
your
data.
data
This
this
has
has
been
been
the
the
CodeReport.
codereport
Thanks
thanks
for
for
watching,
watching
and
and
I
i
will
will
see
see
you
you
in
in
the
the
next
next
one.
one
success
The transcript discusses the benefits of Vercel, a front-end cloud designed to provide a fully managed database. The database is flexible, scalable, and has a fast read speed. Vercel Kv is a key value store based on Upstash, and the SDK is easy to use with zero setup. The database is designed for fast performance and retention, and the code is designed for a new release in 2023.
Vercel dropped a database and leaked new Next.js features
It is May 2, 2023, and you're watching the CodeReport. If you haven't deployed an app to production at 4:59 pm on Friday that accidentally deletes database, causing your entire team to work all weekend while the company loses $1,000,000,000 on its market cap while you go fishing and get fired on Monday, you haven't really lived. Developers are terrified of screwing things up when deploying apps, which is why platforms like Vercel, Netlify, Heroku, and Firebase are incredibly popular. When your boss says All You gotta do is not up. The obvious solution is to use a platform to handle deployment for you. Vercel is the platform of choice for Next. Js deployments, but the one big thing it's missing is database. Well, not anymore. Just yesterday, Vercel announced not 1, not 2, not 3, but 4 new databases. Everybody in tech wants to sell you a fully managed database. It's a huge multibillion dollar industry with tons of competition in the startup ecosystem, and Rightfully so because managing a database is extremely difficult, and if you screw things up, it's game over. Let's see what Vercel has to offer. In My opinion, the most exciting new option is Vercel Postgres Serverless SQL for the front end cloud. Which is an SQL database powered by Neon. Neon is an awesome product, and Coincidentally, I used it when building my new Next. Js 13 course, which is now available to Fireship Pro members if you wanna learn all about it. What's Nice about this database is that it scales automatically, it's fault tolerant, and has a nice UI that's just easy to work with. Basically, all you do is click a button, add your database connection link to the environment, and then you start writing raw SQL code directly in a server component with Next. Js. It also integrates nicely with libraries like Kissele and my personal favorite, Prisma. While Neon is definitely awesome as a building block, it's still quite a ways behind tools like Supabase that have a really advanced UI where you can do row level security, procedures, and a bunch of other stuff. We've also done a full course on Supabase, but I don't think Vercel is going for that full back end as a service approach. I think they want to be more of a front end cloud that provides you with bunch of different infrastructure options. One funny side note for Next. Js users is that in the blog post, it looks like they leaked the details for a new API called server actions. Apparently, that'll be announced Thursday, but, basically, it looks like you can create server functions alongside your components to handle form submissions without needing to create API routes. This is an awesome feature, and I'm glad to see that Next is finally stealing it from Remix. But now let's check out database number 2. Vercel Kv, a key value store like Redis based on Upstash. Key value databases are extremely easy to use, but more importantly, They're extremely fast because unlike most databases, the data is held in memory instead of on the disk. Well, it is stored on disk as well, but because it's also in memory, you get extremely fast reads, making it ideal as a cache for your data. Database number 3 is edge config, which allows you to distribute configuration variables across the edge network, providing virtually instant reads It's for things like feature flags if you do AB testing, or if you have a list of malicious IPs, you could store them on the edge and then use Next. Js Middleware to block those requests. And finally, that brings access to database number 4, Vercel Blob. It's based on Cloudflare r two, which allows you to store large amounts of unstructured data, like images .pdf files on the edge. In other words, it's a replacement for storage buckets like s 3, and that could be a game changer if your app does file upload. The SDK is incredibly simple. All you do is a way to call to put with the file that you want to upload, and it returns you with a download URL. That's pretty awesome, but one limitation currently is that the max file upload size is 4 megabytes. However, that should increase after the beta phase. Vercel gets a lot retention, but what you might have missed is that Deno also just released its own global key value database. It's based on FoundationDB, which is developed by Apple, and is extremely fast while also porting consistency and ACID transactions, and the API is incredibly easy to use with 0 setup. Choosing a database in 2023 is harder than ever. If you thought the JavaScript framework war bad, it's nothing compared to the database war, where companies have 1,000,000,000 of dollars at stake, all competing to store your data. This has been the CodeReport. Thanks for watching, and I will see you in the next one.
The transcript discusses the benefits of Vercel, a front-end cloud designed to provide a fully managed database. The database is flexible, scalable, and has a fast read speed. Vercel Kv is a key value store based on Upstash, and the SDK is easy to use with zero setup. The database is designed for fast performance and retention, and the code is designed for a new release in 2023.