craigbeck.lab67.me

Posts in "elixir"

Intro to Elixir Applications on Kubernetes

Explore how Elixir developers can leverage Kubernetes to enhance application availability and reliability, implementing K8s tools in ways that integrate well with Elixir/OTP and Phoenix applications.

A good intro to running Elixir on Kubernetes that addresses the natural question: why bother with K8s when the BEAM already gives you fault tolerance and distribution? The walkthrough covers key K8s concepts and gets you running locally with Docker Desktop, which makes it easy to experiment without a cloud account. Part of a larger series on Brewing Elixir worth following if you’re heading down this path.

How to Async Tests in Elixir

Proper, robust asynchronous tests solve slow and flaky test suites through horizontal scaling and process isolation.

Andrea Leopardi digs into why async testing gets hard in Elixir as apps grow — singletons and shared state are the usual culprits. The practical advice here is solid: think like a library author, avoid hardcoded singletons, and leverage tools like ProcessTree and nimble_ownership for resource isolation. A great reference if your test suite is getting slow or flaky.

georgeguimaraes/arcana

Embeddable RAG library for Elixir/Phoenix with agentic pipelines and dashboard.

This looks like a really well-thought-out approach to adding RAG capabilities to Phoenix apps. The three-function API (ingest, search, ask) keeps things simple, but it also supports more advanced agentic pipelines with query expansion, multi-hop reasoning, and self-correction, with built-in LiveDashboard integration and swappable backends (pgvector, Bumblebee for local embeddings)

Extensible Design With Protocols

…an introduction to protocols and then describe several uses of protocols that lead to extensible design. The examples in this post are written in Elixir but should be equally useful in other languages (after all, Elixir credits Clojure as inspiration for its implementation of protocols).

Builing Product Recommendations Using Elixir GenStage

I’ve wanted to build something using Flow since José Valim introduced the concepts behind it in his Elixir Conf 2016 keynote. I initially thought of building a product recommendation tool using crowdsourced reviews. As it would include both IO intensive stages, such as HTTP requests, and CPU intensive stages, like sentiment analysis. A good candidate for parallel processing and suitable for using Flow.

I’m still pretty new to Elixir but can see there’s a lot of great stuff in this project to learn from.