When working with distributed Erlang applications at Logflare/Supabase, we encountered an interesting issue where the :global_name_server would become overwhelmed with messages, leading to a boot loop situation. This issue is particularly relevant when dealing with the prevent_overlapping_partitions feature.
7 posts tagged with "supabase"
View All TagsElixir Syn: Custom Event Handler Callbacks for Process Conflict Resolution
The :syn library provides a distributed process registry for Elixir applications, offering an alternative to :global for name registration across clusters. It allows you to define custom event handler callbacks to handle process conflicts and registration scenarios.
Elixir Syn: Partitioning Scopes with phash2 to Reduce Message Queue Buildup
When working with large distributed Elixir clusters at Logflare/Supabase, we encountered situations where the syn_gen_scope gen_server process would become overwhelmed with messages during cross-cluster synchronization. This happens particularly when thousands of processes register under a single scope, causing the message queue to grow significantly and impacting cluster discovery and synchronization performance.
Supabase Devlog - Performance Optimizations with Garbage Collection Tweaking and Cachex Upgrades
This week, I'm hunting down a few things that are plaguing Logflare, namely:
- High memory usage over time
- Sporadic memory spikes and system slowdowns
Deploy Your Supabase Edge Functions and Database Migrations with Single Command (100x productivity!)
This is my handy dandy way to deploy lots of Supabase edge functions and sync my migrations all in one go:
