Campus networking app

GEHU Connect

A student community and networking app for Graphic Era Hill University, used by roughly a thousand students.

~1,000

students: using the deployed app at GEHU

DeployedReact NativeExpoJavaSpring BootRedisCloudflare R2AWS SDKSTOMP WebSockets

Campus information splits itself across dozens of WhatsApp groups, portals, and notice PDFs that disappear within an hour. GEHU Connect brings peer discussions, academic materials, student communities, marketplace listings, and campus housing discovery into one mobile client.

The client runs on React Native and Expo (SDK 54, Expo Router, Redux Toolkit Query), backed by a Java 21 / Spring Boot 3.5.9 API over PostgreSQL, Redis, Caffeine, STOMP WebSockets, and Cloudflare R2 media storage.

Having roughly a thousand students actually use the app shifts every priority away from adding more tabs and toward surviving bad hostel Wi-Fi, bounding retry bursts, and keeping media traffic off API servers.

How it works

Mobile Client
React Native + Expo Router with RTK Query cache updates, SecureStore token handling, FlashList feeds, and @stomp/stompjs live chat.
Backend API
Java 21 & Spring Boot 3.5.9 exposing JWT-secured REST endpoints and WebSocket STOMP messaging with principal persistence per session.
Media & Storage
Direct-to-Cloudflare R2 PUT uploads via AWS SDK S3Presigner (enforced 25 MB image/doc, 50 MB video, 100 MB batch limits).
Caching
AbstractLayeredCacheService combining in-process Caffeine L1 (5 min TTL) and Redis L2 (30 min TTL) with ReentrantLock stampede locks.

Engineering Case Study

Decisions, tradeoffs, and what broke.

Verified from source code and shipped iterations, including current constraints.

Problem & Role

Students at Graphic Era Hill University relied on scattered WhatsApp groups and overloaded portals for notices, notes, housing leads, and peer discussion.

Built the full-stack product architecture across the Expo React Native mobile client, Java Spring Boot backend services, Redis/Caffeine caching layer, WebSocket messaging, and Cloudflare R2 media pipeline.

Architecture

  • Expo React Native client using Redux Toolkit Query (8s request timeout, automatic 401 refresh flow) and @stomp/stompjs over WebSockets.
  • Spring Boot 3.5.9 REST API with JPA/PostgreSQL persistence, JWT authentication (jjwt), and Aho-Corasick trie text moderation.
  • Cloudflare R2 object storage integrated via AWS SDK S3Presigner so media bytes upload directly from mobile devices without passing through API app memory.

Technical Decisions

  • Presigned URLs over multipart API proxy: keeps Spring Boot web threads free even when several students upload campus notes or photos simultaneously.
  • Two-tier Caffeine L1 + Redis L2 permission caching: absorbs high read pressure on community roles and channel overrides between classes.
  • Client upload concurrency capped at 3 files with 1.5s linear backoff and explicit cancellation guards to behave predictably on patchy campus networks.

What Broke

  • Sending media directly through the backend server under concurrent campus bursts risked tying up worker threads; moving to R2 presigned uploads resolved that bottleneck.
  • STOMP WebSocket SEND frames initially lacked the Spring Security principal outside the CONNECT handshake until WebSocketAuthInterceptor stored and rehydrated session auth.
  • Without bounded concurrent uploads and abort guards, cancelled attachments could still resolve stale React state updates on slow cellular handoffs.

Outcome & What Next

Deployed for Graphic Era Hill University students, reaching roughly 1,000 student users across feeds, academic repositories, housing, and community channels.

  • Further tighten offline read resilience and graceful error recovery for low-signal hostel zones.
  • Consolidate deployment observability so API latency spikes are isolated faster before campus traffic peaks.

Usage figure reflects approximately 1,000 student users at GEHU; no daily active user metrics or inflated app-store install counts are claimed here.