Skip to content
Architecture 2026-07-01 10 min

Realtime Systems

Websockets, Supabase Realtime and conflict handling.

By Mohammad Zayed

Overview

Realtime systems push changes to clients over websockets or Supabase Realtime. The hard part is consistency under concurrency.

Patterns

  • Broadcast events from the server as the source of truth.
  • Optimistic UI updates, reconciled on confirm.
  • Presence channels for "who's online".

Conflicts

Use last-write-wins for low-stakes fields and explicit merge or locks for high-stakes ones (e.g. balances).

Frequently asked questions

Is this the only way to build it?
No. These are reference patterns we reuse. Adapt the boundaries to your constraints, team and compliance needs.
Should I copy this exactly?
Use it as a starting point. Validate each decision against your traffic, data sensitivity and team size.
Can NorthFlow implement this?
Yes. Share a project brief and we'll tailor the architecture to your product.

Continue reading

Want this architecture for your product?

Share one workflow and the outcome you want. We'll review your brief and suggest an appropriate next step; scope and deliverables are agreed before work begins.

Founder-led delivery · Existing systems first · Available internationally