CMS and high traffic sites: PHP and MySQL

Is there a difference between CMS and hight traffic sites (for example, news portals) in the logic and design and optimization of databases (PHP and MySQL)? I searched php site scalabilityon stackoverflow and memcached is in most. Are there any MySQL optimization methods? (I searched for a book for this problem. I searched in amazon , but I don’t know what is the best choice.) Thanks in advance

+3
source share
2 answers

It is not so easy to answer. There are different approaches and different opinions, but they try to cover some common scenarios. but first some basics.

- . (oltp) (olap)

. . , , .. , IP- namen dns. .

, , . .

, , - , , , , . , 1 . . , . . , , , ( ) .

olap . olap - , 100% .

, . , .

, .

  • Sharding
  • master-master

sharding , , . , , , a, b- > b .. , . . , , . , , eveyr server a-z . , , . ( google, ).

-- , -, , . , , . -, , ? ... . ! , . commentA A, B B. . ? , . , . , mysql - . , anaway...

, , , , oyu .

+3

, , - PHP/MySQL . , .

, . CMS, , , . , .

+1

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


All Articles