O'Reilly logo

Programming Phoenix by Jose Valim, Bruce Tate, Chris McCord

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2The Lay of the Land

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required