Passion in coding software architectures

New to Elixir?  

All Articles

The Primitives of Elixir Concurrency: a Full Example

We see how to fully implement concurrent HTTP calls, using just spawn, send and received along with HTTPoison. We then refactor our code using...
Alvise Susmel
6 min read

Hey Process, there is a Message for you!

Messages are a fundamental part of concurrency in Elixir. In this article we see how messaging and mailboxes . With messages we can
Alvise Susmel
5 min read

Spawning processes in Elixir, a gentle introduction to concurrency

In this article I introduce concurrency and show how we can start making our code concurrent in Elixir, using processes.
Alvise Susmel
4 min read

How to run a Docker Container

After a quick intro to containers and images, we see how easy it is to run and connect to a containerised Nginx server. We...
Alvise Susmel
2 min read

The Beauty of Pattern Matching in Elixir

One of the beautiful things of Elixir is pattern matching. We'll see pattern matching with tuples, lists and maps, a bit of control flow...
Alvise Susmel
3 min read

Download Large Files with HTTPoison Async Requests

Make requests with HTTPoison is easy, but the response is held in memory. To download large files we need to divide the response into...
Alvise Susmel
4 min read

Connecting Elixir Nodes with libcluster, locally and on Kubernetes

We are going to see how to cluster Elixir and Phoenix nodes with libcluster, locally and on Kubernetes using containers.
Alvise Susmel
4 min read

Distributed Phoenix Chat with PubSub PG2 adapter

In this article we see how to cluster Phoenix Chat nodes, using distributed Elixir. We see how pg2 works and inspect how Phoenix efficiently...
Alvise Susmel
6 min read

Distributed Phoenix Chat using Redis PubSub

In this article we'll see how to scale horizontally the Phoenix Chat app, using Redis and a Phoenix PubSub adapter.
Alvise Susmel
3 min read

Create a High-Availability Kubernetes Cluster on AWS with Kops

In this article we see how to create a High-Availability Kubernetes cluster on AWS with Kops and deploy a Phoenix Chat application.
Alvise Susmel
12 min read

Processing Large CSV files with Elixir Streams

Elixir Streams are extremely powerful when we need to process large CSV files. Let's see the difference between a greedy and lazy approach.
Alvise Susmel
4 min read

Aggregate and Count Real-Time Trades with Elixir Maps

In this article we start to see how to aggregate Coinbase trades in real-time, using the GenServer behaviour. We'll build an aggregation process that...
Alvise Susmel
6 min read

Realtime Market-Data Updates with WebSocket and Elixir

In this article we see how to build an Elixir application to get realtime updates from the coinbase websocket feed, handling crashes and disconnections.
Alvise Susmel
7 min read

Running Elixir in Docker Containers

How to use Docker to run our development Elixir environment and to run multiple Elixir Nodes over a Docker bridge network.
Alvise Susmel
6 min read

Build a Simple Persistent Key-Value Store in Elixir, using…

In this part we'll do a step further, making both keys and values persistent, being able to recover the Index in the case of...
Alvise Susmel
7 min read