Core Concepts
Detailed explanation of the fundamental concepts and architecture of the C15T Backend package, including instance management, context system, and request handling.
This document covers the fundamental concepts and architecture of the C15T Backend package.
Instance Management
Creating an Instance
The C15T instance is the core of the system, managing all components and their interactions:
For a quick start guide, see Getting Started.
Instance Configuration
The instance configuration includes:
Learn more about database adapters in Database Adapters.
Context System
Context Structure
The context is a shared state that persists throughout the request lifecycle:
Context Extensions
Plugins can extend the context with additional data:
Learn more about plugins in Plugin System.
Request Handling
Request Flow
-
Request Reception
-
Request Processing
-
Response Generation
For API endpoint details, see API Endpoints.
Request Lifecycle
-
Pre-processing
-
Authentication
-
Authorization
-
Handler Execution
-
Post-processing
Response Processing
Response Types
For API response formats, see API Endpoints.
Response Formatting
Error Handling
Error Types
For error handling in plugins, see Plugin System.
Error Handling
Middleware System
Middleware Types
-
Request Middleware
-
Response Middleware
-
Error Middleware
Learn more about middleware in Plugin System.
Middleware Chain
Event System
Event Types
Event Handling
Event Emission
Testing
Test Utilities
Mock Context
Performance Optimization
Caching
For database performance, see Database Adapters.