I am once again begging you to put your database servers and application servers in the same region.
@BenjDicken54 тыс. подписчиков
1 422 845 просмотров
61 комментарий
Комментарии из оригинального поста в X (Twitter)

@evanpalsson
I can do it even better:
475 отметок «Нравится»

@BenjDicken
Incredible.
47 отметок «Нравится»

@zo0r
whoever did the us-east-1 ↔ ap-east-1 combo must already have the open to work picture
234 отметки «Нравится»

@BenjDicken
😂
8 отметок «Нравится»

@DimitrsGR900
People put them in different regions? For reals?
52 отметки «Нравится»

@BenjDicken
@Dimitris_Efsta Sometimes, yes.
15 отметок «Нравится»

@hunvreus
Better yet: use SQLite and have the DB on the same server.
45 отметок «Нравится»

@BenjDicken
What happens when your one server goes down or has a failing disk?
21 отметка «Нравится»

@hunvreus
Litestream + R2 or S3
22 отметки «Нравится»

@BenjDicken
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?
1 отметка «Нравится»

@hunvreus
> 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.
10 отметок «Нравится»

@BenjDicken
No need to apologize! I want to learn more about cool tech.
10 отметок «Нравится»

@hunvreus
In that case, I'd check Limbo from the Turso folks: Sounds like a pretty cool attempt to rewrite SQLite.
12 отметок «Нравится»

@RadicDavydov
They should be in the same data center with < 1ms latency.
19 отметок «Нравится»

@BenjDicken
Radic gets it.
2 отметки «Нравится»

@namletech
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
13 отметок «Нравится»

@BenjDicken
@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.
21 отметка «Нравится»

@bhollis
What kind of criminal would NOT have their DB in the same region as the app servers!?
9 отметок «Нравится»

@s_soroosh
what's the difference between the first and the second one?
9 отметок «Нравится»

@BenjDicken
Intra-AZ vs inter-AZ. For further reading check this out:
8 отметок «Нравится»








![Фото профиля PRIZ ;]](https://image.24vids.com/tw/profile_images/2069536582202535936/OdzhxsC4_x96.jpg)

















