Tag
#phoenix
10 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.
LiveView Streams for Large Datasets: 10k Rows Without the Memory Bill
Phoenix LiveView streams solve a problem most dashboards pretend they don't have: the DOM keeps every row you ever rendered. Here's when to reach for streams, when to reach for pagination, and the memory math behind the decision.
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.
Phoenix PubSub at Scale: Real-Time Event Architecture
Phoenix PubSub powers real-time features across the Prismatic Platform, from DD pipeline events to error pattern tracking. This article covers topic design, subscriber patterns, and handling backpressure at scale.
OpenAPI 3.0 and Swagger UI Integration in Phoenix
How Prismatic auto-generates OpenAPI 3.0 specs from Elixir typespecs, serves Swagger UI, validates requests, and manages API versioning.
LiveView Performance: Sub-250ms Page Loads
Achieving sub-250ms page loads in Phoenix LiveView requires careful attention to mount optimization, ETS caching, and error handling. This article shares the patterns we use across 30+ LiveView pages in production.
API Security and Rate Limiting: Token Bucket Implementation in Phoenix
Protecting Phoenix APIs with token bucket rate limiting, per-client quotas, DDoS mitigation patterns, and Plug-based middleware for comprehensive API security.
LiveView Performance Patterns for Complex Dashboards
Practical patterns for building high-performance Phoenix LiveView dashboards: defensive mounts, efficient assigns, PubSub-driven updates, and Chart.js integration with sub-150ms mount times.
Authentication and Authorization Design: Session Auth and Casbin RBAC in Phoenix
Designing authentication and authorization for a Phoenix application: session-based auth, Casbin RBAC integration, API key management, role hierarchy with admin/operator/viewer, and permission model.
Phoenix PubSub at Scale: Topic Design and Fan-Out Patterns
Deep dive into Phoenix PubSub architecture for real-time event distribution at scale, covering topic design, fan-out patterns, message batching, and production conventions.