How would I learn more about sharding userdata for a website?

后端 未结 2 1224
情话喂你
情话喂你 2021-02-06 16:52

I\'m interested in sharding my websites user data across multiple servers.

For example, users will login from the same place. but the login script needs to figure out wh

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-06 17:21

    You should check the very informative site http://highscalability.com . Posts worth reading:

    • Flickr Architecture and Federation
    • Livejournal Architecture
    • Habits of Highly Scalable Web Applications

    Generally you are following the right approach but this can get nasty quite fast if you need to do queries on more than one cluster - e.g. "your friends' recent posts" type queries.

提交回复
热议问题