Other articles


  1. Implementing finite state machines with Erlang and gen_statem

    This post discusses the implementation of and FSM (finite state machine) in Erlang with the gen_statem module. We emphasize the implementation of the FSM by creating a table of rules that define the transitions (from state to state) of the FSM and then implementing the FSM by translating those rules into code (in this case, Erlang code).

    read more
  2. Structured applications using REST and FSMs

    This post discusses design and structure of applications that are composed of multiple, heterogeneous processes that communicate with each other. In particular, the two types of processes or sub-applications that we shall consider are those that implement a REST API and those implemented as finite state machines (FSMs).

    read more
  3. Defining and implementing finite state machines in Python with the transitions module

    This post discusses the implementation of FSMs (finite state machines) in Python using the transitions module. The following are discussed: (1) Given a set of rules, how to implement an FSM with Python and transitions. (2) How to export a Python transitions FSM to JSON. (3) How to read that JSON file and generate Python code which implements the FSM that it specifies. (4) How to load a JSON file that describes an FSM into a running Python application.

    read more
  4. A Cowboy REST CRUD application with a supervised OTP database process

    This document explains a REST application built in Erlang on top of the Cowboy Web server. The application supports the following operations: add record, get recort, get list of records, update record. The records are stored in a DETS database, and are, therefore, persistent. This example is similar to the REST CRUD example in the previous post but differs in that all database/DETS operations are performed in a separate process that keeps the DETS database open.

    read more

Page 1 / 3 »

links