#
Backend Overview
The Influtics backend runs entirely on Cloudflare Workers with Supabase (PostgreSQL) as the database. All async processing uses Cloudflare Queues.
#
Architecture Principles
- Stateless workers — no persistent state in workers; all state lives in Supabase
- Queue-driven async — long-running tasks (video fetching, stats updates, sheet sync) are always offloaded to queues
- Scheduled crons — nightly and periodic jobs run as Cloudflare scheduled events
- Organization-scoped — all data is scoped to
organization_id; RLS enforced at DB level
#
Workers at a Glance
#
Queues at a Glance
#
Database
Provider: Supabase (PostgreSQL)
Key tables: videos, video_statistics, tracked_accounts, blogger_information, google_sheet_integrations, google_sheet_sources, import_jobs, subscription_plan_limits, organization_custom_limits
All tables have Row Level Security (RLS) policies scoped to organization_id.