Church-NextJS Central Hub API

Version 1.0.0 - Phase 2.3 API Architecture Modernization

Live Performance Status

0ms
Avg Response Time
0.0%
Cache Hit Rate
0.0%
Compression Savings
0.00%
Error Rate

API Overview

Enterprise Church Management System - Central Hub API Documentation

Phase 2.3 Features

GraphQL Endpoint

Comprehensive schema with field-level caching and intelligent batching for efficient data fetching.

Multi-Layer Caching

L1 (memory) + L2 (Redis) + L3 (edge) architecture with high hit rates.

Response Compression

Brotli/Gzip compression with 60% average size reduction.

Request Batching

Database query optimization with significant efficiency gains.

GraphQL API

Endpoint: /api/graphql

Modern GraphQL API with comprehensive schema covering events, people, locations, and analytics.

POST /api/graphql GraphQL

Example Query

query GetDashboardStats { dashboardStats { totalEvents totalPeople upcomingEvents cacheHitRate averageResponseTime } }

Example Response

{ "data": { "dashboardStats": { "totalEvents": 15, "totalPeople": 234, "upcomingEvents": 8, "cacheHitRate": 95.2, "averageResponseTime": 25.5 } } }

REST Endpoints

Traditional REST endpoints with Phase 2.3 optimizations applied.

GET /people get

Get all people

POST /people post

Create a new person

GET /people/{id} get

Get person by ID

PUT /people/{id} put

Update person

DELETE /people/{id} delete

Delete person

GET /events get

Get all events

POST /events post

Create a new event

GET /registrations get

Get all registrations

POST /registrations post

Create a new registration

GET /health get

Health check

Performance Optimization

Current Performance Targets

<300ms
Response Time Target
>85%
Cache Hit Rate Target
>60%
Compression Target
<5%
Error Rate Target

Optimization Stack

L1 Cache (Memory)

Ultra-fast in-memory cache with LRU eviction. Target: <5ms response time.

L2 Cache (Redis)

Distributed Redis cluster with read replicas. Target: <50ms response time.

L3 Cache (Edge)

CDN-level caching for global distribution. Target: <100ms response time.

Response Compression

Brotli/Gzip compression with intelligent algorithm selection based on client support.