On This Page
Stop Picking One Stack for Every Problem
Over four shipped systems, each backend choice solved a specific operational constraint rather than chasing trends:
- Kas Latukan (Vanilla JS + Google Apps Script): chose zero server cost over sub-100ms latency because treasurers already relied on Google Sheets and had no infrastructure budget for 295+ monthly cash transactions.
- Vibemotion (TanStack Start + Cloudflare Workers / D1 / R2 / KV): isolated metadata in D1 SQLite while streaming audio payloads to R2 to achieve global mobile latency near zero idle cost.
- Sambung Ngaji & Tartila (Go Fiber + PostgreSQL + Ably): introduced containerized Go APIs once strict RBAC roles (SUPER_ADMIN, TIM_KU, TIM_ABSENSI), transactional attendance matrices, and live quiz rooms outgrew spreadsheets.
- GGF-FMS (Laravel 12 + MySQL + React Native
op-sqlite): paired battle-tested enterprise ORM controls with explicit offline SQLite queues across 100+ plantation sites.
export type ConstraintProfile = {
monthlyInfraBudgetZero: boolean;
requiresMultiRoleRbac: boolean;
handlesBinaryMediaOver5Mb: boolean;
needsOfflineFieldQueue: boolean;
};
export function recommendArchitecture(c: ConstraintProfile): string {
if (c.needsOfflineFieldQueue) return "Laravel / REST API + Mobile op-sqlite Queue";
if (c.requiresMultiRoleRbac) return "Go Fiber + PostgreSQL Relational SSOT";
if (c.handlesBinaryMediaOver5Mb) return "Cloudflare Workers + D1 Metadata + R2 Streams";
if (c.monthlyInfraBudgetZero) return "Google Apps Script + Static Web Client";
return "Next.js / TanStack Start + Managed PostgreSQL";
}Decision Rule Worth Keeping
Start with the simplest persistence model that protects data integrity for your real users today, write clean TypeScript/Zod boundaries at the edges, and graduate to heavier services strictly when role permissions, concurrency, or offline reliability demand it.