nowfound

Dev tools · November 30, 2023

LP

Libcluster Postgres Strategy for Elixir

hey hn, I’m Filipe, a developer at supabase we have three projects using Elixir in a clustered setup. we’ve always used libcluster[0] to achieve it but ended up using multiple strategies. now we’ve converged into one approach for all our projects using Postgres as the coordinator. we’re using Postgres LISTEN and NOTIFY commands with Postgrex as the system to propagate node addresses so they can connect plus we use it to send healtcheck pings to heal when required. big thanks to https://twitter.com/gotbones for the libcluster library and…

In plain words

Libcluster Postgres Strategy for Elixir is a clustering strategy that enables Elixir applications to discover and connect to each other using PostgreSQL as a coordinator. It leverages Postgres LISTEN and NOTIFY commands with Postgrex to propagate node addresses across clustered systems and includes health-check pings to manage node failures. Built by developers at Supabase, it consolidates multiple clustering approaches into a single unified solution for distributed Elixir applications.

written from the facts on this page · September 2026

From the sources

In the maker’s words, at launch

hey hn, I’m Filipe, a developer at supabase we have three projects using Elixir in a clustered setup. we’ve always used libcluster[0] to achieve it but ended up using multiple strategies. now we’ve converged into one approach for all our projects using Postgres as the coordinator. we’re using Postgres LISTEN and NOTIFY commands with Postgrex as the system to propagate node addresses so they can connect plus we use it to send healtcheck pings to heal when required. big thanks to https://twitter.com/gotbones for the libcluster library and https://twitter.com/kevinbuch_ for the inspiration [0] libcluster: https://hexdocs.pm/libcluster/readme.html

More dev tools this month

the category →
  • Dograh592

    The open source VAPI alternative

    Dev tools · 25d ago · dograh.com

  • Meridian530

    Don't let your work go unnoticed. Get promoted!

    Dev tools · 20d ago · meridiona.com

  • x1516

    Lovable for iPhone apps go from idea to App Store

    Dev tools · 11d ago · x1.new

  • Open-source GTM skills for technical founders

    Dev tools · 29d ago · gtmcofounder.com

  • Nuphos380

    The AI-Native DevOps Workspace.

    Dev tools · 24d ago · nuphos.ai

  • OpenTrailPaper is open-source bike computer firmware for the LilyGO T5S3 4.7" E-Paper PRO. It supports offline maps, GPX routes, FIT recording and Bluetooth sensors.

    Dev tools · 1d ago · opentrailpaper.com

Launched alongside, November 2023

the whole month →
  • Flowla1,120

    Digital sales rooms that wow buyers

    Growth · 2023 · flowla.com

  • Discover & book top creators to promote your product

    Growth · 2023 · passionfroot.me

  • Re:catch939

    If Google Form & Calendly had a baby

    Growth · 2023 · recatch.cc

  • Pitch 2.0887

    Create, share and analyze presentations faster than ever

    Work · 2023 · pitch.com

  • CRM built for modern teams & creators powered by AI

    AI · 2023 · leaddelta.com

  • Make your website lightning fast

    Dev tools · 2023 · speedvitals.com