Latest posts

Evolution of an Azure Function App

Problem Statement: Extract information from a JSON file containg an array of objects. For this article, each object in the file is as follows:

{
    "id": 1,
    "name": "Bilbo",
    "age": 111
}

and we want to extract the name and age information. We will also assume that each extraction take about 1s …

Connecting to SQL-Server with Windows Auth from Elixir

The goto method to connect to databases in Elixir are the Ecto adapters. Connecting to the SQL-server is done using the TDS adapter. Unfortunately, TDS does not support windows authetication.

The way to overcome this limitation is to use the erlang ODBC library.

def get_data do
    {:ok, ref} = :odbc.connect …

Working with Zip Files in Elixir

Elixir File module does give an option to read compressed file, but I haven't really figured out how to use it. Erlang's standard libary does have zip module is much easier to use. Let's see how:

I have two files (posts.json and todos.json) in two_files.zip.

We can …

Compile Elixir Dependency

I wanted to use the zeromq chumak library in Elixir. Since, chumak is an Erlang implementation, one should be able to use it without any modifications. I wasn't able to get it working. So decided to make changes to the mix dependency source code of chumak to find out what …

Majordomo Management Interface

In my last post, we saw an example of the majordomo protocol (MDP) in action. MDP is a reliable service oriented protocol. It can be become the single point to server different services to any user. The broker implementation in the example also has a special feature, called the majordomo …

Majordomo Protocol

I have been using the zeromq library on and off over the past few years. I really enjoyed reading the guide. One of the gems of the guide is the majorodomo protocol (MDP). The aim of the protocol is to define a reliable service oriented architecture. The following image shows …