FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

Β© 2026 FlareStart. All rights reserved.

Back to articles
Event Lifecycle Control in GraphQL Subscriptions
How-ToTools

Event Lifecycle Control in GraphQL Subscriptions

via Dev.toStefan πŸš€1d ago

Cosmo Streams adds three handlers to the router that control subscription behavior: authorization when a client subscribes, per-subscriber filtering while events flow, and validation when mutations publish events. Instead of building custom subscription infrastructure, you write Go functions that run at specific points in the event lifecycle. What EDFS Already Solved EDFS connects your message broker to GraphQL subscriptions. The router listens for events and publishes them as subscriptions. This remains the foundation of how Cosmo Streams operates. Cosmo Streams extends that by moving subscription authorization, event filtering, and mutation validation into the router itself. Three handlers cover three stages: when a subscription starts, while events are in flight, and when mutations publish events. Authorization Was All or Nothing EDFS gave you binary access: authenticated users could subscribe to any topic. There was no way to scope access based on roles, user attributes, or subscri

Continue reading on Dev.to

Opens in a new tab

Read Full Article
2 views

Related Articles

What Learning to Code Actually Feels Like (No One Talks About This)
How-To

What Learning to Code Actually Feels Like (No One Talks About This)

Medium Programming β€’ 1d ago

How to Run Ethernet Cables to Your Router and Keep Them Tidy
How-To

How to Run Ethernet Cables to Your Router and Keep Them Tidy

Wired β€’ 1d ago

The Moka Pot Is the Best Way to Brew Coffee (2026)
How-To

The Moka Pot Is the Best Way to Brew Coffee (2026)

Wired β€’ 1d ago

How-To

Deep dive β€” Building a local physics-informed ML workflow for fluid simulations

Medium Programming β€’ 1d ago

Stop Struggling with PDFs in Flutter β€” Here’s Everything You Need to Know
How-To

Stop Struggling with PDFs in Flutter β€” Here’s Everything You Need to Know

Medium Programming β€’ 1d ago

Discover More Articles