PHP developer: Have you finished GLAMMP?

Source: Internet
Author: User

BKJIA comprehensive report] The Golden combination of website development LAMPLinux + Apache + MySQL + PHP has been popular for several years. After LAMP, the PHP community recently started to promote the GLAMMP combination. This combination adds a G and a m to LAMP. What do the two new letters mean?

G -- Gearman

Gearman is a work of Brad Fitzpatrick. It uses a task scheduling program written in Perl to provide a client interface on the server side and in multiple languages, including C/Perl/Python/Ruby.

Gearman can be used in various aspects. The simplest is to build a bridge between different languages. For example, if you want your php program to call a c function, you can use gearman to implement it. Of course, you can actually write a php extension to achieve the same job, for example, if you want php to call java, perl, or python, gearman is great.

Another application of gearman is load balancing. You can place worker on different servers or some column servers. For example, your php program needs image conversion, however, if you do not want the local server to have too many such image conversion processes, you can create a series of servers and load worker on them to process image conversion. In this way, your web server will not be affected by image conversion. At the same time, you get the server Load balancer function, because the job server will send this request to the idle worker when the request arrives. for multi-core servers, you can create the same number of workers on the same machine. you may be worried that the job server is in the center, and this will be a single point of failure. What if it dies? In this case, you can run multiple job servers. In this way, if a job server is down, the client and worker will be automatically migrated to another job server.

M -- Memcached

Memcached is a high-performance, distributed memory object cache system developed by Danga Interactive. It is used to reduce database load and improve access speed in dynamic applications.

The opinion of the PHP community is that LAMP combinations are increasingly unable to meet the needs of many websites, and the intervention of other tools is an inevitable trend. In terms of databases, Drizzle, known as the memcached killer application, may replace MySQL. InThe year when MySQL was acquired by SunPeople are concerned about whether MySQL will continue to develop the LAMP architecture.Sun was acquired by Oracle againThe founder of MySQL announced the creation of an open-source database alliance. when MySQL is about to be split, can Drizzle be used as an extension of MySQL to make GLAMMP flourish?

But I may be wrong. In this case, the name of GLAMMP should be changed to GLAMPD.

  1. Topic: MySQL database entry and proficiency
  2. PHP + MySQL video tutorial
  3. View the future of MySQL and relational databases from memcached
  4. Topic: LAMP technical solution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.