Ecto & Multi-tenancy - Prefixes

The third and final part of the saga. This is what I ended up doing for my multi-tenant application using Ecto prefixes and PostgreSQL schema as a simpler alternative to dynamic repos.

https://underjord.io/ecto-multi-tenancy-prefixes-part-3.html

Handling Environment Variables in Phoenix

Environment variables are used to connect different services and configure an application for different environments without hard coding the sensitive values.

This post demonstrates some useful patterns for Phoenix configuration and doesn’t require any new dependencies:

https://phxroad.com/phoenix/environment-variables-in-phoenix

How to Write Elixiry Ruby - Result Object

In Elixir/Erlang, error cases can be easily modeled as tagged tuples: {:error, reason}. But in a more Object-Oriented language like Ruby, it’s hard to model error as a lightweight data structure like Elixir tuples. After some trial-and-error, I’ve found a great way to model errors in OO languages: Result Object.

How to Write Elixiry Ruby - Result Object - Yiming Chen

Easy and Robust Rate Limiting In Elixir

Ever wonder how you could write a rate limiter in Elixir? Check out my latest post https://akoutmos.com/post/rate-limiting-with-genservers/ to learn about GenServers, Task.Supervisor and Erlang’s built in queue data structure.

ElixirMix Podcast 085: Riak Core and Partisan with Mariano Guerra

In this episode of ElixirMix, we talk with Mariano Guerra about Riak Core and Partisan. He wrote a great blog series about the pairing. We cover what the libraries are, the problems they solve, how they are used in Elixir and much more!

Podcast Episode

Elixir v1.10.0-rc.0 is out

https://elixirforum.com/t/elixir-v1-10-0-rc-0-released/28086

Webserver Benchmark: Erlang vs Go vs Java vs NodeJS

https://stressgrid.com/blog/webserver_benchmark/

In this article, we compare the performance of webservers commonly used to implement server-side applications. We look at webservers implemented in Erlang, Go, Java (OpenJDK), and JavaScript (NodeJS).

Plataformatec acqui-hired by Nubank

More info on following urls:

https://elixirforum.com/t/plataformatec-acquired-by-nubank/28072

http://blog.plataformatec.com.br/2020/01/important-information-about-our-elixir-and-ruby-open-source-projects/

Elixir Wizards S3E6: Eric Meadows Jönsson on Hex and Working with Elixir

New year, new podcast episode! The latest Elixir Wizards came out last Thursday:

https://podcast.smartlogic.io/s3e6-jonsson

How to repeat something many times in Elixir?

How to build loops in Elixir and iterate over ranges?<br/> http://k.lelonek.me/elixir-loops

When creating new migration in Ecto (RDBMS mapper for Elixir), make sure to always test it by running and rolling it back successfully. These simple steps guarantees your database remains in stable state

https://hexdocs.pm/ecto_sql/Ecto.Migration.html

Delights of compile-time checking

Just a quick reflection on something I like about being in a compiled language. Nothing fancy :)

https://underjord.io/a-slight-delight-compile-time-checking.html

Piping Phoenix Contexts

It comes a time in a Phoenix app life when a new business requirement touches (almost) all contexts

https://medium.com/@iacobson/piping-phoenix-contexts-3d54dbba8df9

LiveView Design Patterns - LiveComponent and the Single Responsibility Principle

As we use LiveView to back more complex features, the temptation to write “fat” LiveViews grows. Check out our latest post @elixirschool to learn how to use LiveComponent to keep your LiveView code clean and adherent to the Single Responsibility Principle. https://elixirschool.com/blog/live-view-live-component/

Querying nested fields of a map with Ecto

How to query nested JSON/JSONB fields with Ecto queries and how to set up indexes on them.

https://alchemist.camp/articles/querying-nested-map-ecto

Phoenix LiveView + JavaScript

Learn how to use JavaScript client-side along with Phoenix LiveView rendered views.

https://www.youtube.com/watch?v=shoLKuEUQIU

onesky.ex v1.0.0 released!

We have finally released a stable version of /onesky.ex and we’re very much looking forward for your feedback and/or contributions. https://github.com/ahtung/onesky.ex

Erlang, Elixir & Friends Devroom @ FOSDEM 2020

Schedule for FOSDEM 2020 Devroom “Erlang, Elixir & Friends” is out! (Brussels, Belgium)

February 1st 2020 from 10.30 AM to 2.30 PM in room AW1.121

Overlap an image over a QR code using Mogrify in Elixir

Learn about how to overlap an image over QR code using Mogrify in Elixir.

https://crypt.codemancers.com/posts/2020-01-02-overlap-an-image-over-a-qr-code-using-mogrify

Release a Phoenix application with docker and Postgres

Medium

This blog post illustrates how to deploy a Phoenix application with a Postgres database with a single command.

Previous page Next page