• Complain

Benjamin Tan Wei Hao - The Little Elixir & OTP Guidebook

Here you can read online Benjamin Tan Wei Hao - The Little Elixir & OTP Guidebook full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2016, publisher: Manning Publications, genre: Home and family. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Benjamin Tan Wei Hao The Little Elixir & OTP Guidebook

The Little Elixir & OTP Guidebook: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "The Little Elixir & OTP Guidebook" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Summary

The Little Elixir & OTP Guidebook gets you started programming applications with Elixir and OTP. You begin with a quick overview of the Elixir language syntax, along with just enough functional programming to use it effectively. Then, youll dive straight into OTP and learn how it helps you build scalable, fault-tolerant and distributed applications through several fun examples.

Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.

About the Technology

Elixir is an elegant programming language that combines the expressiveness of Ruby with the concurrency and fault-tolerance of Erlang. It makes full use of Erlangs BEAM VM and OTP library, so you get two decades worth of maturity and reliability right out of the gate. Elixirs support for functional programming makes it perfect for modern event-driven applications.

About the Book

The Little Elixir & OTP Guidebook gets you started writing applications with Elixir and OTP. Youll begin with the immediately comfortable Elixir language syntax, along with just enough functional programming to use it effectively. Then, youll dive straight into several lighthearted examples that teach you to take advantage of the incredible functionality built into the OTP library.

Whats Inside

  • Covers Elixir 1.2 and 1.3
  • Introduction to functional concurrency with actors
  • Experience the awesome power of Erlang and OTP

About the Reader

Written for readers comfortable with a standard programming language like Ruby, Java, or Python. FP experience is helpful but not required.

About the Author

Benjamin Tan Wei Hao is a software engineer at Pivotal Labs, Singapore. He is also an author, a speaker, and an early adopter of Elixir.

Table of Contents

    GETTING STARTED WITH ELIXIR AND OTP
  1. Introduction
  2. A whirlwind tour
  3. Processes 101
  4. Writing server applications with GenServer
  5. FAULT TOLERANCE, SUPERVISION, AND DISTRIBUTION
  6. Concurrent error-handling and fault tolerance with links, monitors, and processes
  7. Fault tolerance with Supervisors
  8. Completing the worker-pool application
  9. Distribution and load balancing
  10. Distribution and fault tolerance
  11. Dialyzer and type specifications
  12. Property-based and concurrency testing

Benjamin Tan Wei Hao: author's other books


Who wrote The Little Elixir & OTP Guidebook? Find out the surname, the name of the author of the book and a list of all author's works by series.

The Little Elixir & OTP Guidebook — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "The Little Elixir & OTP Guidebook" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make

MEAP Edition Manning Early Access Program The Little Elixir OTP Guidebook - photo 1

MEAP Edition

Manning Early Access Program

The Little Elixir & OTP Guidebook

Version 10

Copyright 2016 Manning Publications

Manning Publications Co. We welcome reader comments about anything in the manuscript - other than typos and other simple mistakes. These will be cleaned up during production of the book by copyeditors and proofreaders.

https://forums.manning.com/forums/the-little-elixir-and-otp-guidebook


For more information on this and other Manning titles go to
www.manning.com
welcome

Thank you for purchasing the MEAP for The Little Elixir and OTP Guidebook! By the time you read this, I'm probably still high-fiving my wife for getting the book to this stage.

To fully enjoy this intermediate-level book, I assume you are a smart person, and that you already have some programming experience (preferably web development) under your belt. Fortunately, you don't have to know Elixir and/or Erlang, although having the documentation close by would be helpful.

Elixir is a new functional programming language built on the legendary Erlang VM. OTP is a battle-tested framework (the source of Erlangs greatness) that enables you to build fault-tolerant and scalable applications.

What does that mean for you? It means that I get to show you some awesome things that you can build with Elixir and the OTP framework. I have strived to make this book as approachable and more importantly, as interesting as possible.

Among other fun examples, you will learn to write concurrent programs, see how easy it is to wire up your application to make it fault-tolerant and build web applications with real-time connectivity capabilities.

As youre reading, I hope youll take advantage of the Author Online forum. Ill be reading your comments and responding, and your feedback is helpful in the development process.

Once again, thank you for taking a chance on this first-time author. I'm sure you will have fun with this book!

Benjamin Tan Wei Hao

Preface

