Skip to main content

C4 Workflow Diagram - Level 2: Container Workflows

CODITECT Context Intelligence Platform

Diagram Level: 2 (Container) Focus: Workflows between containers (API, databases, workers) Audience: Developers, DevOps Purpose: Understand inter-container communication


Workflow 1: Hybrid Search Execution

Performance: p95 <100ms


Workflow 2: Create Conversation with Background Embedding

Duration: User sees response in ~150ms, embedding completes in ~2s


Workflow 3: GitHub Webhook with Correlation

Duration: <500ms webhook processing, 1-2s correlation


Workflow 4: Authentication & Authorization Check


Workflow 5: Team Analytics Calculation

Cache Strategy: 1 hour TTL for historical data, no cache for current day


Workflow 6: WebSocket Real-Time Updates

Scaling: Redis Pub/Sub for horizontal scaling across multiple API pods


Container Communication Summary

From ContainerTo ContainerProtocolPortPurpose
Web AppAPI LayerHTTPS443User actions
API LayerPostgreSQLPostgreSQL5432Data queries
API LayerWeaviateGraphQL/HTTP8080Semantic search
API LayerRedisRedis Protocol6379Cache + queue
API LayerWebSocket ManagerInternalN/AReal-time events
Celery WorkerPostgreSQLPostgreSQL5432Data updates
Celery WorkerWeaviateGraphQL/HTTP8080Vector upsert
Celery WorkerOpenAI APIHTTPS443Embeddings
Celery WorkerRedis Pub/SubRedis Protocol6379Event broadcast

Next Level: Component Workflows

The Container workflows show how containers interact. The next level (Component Workflows) will show workflows within containers at the component level (services, repositories, endpoints).

See: c4-l3-workflow-component.md


Diagram Maintained By: Engineering Team Last Updated: 2025-11-26