Posts about #elixir

Phoenix Telemetry

Telemetry is becoming the defacto library to instrument and publish metrics in Elixir apps. This post is a step-by-step guide to integrate Telemetry in a Phoenix app which leverages Opus.

Read more

Writing a Command-Line Application in Elixir

I’ve always been fascinated by well-made applications for the terminal. Who doesn’t install htop on a new machine, am I right? My plan was to build something that I’d use daily and other people would potentially find useful. Therefore I decided to build a cli app for Tefter. It’s built on Elixir and Ratatouille and it’s open-source. Check out the source or download and try it or install via brew. … Read more

A Slack bookmarking application in Elixir with Opus

This post describes how we used Elixir and Opus in one of our services at Tefter, which implements bookmarking collaboration in Slack. My relationship with Slack I remember, when Slack started getting viral and it was set as the main chat app at work, I was very reluctant to use it. I was quite happy with IRC and always in favour of open protocols. Since it supported an IRC / XMPP gateway, tweaking my irssi config and later finch was trivial and my overall experience was good. … Read more

ElixirConf.EU 2019

I was lucky enough to attend ElixirConf.EU for the third time and in this post I’m sharing some thoughts about the talks I saw, some of my notes and insights on the future of this community in general. Location I’d never visited Prague before and the conf was an amazing opportunity to combine business and pleasure. While writing this post though, a week after, I realised I didn’t visit most of the landmarks that I was planning to. … Read more

Observer Live

Yesterday I published a demo of my port of observer_cli using LiveView. It took me a few of minutes to familiarise myself with this new web development concept. The docs are clear, accurate and provide a very smooth introduction to the capabilities of this interactive server-side rendering way of doing things. I have to say that I’m really impressed 🙂. You can try the demo yourself here. Or.. see this gif. … Read more

ElixirConf.EU 2018

I attended ElixirConf.EU 2018, it took place in Warsaw this time. The food was fantastic, the weather was very favourable and the presentations a blast. The Food Announcement: This blog is from now on about food ..Not. That zapiecek place was sooo good though. We ate there almost twice a day. They had those ravioli-like pasta called pierogi, absolutely mouth-watering. I might visit Poland again just for the food! </food> … Read more

Phoenix WebSockets Under a Microscope 🔬

This is a code-reading and exploration post about the WebSockets side of Phoenix. It builds upon some of the tracing techniques showcased in the previous post, to observe some of the internals of Phoenix. It also features some tricks I commonly employ to debug WebSocket related issues. The title and nature of this post are inspired by the marvellous book Ruby Under a Microscope written by Pat Shaughenessy. WebSockets The WebSocket Protocol enables two-way communication between a client running untrusted code in a controlled environment to a remote host that has opted-in to communications from that code … Read more

Debugging & Tracing Elixir Applications

This post describes a few useful techniques to debug running Erlang / Elixir applications. It is meant to be a cheatsheet of things you can do to inspect and alter the state of an application without requiring the installation of packages. For any of the code snippets below, autoverse refers to my local hostname, which itself refers to one of my favourite science fiction novels, “Permutation City” by Greg Egan. … Read more

Elixir.LDN 2017

I returned from vacations in beautiful Greece (Amorgos island 🏝), to attend Elixir.LDN-2017 in London. General Feeling The venue was at a very convenient location and was well suited for the conference. I could see many familiar faces and felt like a supercharged edition of the London Elixir meetup. If you’re interested in attending the Elixir London meetups you probably want to join #london of the elixir-lang slack (get an invite) and the meetup. … Read more

Distillery releases with Docker multi-stage builds

This post describes the procedure to create lightweight Docker images, using multi-stage builds, to deploy Elixir applications packaged using Distillery. It is assumed that you’re familiar with Docker and Elixir. Multi-stage builds Since Docker version 17.05 you can have multi-stage builds. With such builds you can have a single Dockerfile contain multiple FROM instructions, separating multiple stages of a build, where artifacts from one stage can be used in the next and all resulting in a single image. … Read more