Elixir Patterns (self-published) (handbook)

By @akoutmos and @hugobarauna

You already know the basics of Elixir. Maybe you have even shipped something to production. That’s awesome! But how can you go one step further in your Elixir developer journey?

This book will help you to become a better Elixir developer by teaching you how to leverage the power of the BEAM runtime with recipes and patterns specific to Elixir/OTP.

About the book

The idea of having a “go-to” toolbox of patterns that you can leverage is an enticing one. That’s what design patterns are about. But, design patterns are usually abstract and do not leverage unique properties of your specific run-time or language. That’s how this book is different.

This book aims to surface the powerful and unique characteristics of the Erlang virtual machine (or BEAM for short) and show you how you can go about solving everyday problems in a simple yet scalable way.

Not only will you learn how to better leverage the tools that are at your disposal courtesy of Erlang and the BEAM, but you will also learn how to better utilize Functional Programming in order to achieve your goals in a clear and concise way. You’ll start off by learning about some of the Erlang standard library utilities that are available to you right out of the box, and then you’ll learn how to put those to use in your stateful GenServer powered applications.

What you’ll learn in this book:

  1. The Erlang Standard Library Part 1
  2. What are Data Structures
  3. Using Queues in Erlang
  4. The Many Set Implementations in Erlang
  5. Arrays…in Erlang?
  6. Using the Erlang Module for Everyday Tasks
  7. The Erlang Standard Library Part 2
  8. Directed Graphs with the Digraph Module
  9. Fast Incrementers with Atomics and Counters
  10. Blazing Fast Data Reads with Persistent Term
  11. Using ETS and DETS for General Purpose Data Storage
  12. Keeping Things Secret with the Crypto Module
  13. The Elixir Standard Library
  14. Useful Enum Module Patterns
  15. Being Lazy with the Stream Module
  16. Massive Concurrency with the Task Module
  17. The Process Module
  18. GenServers and Supervisors
  19. Erlang Application Philosophy
  20. What is a GenServer?
  21. Understanding the Callbacks
  22. The Lifecycle of a GenServer
  23. What is a Supervisor
  24. Combining Supervisors and GenServers
  25. Basic GenServer Recipes
  26. Initializing an Application
  27. Message and Data Batching
  28. Running Cron Jobs
  29. Process Introspection with the Sys Module
  30. Advanced GenServer Recipes
  31. Rate Limiting
  32. Work Delegator
  33. Actor Model Design
  34. Testing Stateful Applications
  35. Application Release Packaging
  36. What is an Erlang Release
  37. Why Should you use Erlang Releases?
  38. Handling Application Configuration
  39. Behaviours and Protocols for Environment Specific Adapters
17 Likes

How to buy? I only see an option to download a free chapter…

1 Like

I think you may have to wait until the launch. This is pre-launch.

2 Likes

Maybe @akoutmos or @hugobarauna can shed some light on a possible release date :smiley:

We’re currently targeting a full book release for the Summer. We should be releasing chapter two this coming week, which will also be a free download. PDF and Livebooks included :smiley:

4 Likes

@hugobarauna and I just published chapter 2 of Elixir Patterns! In chapter 2 we cover some of the more advanced Erlang data structures available to us with some really helpful Livebooks to show you how they all work :).

Be sure to check it out: https://elixirpatterns.dev/

5 Likes

@hugobarauna and I excited to announce the the Elixir Patterns book is in beta release! Part one of the book is complete and we’re currently working on wrapping up part 2. Each chapter has a couple of accompanying Livebook files to help you learn and experiment with the concepts in the chapter. Check it out @ https://elixirpatterns.dev/ and if you are interested in picking up a copy, you get an early beta price :wink:

5 Likes