Welcome to Phoenix. In this chapter, we’re not going to try to sell you too hard. We think that once you begin the work of learning this framework, the benefits will quickly become evident.
You can think of any web server as a function. Each time you type a URL, think of it as a function call to some remote server. That function takes your request and generates some response. A web server is a natural problem for a functional language to solve.
When all is said and done, each Phoenix application is made of functions. In this chapter, we’re going to break down a typical web request, and we’ll talk about what happens from the moment the user types the URL to the moment Phoenix returns some result.