Skip to content

Perf: coalesce audit-log writes per request - #1223

Merged
Baskarayelu merged 3 commits into
CredenceOrg:mainfrom
sheyman546:fix/1192-coalesce-audit-log-writes
Jul 30, 2026
Merged

Perf: coalesce audit-log writes per request#1223
Baskarayelu merged 3 commits into
CredenceOrg:mainfrom
sheyman546:fix/1192-coalesce-audit-log-writes

Conversation

@sheyman546

Copy link
Copy Markdown
Contributor

Closes #1192

Adds request-scoped buffering to AuditLogService so multiple audit entries during a single request are flushed together rather than written individually.

sheyman546 and others added 3 commits July 30, 2026 06:44
Adds request-scoped buffering to AuditLogService so that multiple audit
log entries generated during a single request are flushed together.
- startBuffer() / flush() / discardBuffer() API
- Express middleware (auditBufferMiddleware) wired into request lifecycle
- Buffer no-ops if already active (safe re-entrance guard)
- Server errors (500+) discard buffer to avoid partial commits
@Baskarayelu
Baskarayelu merged commit 0951891 into CredenceOrg:main Jul 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Perf: coalesce audit-log writes per request

2 participants