Sharing requests in code between multiple servers

I have several forum servers (which they do not matter) that store messages from users, and I want to be able to share requests between these servers. Currently, I am inclined to divide them by geographical location. To improve data locality, users will be divided into regions, for example. North America, South America, etc.

Is there any design pattern on how to implement a function that maps the partioning property to the server so that this part of the code has high availability and does not become the only point of failure?

f( Region ) -> Server IP 
+4
source share
1 answer

If you listen to Matt Mullenweg (the founder of Wordpress), polled by Jason Kalakanis in TWiST # 26 , the only recipe for dignitaries, the accessibility that worked was “horizontal expansion” (ie, “many data centers on every continent”), with the difference between those intended for small blogs (low traffic) with less replication on different continents, and some for blogs with high traffic).

So there is no magic solution but to say: cheaper than hardware, you have as many data centers as you can.

+1
source

Source: https://habr.com/ru/post/1308633/


All Articles