Caching DB requests with ETS

In this episode, we use ETS (Erlang Term Storage) to cache DB requests.

It’s enough to speed up a content listing page to 275 requests per second on a $5/month server.

https://alchemist.camp/episodes/ets-cache

Recurring Work with GenServer

Learn how to handle recurring work in Elixir with GenServer. Our GenServer will fetch the price of a Bitcoin at a certain interval.

https://elixircasts.io/recurring-work-with-genserver

Why You Too Should Learn Elixir

Learn Elixir not because you will get a better job out of it, but because learning functional programming will make you a better programmer.

https://mixandgo.com/learn/why-you-too-should-learn-elixir

Cypress with React, Phoenix and Ecto

I managed to get a Phoenix project with a React frontend working with Cypress, using Ecto in sandbox mode.

That means full e2e testing with an actual backend and data layer, instead of a mock server.

http://bego.hr/cypress-elixir-phoenix-ecto-sandbox

Elixir OTP Supervision "Tether"

While working on a side project, I got to try out a new supervision tree method for trapping processes that may never recover due to outside forces.

https://blog.oestrich.org/2018/07/otp-tether/

Rate Limiting library

Another rate-limiting library https://github.com/whitered/ratekeeper

case Ratekeeper.register("myapi.org", 10_000) do
  nil -> raise "Rate limits exceeded, request not allowed in next 10 seconds"
  delay ->
    :timer.sleep(delay)
    MyApi.do_request()
end

A dive into database multi-tenancy in Elixir with Ecto

A post with some tips and experiences about the migration of an application with a regular database to a multi-tenancy one in Elixir with Ecto.

http://dreamingecho.es/blog/a-dive-into-database-multi-tenancy-in-elixir-with-ecto

harnais_map v0.1.0

Just pushed to Hex the first cut of harnais_map, a small package in the Harnais family to test maps and their contents.

The package will compare two maps, key by key and report the differences.

Composing Ecto Queries

http://www.jackmarchant.com/articles/composing-ecto-queries

7 ways of doing Fizz Buzz in Elixir and other clickbaity stuff

https://minhajuddin.com/2018/07/06/7-ways-of-doing-fizz-buzz-in-elixir-and-other-clickbaity-stuff/

Elixir Releases: Solving Build-time vs Run-time env problem with Akd

We have been deploying/running production applications for about two years now and the first problem that comes to mind while deploying OTP releases is Build-time vs Run-time environment configuration. While running a Mix project there isn’t much of a difference between build-time and run-time as you are running the app in the same environment in which you’re compiling (building) it. However, that might not be the case when using releases. At Annkissam, we have come up with a few solutions to that problem which I explain better in this post.

How to Use IEx.pry in Elixir Tests

IEx.pry/0 is great for debugging Elixir applications, but can be perplexing to integrate into your tests. Here’s some quick tips.

https://adamdelong.com/iex-pry-test/

KaufmannEx -  Elixir Microservices with Kafka and Avro

KaufmannEx is a library for building highly parallel Kafka backed services in Elixir. We’ve written a blog post looking at its features, structures.

https://medium.com/@7mind_dev/kaufmann-ex-317415c27978

Lispex, a lisp interpreter in Elixir

A Lisp interpreter in Elixir. Implements most of the constructs included in the Scheme flavor of Lisp. https://github.com/farazhaider/lispex

You can also find a detailed blog post about the project here

Elixir wrapper for ferd/vmstats to push metrics to StatsD

A tiny wrapper on top of the awesome ferd/vmstats package which pushes a lot of useful metrics about the erlang runtime using the statix library to a StatsD server. https://github.com/tripping/vmstats_ex

Drab v0.9.0 released!

Drab has changed the API, last time before the stable release. v0.9.0 is the last “big” release before upcoming holy grail, v1.0.0!

https://github.com/grych/drab/releases/tag/v0.9.0

Hierarchy for ecto models with Postgres ltree

Tree structure & hierarchy for ecto models with ltree(Postgres)

https://github.com/GreenNerd-Labs/hierarch

Automated Fault Tolerance using the Circuit Breaker Pattern

Check out this article on how we use the Circuit Breaker pattern at Teachers Pay Teachers to make the site more reliable.

https://medium.com/teacherspayteachers/automated-fault-tolerance-using-the-circuit-breaker-pattern-3884f6e99133

Generate UUID fields in Phoenix with Postgresql

A little TIL about how to auto-generate UUID fields automatically in Phoenix with Postgresql.

http://dreamingecho.es/til/generate-uuid-fields-in-phoenix-with-postgresql

Elixir API and Elm SPA - Part 5: Persisting session data to localStorage

This is part 5 of a series on building a CRUD app with Elixir as the JSON REST API and Elm as the SPA.

Elixir API and Elm SPA - Part 5: Persisting session data to localStorage

Previous page Next page