Go, PostgreSQL 16, Redis 7 & Flutter

TN NOW: Real-Time Hyperlocal Discovery & Civic Media Platform

Building an ultra-responsive civic journalism and viral video streaming platform engineered to scale across all 38 districts of Tamil Nadu.

Client / Ecosystem TN NOW Media & Civic Network
Engineering Role Lead Backend & Mobile Systems Architect
Platform Stack Go Backend (Native ServeMux) & Flutter Client
Architecture Riverpod, GoRouter, Redis & pgx/v5
TN NOW mobile app interface showing district updates and video reels

Project Overview

TN NOW was architected as a district-first civic discovery network designed to deliver hyper-targeted local news, civic alerts, municipal announcements, and viral video content to citizens across Tamil Nadu with zero algorithmic latency.

Engineering Challenges & Bottlenecks

  • Severe Traffic Surges During Breaking News: Handling 100,000+ simultaneous read requests during regional elections, weather alerts, and viral civic incidents.
  • Multilingual Full-Text Search: Supporting rapid phonetic and Tamil script full-text search across thousands of district stories without heavy Elasticsearch clusters.
  • API Abuse & Bot Scraping: Throttling malicious scrapers and click-farms without degrading performance for legitimate mobile app users.

Architecture & Solutions

  • Pure Go Native HTTP Engine: Engineered the entire API using Go 1.22's native http.ServeMux routing with zero external web framework overhead, achieving sub-10ms p99 latency.
  • PostgreSQL 16 tsvector Search: Implemented database-native full-text search using GIN indexing on tsvector columns, eliminating external search cluster hosting costs.
  • Redis 7 Sliding Window Rate Limiting: Deployed a Lua-scripted sliding window rate limiter in Redis 7, seamlessly filtering abusive IPs and safeguarding server resources.
  • Cloudflare R2 Object Storage: Distributed high-definition video reels and image assets over Cloudflare R2 with zero egress bandwidth fees.

Key Engineering Contributions

  • Designed and authored the full Go backend architecture using sqlc compiled type-safe queries.
  • Constructed the PostgreSQL 16 relational database schema with geofenced district partitions.
  • Built the Flutter client utilizing Material 3 design tokens, Riverpod state management, and Dio interceptors with automatic JWT rotation.
  • Configured Docker Compose containerization for rapid staging and one-click cloud deployment.

Key Results & Performance Metrics

<12ms
P99 API Latency
End-to-end Go backend query latency under high load.
38 Districts
Geolocated Sharding
Instant regional content filtering across Tamil Nadu.
0 Bandwidth Fees
Cloudflare R2 CDN
Completely eliminated cloud media egress expense.

Core Technology Stack

Go 1.22+

Native http.ServeMux, type-safe sqlc, and pgx/v5 connection pool.

PostgreSQL 16

Relational persistence with tsvector multilingual search.

Redis 7

Sliding window rate limiters and auth token blacklists.

Flutter Material 3

Cross-platform mobile client with GoRouter and Riverpod.

Cloudflare R2

S3-compatible object storage with global zero-cost egress.

Looking to Deploy a Similar Solution?

This architecture is available as a customizable, white-label commercial software solution. Explore features, deployment timelines, and turnkey pricing.

View Hyperlocal Platform Product

Need Senior Mobile & System Architecture for Your Next Initiative?

I help ambitious organizations architect, build, and deploy production-grade mobile platforms and high-throughput backend services.