Tag
#patterns
4 articles
LiveView Hub Patterns: Building Intelligence UI That Survives Contact With Reality
Intelligence workflows demand UI that streams, degrades gracefully, and never deadlocks the BEAM. Here are the LiveView patterns Prismatic uses across /hub β async mounts, PubSub fan-out, and the one rule that prevents 90% of prod crashes.
Feature Flags for Gradual Rollout: Ship the Code, Gate the Blast Radius
Deploy and release are different events. Feature flags let you ship code to production and enable it for 1% of users, then 10%, then everyone. Here's how Prismatic gates risky changes without branching hell.
Phoenix PubSub Fan-Out Patterns: Topics Are a Contract
PubSub is free β until the fan-out is wrong and one broadcast wakes 10,000 LiveView sockets. Three topic naming rules that keep Prismatic's live dashboards responsive at scale.
Structured Error Handling in Elixir: The ZERO Doctrine
A comprehensive guide to error handling strategies in Elixir covering ok/error tuples, with chains, specific rescue clauses, and why bare rescue is banned.