#Otp
12 notas · última:
My New Favorite Elixir Testing Trick
Author shows how to replace IO-heavy modules with a fake that sends messages to the test process, allowing ExUnit `assert_receive` assertions similar to Ruby test doubles.
A Brief Guide to OTP in Elixir
The article introduces OTP as Elixir’s process-based toolkit, then shows basic processes, receive loops, GenServer callbacks, and a Supervisor for restarting a treasury process.
Using Mnesia in an Elixir Application
The post explains what Mnesia is, how it fits soft real-time and fault-tolerant use cases, when to prefer it over PostgreSQL or Redis, and shows an Elixir banking app built with Amnesia.
OTP as the Core of Your Application Part 2
The post builds an actor-model book store in Elixir with a Registry, DynamicSupervisor, and per-book GenServers, then compares its request latency and resource use with a database-centered version under load.
Correios CEP 0.6.0 released! Remove zipcode field and update HTTPoison.
Correios CEP lets you find Brazilian addresses by postal code through the Correios API. Version 0.6.0 removes `Address.zipcode`, switches to `postal_code`, updates HTTPoison, and drops OTP 20 support.
Easy Concurrency Locking in Erlang/Elixir
Explains limits of GenServer as a single-owner lock and presents the sleeplocks library, which implements multi-slot, blocking locks on the BEAM using OTP message passing and GenServers.
Confreaks TV | ElixirConf 2016
Archived Confreaks TV page listing 14 ElixirConf 2016 talks with short abstracts, covering Elixir tooling, OTP, Phoenix, metrics, distributed systems, and learning paths.
Designing with OTP Applications in Elixir
The post breaks Domain Scraper into separate OTP applications, argues for independent restart boundaries, and shows an umbrella setup that wires Twitter fetching and the unshortening pool together through streams.
Phoenix: The difference between web and lib
Phoenix has two code locations, `web` and `lib`. The key difference is that `web` is hot reloaded on each request, while `lib` is suited to state that lives beyond a request lifecycle.
Elixir concepts for Go developers
The post sketches Elixir for Go developers by comparing immutability, pattern matching, atoms, processes, supervisors, pipes, macros, OTP, and Phoenix to familiar Go ideas.
What are the different OTP supervisor restart strategies useful for?
The post summarizes the four OTP supervisor restart strategies and the situations they fit: fixed hierarchies, same-type process pools, dependent pipelines or registries, and tightly related groups that must restart together.
An intro to OTP in Elixir
The post explains OTP as Erlang’s development environment for concurrent programming, then builds a FizzBuzz server with GenServer, client APIs, callbacks, caching, and process-based I/O.
