Загрузка видео...

Не удалось загрузить видео

На главную

I am once again begging you to put your database servers and application servers in the same region.

1,422,580 просмотров • 1 год назад •via X (Twitter)

Комментарии: 61

Фото профиля E
E1 год назад

I can do it even better:

Фото профиля Ben Dicken
Ben Dicken1 год назад

Incredible.

Фото профиля Jorge Trujillo
Jorge Trujillo1 год назад

whoever did the us-east-1 ↔ ap-east-1 combo must already have the open to work picture

Фото профиля Ben Dicken
Ben Dicken1 год назад

😂

Фото профиля Dimitris GR 900 Liverpol Fan Account
Dimitris GR 900 Liverpol Fan Account1 год назад

People put them in different regions? For reals?

Фото профиля Ben Dicken
Ben Dicken1 год назад

@Dimitris_Efsta Sometimes, yes.

Фото профиля Ronan Berder (SF + SG)
Ronan Berder (SF + SG)1 год назад

Better yet: use SQLite and have the DB on the same server.

Фото профиля Ben Dicken
Ben Dicken1 год назад

What happens when your one server goes down or has a failing disk?

Фото профиля Ronan Berder (SF + SG)
Ronan Berder (SF + SG)1 год назад

Litestream + R2 or S3

Фото профиля Ben Dicken
Ben Dicken1 год назад

That's cool. My two big questions are: (1) How can to commit writes with acceptable latency? (2) If a node goes down, how fast is a restore? Is one having to take downtime?

Фото профиля Ronan Berder (SF + SG)
Ronan Berder (SF + SG)1 год назад

> How can to commit writes with acceptable latency? I use Litestream for backups. If you really want a more complex setup, Turso or D1 is your friend. > If a node goes down, how fast is a restore? Is one having to take downtime? It's a file, pretty fast. Faster than getting a new node set up and the code running. I wasn't taking a dig on Planetscale BTW, I only just realized you work there.

Фото профиля Ben Dicken
Ben Dicken1 год назад

No need to apologize! I want to learn more about cool tech.

Фото профиля Ronan Berder (SF + SG)
Ronan Berder (SF + SG)1 год назад

In that case, I'd check Limbo from the Turso folks: Sounds like a pretty cool attempt to rewrite SQLite.

Фото профиля Radic Davydov
Radic Davydov1 год назад

They should be in the same data center with < 1ms latency.

Фото профиля Ben Dicken
Ben Dicken1 год назад

Radic gets it.

Фото профиля nle
nle1 год назад

Is there any reason to put them in different regions though? Naturally people just start out on a single region for a long time until they need to scale up multi regions, in that case they still keep db separated in each region

Фото профиля Ben Dicken
Ben Dicken1 год назад

@oscarle_x There are cases where multi-region databases are needed for ultra-high durability cases, like financial transactions. I would not recommend having a multi-master setup though. Have one region replicate from the other.

Фото профиля Ben Hollis
Ben Hollis1 год назад

What kind of criminal would NOT have their DB in the same region as the app servers!?

Фото профиля Oosta Soroosh
Oosta Soroosh1 год назад

what's the difference between the first and the second one?

Фото профиля Ben Dicken
Ben Dicken1 год назад

Intra-AZ vs inter-AZ. For further reading check this out:

Фото профиля Patrick Kuhnke
Patrick Kuhnke1 год назад

What about not using a database at all?

Фото профиля Ben Dicken
Ben Dicken1 год назад

@ku_ds17868 Interesting. Say more.

Фото профиля Patrick Kuhnke
Patrick Kuhnke1 год назад

So the state of your application is stored in memory on the server and serialized to disk. You still need to make sure that the server is nearby though.

Фото профиля Jonathan
Jonathan1 год назад

People don’t do this????

Фото профиля Ben Dicken
Ben Dicken1 год назад

Some don't!

Фото профиля Jonathan
Jonathan1 год назад

Diabolical behavior

Фото профиля Jamie Turner
Jamie Turner1 год назад

Are there people who don't do that?

Фото профиля Ben Dicken
Ben Dicken1 год назад

This tweet is to ensure we eliminate the few that do 🫡

Фото профиля Holly Guevara
Holly Guevara1 год назад

He can't keep getting away with this

Фото профиля Ernesto Diaz
Ernesto Diaz1 год назад

Care to explain this one?

Фото профиля Ben Dicken
Ben Dicken1 год назад

Check out

