Audit Events Are Written in the Same Transaction as Business Logic
Files: auth.py:432-478, lifecycle.py:100-143
Audit records are awaited in the same request path as login/signup. If the audit service or DB is slow, it directly impacts authentication latency. Audit writes should be fire-and-forget or queued asynchronously (similar to how webhook emission already uses a separate session factory).
Audit Events Are Written in the Same Transaction as Business Logic
Files: auth.py:432-478, lifecycle.py:100-143
Audit records are awaited in the same request path as login/signup. If the audit service or DB is slow, it directly impacts authentication latency. Audit writes should be fire-and-forget or queued asynchronously (similar to how webhook emission already uses a separate session factory).