I started web development in LAMP/WAMP and it was logical to me. There is a Web Server program called Apache which does the networking part of setting up a service on port 80 (common port). If the request is regular HTML it serves it using HTTP. And if the request is a PHP resource, there is a mod_php with which the Apache invokes the PHP interpreter to process the file and it gives back HTML which is again transferred as usual HTML.
Now the question is what is a Web Framework? I came across Python based website creation and there is Flask. What is a flask, how does it compare with LAMP. Further are Django/Ruby on Rails different from flask?
Further is LAMP slower than these common frameworks - most claim that it is easy to deploy web apps using their framework?
Can someone answer me and also give some good places to read on these. Thanks for your answers in advance.