Skip to content

Data Flow

This diagram shows how data flows through the system for a typical request.

PostgreSQLRepositoryRedisServiceControllerMiddlewareRouterClientPostgreSQLRepositoryRedisServiceControllerMiddlewareRouterClientalt[Cache hit][Cache miss]HTTP RequestRoute to handlerAuthenticateCheck permissionsCall handlerParse requestCall service methodCheck cacheReturn cached dataQuery dataExecute SQLReturn rowsReturn modelsUpdate cacheReturn resultFormat responseHTTP ResponseJSON Response

Authentication Flow

RedisDatabaseAuth ModuleClientRedisDatabaseAuth ModuleClientSubsequent requestsPOST /auth/loginValidate credentialsQuery userReturn userVerify passwordGenerate JWTStore refresh tokenReturn tokensRequest with JWTValidate JWTCheck token validityToken validAuthorized