{"id":50,"date":"2010-03-01T12:57:59","date_gmt":"2010-03-01T11:57:59","guid":{"rendered":"http:\/\/www.4amics.com\/x.perez\/?p=50"},"modified":"2010-03-26T14:26:52","modified_gmt":"2010-03-26T13:26:52","slug":"php-scalability","status":"publish","type":"post","link":"https:\/\/www.4amics.com\/x.perez\/2010\/03\/php-scalability\/","title":{"rendered":"PHP Scalability &#8211; Part1"},"content":{"rendered":"<p>In the last years, PHP have been taken part of the market to other technologies, as .NET and Java, but till now, have been declared &#8216;non scalable&#8217;, thus it&#8217;s owns limitations, the absence of a &#8216;distributted services&#8217; concept.<\/p>\n<p>PHP it&#8217;s a language, and Apache have been the server over the years.<\/p>\n<p>A lot of web sites, takes the important decision to buy more hardware, to expend more money to maintain it&#8217;s applications online, and to expand it&#8217;s business.<\/p>\n<p>The capability of scalability takes it&#8217;s base from the concept of\u00a0 &#8220;distributed services&#8221;, that can reside under a undefined number of servers and along a large networking area. If you can separate services in any number of servers, each of those can be configured with more accuracy, and don&#8217;t expend a lot of money in monolithic servers that can cost more than 100 times as a simple server, your structure will be highly scalable.<\/p>\n<p>PHP can be configured as a fastCGI service, allowing to be separated from Apache, and to reside in another servers, but still depends on itself for maintain an application integrity.<\/p>\n<p>The principal obstacle it&#8217;s the session control, that must to be shared between all the servers, allowing to maintain the session integrity regardless of the servers.<\/p>\n<p>The second obstacle it&#8217;s the absence of a PHP socket service, that could receive any request from any other server.<\/p>\n<p>Many of those obstacles can be solved with third party applications, as Zend Server.<\/p>\n<p>Basic web server structure:<\/p>\n<p><a href=\"http:\/\/www.4amics.com\/x.perez\/wp-content\/uploads\/2010\/03\/ServerStructure.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-53\" title=\"ServerStructure\" src=\"http:\/\/www.4amics.com\/x.perez\/wp-content\/uploads\/2010\/03\/ServerStructure.jpg\" alt=\"\" width=\"630\" height=\"891\" srcset=\"https:\/\/www.4amics.com\/x.perez\/wp-content\/uploads\/2010\/03\/ServerStructure.jpg 630w, https:\/\/www.4amics.com\/x.perez\/wp-content\/uploads\/2010\/03\/ServerStructure-212x300.jpg 212w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/a>Next Part:<\/p>\n<p>PHP Scalability &#8211; Part2<\/p>\n<p>How Zend Server can improve scalability<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the last years, PHP have been taken part of the market to other technologies, as .NET and Java, but till now, have been declared &#8216;non scalable&#8217;, thus it&#8217;s owns limitations, the absence of a &#8216;distributted services&#8217; concept. PHP it&#8217;s a language, and Apache have been the server over the years. A lot of web [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,11],"tags":[18],"class_list":["post-50","post","type-post","status-publish","format-standard","hentry","category-optimization","category-php","tag-lamp-scalability"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.4amics.com\/x.perez\/wp-json\/wp\/v2\/posts\/50","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.4amics.com\/x.perez\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.4amics.com\/x.perez\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.4amics.com\/x.perez\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.4amics.com\/x.perez\/wp-json\/wp\/v2\/comments?post=50"}],"version-history":[{"count":5,"href":"https:\/\/www.4amics.com\/x.perez\/wp-json\/wp\/v2\/posts\/50\/revisions"}],"predecessor-version":[{"id":115,"href":"https:\/\/www.4amics.com\/x.perez\/wp-json\/wp\/v2\/posts\/50\/revisions\/115"}],"wp:attachment":[{"href":"https:\/\/www.4amics.com\/x.perez\/wp-json\/wp\/v2\/media?parent=50"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.4amics.com\/x.perez\/wp-json\/wp\/v2\/categories?post=50"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.4amics.com\/x.perez\/wp-json\/wp\/v2\/tags?post=50"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}