When I came up with the books' title, I thought it was pretty smart. Having the words "Little" and "Guidebook" hinted that the reader could expect a relatively thin volume. This meant that wouldn't be committed to come up with a lot of content. That was just as well, since Elixir was a very new language and there wasn't much of a community to speak of. It was 2014 and Elixir was as at version 0.13 and Phoenix was still a web socket library.

Two years and three hundred pages later much have changed. The language has experienced many changes and the community has grown. The excitement over Elixir is undoubtable, judging by the number of blog posts and tweets. Companies are also starting to discover and fall in love with Elixir. There is even renewed interest in Erlang, an absolutely wonderful phenomenon if you ask me!

This book is my humble attempt to spread the word. I learn best by examples, and I assume it's the same case for you. I've tried my best to keep the examples interesting, relatable, but most importantly, illuminating and useful.

Having spent more than two years writing this book, I am more than thrilled to finally get the book into your hands. I hope this book can bring you the same joy I experience when programming in Elixir. What are you waiting for?

About This Book

Ohai, welcome! Elixir is a functional programming language built on the Erlang virtual machine. It combines the productivity and expressivity of Ruby with the concurrency and fault-tolerance of Erlang. Elixir makes full use of Erlang's powerful OTP library, which many developers consider the source of Erlang's greatness, so you can have mature, professional-quality functionality right out of the gate. Elixir's support for functional programming makes it a great choice for highly distributed event-driven applications like IoT systems.

This book respects your time and is designed to get you up to speed with Elixir and OTP with minimum fuss. However, it expects that you put in the required amount of work to grasp all the various concepts. Therefore, this book works best when you can try out the examples and experiment. If you ever get stuck, dont fret the Elixir community is a very welcoming one!

How the book is organized

This book has three parts, eleven chapters, and an appendix. Part 1 covers the fundamentals of Elixir and OTP.

Chapter 1 introduces Elixir, how it is different from its parent language, Erlang, compares Elixir with other languages, and use cases for Elixir and OTP.

Chapter 2 takes you on an Elixir whirlwind tour. You will write your first Elixir program, and get acquainted with language fundamentals.

Chapter 3 presents processes, the Elixir unit of concurrency. You will learn about the Actor concurrency model and how to use processes to send and receive messages. You will then put together an example program to see concurrent processes in action.

Chapter 4 introduces OTP, one of Elixirs killer features inherited from Erlang. You will learn the philosophy behind OTP, and some of the most important parts of OTP that you will use as an Elixir programmer. You will understand how OTP behaviours work, and get to build your first Elixir/OTP application a weather program that talks to a third-party service using the GenServer behavior.

Part 2 covers the fault-tolerant and distribution aspects of Elixir and OTP. Chapter 5 looks at the primitives available to handle errors, especially in a concurrent setting. You will learn the unique approach that the Erlang VM takes with respect to processes crashing. You will also get to experience building your own supervisor process (that resembles the Supervisor OTP behavior), before you get to use the real thing.

Chapter 6 is all about the Supervisor OTP behavior and fault-tolerance. You will learn about Erlang's "Let it Crash" philosophy. This chapter introduces the worker pool application that uses the skills built up over the previous chapters.

Chapter 7 continues with the worker pool where we add more features to make it a more full-featured and realistic worker pool application. In the process, you will learn how to build non-trivial supervisor hierarchies and also learn how to dynamically create supervisor and worker processes.

Chapter 8 examines distribution and how it helps in load balancing. It walks you through building a distributed load balancer. Along the way, youll learn how to build a command line program in Elixir.

Chapter 9 continues with distribution, but this time, we look at failovers and takeovers. This is absolutely critical in any non-trivial application that has to be resilient to faults. You will build a Chuck Norris jokes service that is both fault-tolerant and distributed.

Part 3 covers type specifications, property-based testing and concurrency testing in Elixir. We will look at three tools, namely, Dialyzer, QuickCheck and Concuerror and look at examples at which these tools help us write better and more reliable Elixir code.

The appendix provides instructions to set up Erlang and Elixir on your machine.

Who should read this book

You do not have a lot of time on your hands. You want to see what the fuss is all about with Elixir, and want to get your hands on the good stuff as soon as possible.

I assume you know your way around a terminal and have some programming experience.

While having prior knowledge in Elixir and Erlang would certainly be helpful, it is by no means mandatory. However, this book is not meant to serve as a reference for Elixir. You should know how to look up documentation on your own.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «The Little Elixir & OTP Guidebook»

Look at similar books to The Little Elixir & OTP Guidebook. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «The Little Elixir & OTP Guidebook»

Discussion, reviews of the book The Little Elixir & OTP Guidebook and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.