Explore the various web servers available to build robust web applications
Leverage Elixir's powerful Plug module to build a request-response pipeline
Explore advanced techniques of Elixir to create Domain-Specific languages and build scalable, maintainable web products
Description
Elixir's functional nature and metaprogramming capabilities make it an ideal language for building web frameworks, with Phoenix being the most ubiquitous framework in the Elixir ecosystem and a popular choice for companies seeking scalable web-based products. With an ever-increasing demand for Elixir engineers, developers can accelerate their careers by learning Elixir and the Phoenix web framework.
With Build Your Own Web Framework in Elixir, you’ll start by exploring the fundamental concepts of web development using Elixir. You'll learn how to build a robust web server and create a router to direct incoming requests to the correct controller. Then, you'll learn to dispatch requests to controllers to respond with clean, semantic HTML, and explore the power of Domain-Specific Languages (DSL) and metaprogramming in Elixir. You'll develop a deep understanding of Elixir's unique syntax and semantics, allowing you to optimize your code for performance and maintainability. Finally, you'll discover how to effectively test each component of your application for accuracy and performance.
By the end of this book, you'll have a thorough understanding of how Elixir components are implemented within Phoenix, and how to leverage its powerful features to build robust web applications.
Who is this book for?
This book is for web developers seeking to deepen their understanding of Elixir's role in the Phoenix framework. Basic familiarity with Elixir is a must.
What you will learn
Develop a deep understanding of Phoenix
Use metaprogramming with Elixir
Get to grips with web development fundamentals
Dispatch a request to a controller and respond using HTML embedded with Elixir
Use OTP constructs to add concurrency to the web server
Like I said in title, as you can generally expect from PacktPub, there are typos GALORE in this book. Usually the accompanying repo can guide you through it, but sometimes it's quite the headache. Nonetheless I gave the book four stars because it's a pretty interesting take on picking up Phoenix. I've never really made a Phoenix project yet but decided to start here, and it's fairly rewarding to build it up this way.
Amazon Verified review
Amazon CustomerJul 19, 2023
5
The book is well written. Explains the concepts in a concise and easy-to-understand way. It is easy to read and follow. All of the code fragments I tested compiled successfully and worked correctly. It is a great in-depth introduction to the Elixir Phoenix framework and what's under the hood.
Amazon Verified review
cs44Jun 20, 2023
5
I often read tech books to learn a new skill or rehash an older subject, and generally I do enjoy them. However, I was grinning ear to ear with this one.As a seasoned Elixir engineer, primary focused on web technologies, I have a comprehensive understanding of the underlying machinery of, say, Phoenix. Though I often want to peek under the hood, and that’s what this book does.Aditya expertly guides you through the foundation and frameworks powering our web applications from scratch. It’s an excellent vantage point.Aside from that, his elegant style is something I’ll no doubt borrow in my own code.If you’re an Elixir dev searching for a new book, after having read them all, look no further.
Amazon Verified review
ReaderJun 18, 2023
5
The author starts with a review of how a web server is built, followed by controllers, routers and serving HTML. From there the book gets into metaprogramming and wraps all the functionality into a nice readable interface. All of this is done while learning how to test everything. Highly recommended for anyone looking to gain deeper insight on how Phoenix works!
Amazon Verified review
NoahJun 18, 2023
5
Disclaimer: I received an early review copy PDF of this book for review purposes but did not receive any compensation for this review.There's an increasing number of educational programming content along the lines of "Build Your Own X." Think, "Build Your Own React," "Build Your Own Operating System," and so on. In most cases, these are great ways to practice programming skills using a concrete problem with many example implementations.With "Build Your Own Web Framework in Elixir," Adi has created an excellent new entry in this genre. It's more than a simple "copy this code and run it" tutorial that ends up with some "finished" project. It's carefully architected and goes through the core building blocks of Elixir for web/backend development from :gen_tcp to Ranch to Cowboy to Plug, all to teach the reader how to build frameworks like Phoenix. It goes into great detail about creating a custom metaprogramming DSL in an easily-digestible way while also covering useful utilities for introspection and testing.Overall, I highly recommend this book for Elixir developers who are familiar with the concept of web servers. My recommendation applies even more to Elixir developers who are comfortable with Phoenix but want to learn more about how frameworks like it are designed and built.
Adi Iyengar is a Senior Software Engineer who has worked with Elixir since 2015. Over those years, he has worked across a wide array of applications, and authored / contributed to several open source projects including Elixir itself.
He is passionate about mentoring and sharing his knowledge with others, which is why he actively mentors Junior developers in Elixir and Software Engineering. He loves Elixir, Functional Programming and Test Driven Development.
When not coding, Adi can be seen playing Billiards, playing Guitar or Breakdancing. Adi also spends a good amount of his time keeping up with new developments in Particle Physics.
Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.
If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.
Please Note: Packt eBooks are non-returnable and non-refundable.
Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:
You may make copies of your eBook for your own use onto any machine
You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website?
If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:
Register on our website using your email address and the password.
Search for the title by name or ISBN using the search option.
Select the title you want to purchase.
Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title.
Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook?
If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
To view your account details or to download a new copy of the book go to www.packtpub.com/account
Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.
You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.
What are the benefits of eBooks?
You can get the information you need immediately
You can easily take them with you on a laptop
You can download them an unlimited number of times
You can print them out
They are copy-paste enabled
They are searchable
There is no password protection
They are lower price than print
They save resources and space
What is an eBook?
Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.
When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.
For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.