Фото профиля 𝒫𝑒𝓇 𝒜𝓇𝓃𝑒𝓃𝑔 【🐧λ🦀⎈】
𝒫𝑒𝓇 𝒜𝓇𝓃𝑒𝓃𝑔 【🐧λ🦀⎈】1 год назад

Same availability zone even.

Фото профиля Ben Dicken
Ben Dicken1 год назад

Absolutely! We shouldn't rely on same-AZ since we generally need to replicate across multiple AZs for high-availability, but this is certainly optimal.

Фото профиля Tyler F. Cloutier
Tyler F. Cloutier1 год назад

I am once again asking you to put your database servers and application servers in the same process. @spacetimedb

Фото профиля PRIZ ;]
PRIZ ;]1 год назад

I am once again begging you to STOP USING SPEED BALLS

Фото профиля Marc Steele
Marc Steele1 год назад

Load balancers in Australia, app servers in the US and database in Europe. Think I’ve got it. Thanks for the tip!

Фото профиля Ben Dicken
Ben Dicken1 год назад

@steelegbr 😅

Фото профиля Jamie Voynow
Jamie Voynow1 год назад

@levelsio wait but I thought python was the bottleneck not the database ? 🤣

Фото профиля AJ Stuyvenberg
AJ Stuyvenberg1 год назад

You and these balls man, you can't keep getting away with this

Фото профиля NightinWolf
NightinWolf1 год назад

anything below 100ms is a decent result. misleading video.

Фото профиля Ben Dicken
Ben Dicken1 год назад

For a full website page load, sure. For for a single round-trip from application to database, 100ms is far too long.

Фото профиля NightinWolf
NightinWolf1 год назад

you have extreme expectations which i admire as I see you are involved with planetscale. big ups for that. but no website gets such result. i clicked on your reply and according to firefox, it took 735ms. so by ur standards, twitter is taking way way toooo long.

Фото профиля Ben Dicken
Ben Dicken1 год назад

Sure, but loading page on X easily requires 10, 20, or even 50+ queries for a single web page load. Every millisecond we can shave off each query adds up.

Фото профиля etkaute
etkaute1 год назад

This graphic scratches an itch in my brain

Фото профиля Jackson
Jackson1 год назад

cool visual, but pretty sure nobody is doing this

Фото профиля Ben Dicken
Ben Dicken1 год назад

Unfortunately it does happen.

Фото профиля Agustin Falaz
Agustin Falaz1 год назад

us-east-1 talking to ap-east-1 is a vibecoded TODO app or admin panel

Фото профиля kortress
kortress1 год назад

As far as I know, if they are in different regions, extra fee exists.

Фото профиля Ben Dicken
Ben Dicken1 год назад

Yeah, this is true even of cross-AZ traffic. My understanding is that AWS charges bandwidth fees for traffic that's not within the same AZ.

Фото профиля Jeferson
Jeferson1 год назад

Edge computing can be a good strategy.

Фото профиля Ben Dicken
Ben Dicken1 год назад

Edge is great for caching resources and such. You have to be careful about connecting to a centralized database from far-away edge nodes though.

Фото профиля Rajiv Khaneja
Rajiv Khaneja1 год назад

For certain workloads put your database and application on the same server. I've seen 10x increase in requests/sec

Фото профиля network_pun
network_pun1 год назад

why do we need to keep inventing pretty pictures to say "latency exists"?

Фото профиля lala
lala1 год назад

Nice visual

Фото профиля Devaansh Bhandari
Devaansh Bhandari1 год назад

I'm not very experienced with infrastructure, but don't companies keep servers in different locations to reduce latency and for failover backup? For example, if the US server goes down, can it connect to the CA one? How is failover usually handled?

Фото профиля Alex Havryleshko
Alex Havryleshko1 год назад

It started concerning me recently actually. I didn’t understand latency. With each query, the request travels across the network. Good rule of thumb in system design: configure it for the same region, and ideally same availability zone.

Фото профиля Josh Stein
Josh Stein1 год назад

where can I slide it all the way?

Фото профиля Scott | 1A x 2A 🇺🇲
Scott | 1A x 2A 🇺🇲1 год назад

Does Planetscale have a presence in each of these AWS datacenters? How does the cost compare to RDS?

Фото профиля Ben Dicken
Ben Dicken1 год назад

We've got this info on our pricing page:

Фото профиля Chase Miller
Chase Miller1 год назад

The cost savings is huge too.

Фото профиля Jake Casto
Jake Casto1 год назад

Explain Neon using balls

Похожие видео