Make audit log record creation asynchronous to reduce request latency #15

Closed
opened 2026-06-14 04:54:39 +02:00 by retoor · 0 comments
Owner

Summary

Audit log record creation currently blocks HTTP requests (e.g., voting, updates, creates, deletes, patches), slowing down response times. The reporter requests that audit log creation be queued and handled by a background service, making HTTP actions faster. This should be implemented generically so it can be reused for other actions. The reporter also suggests that voting in general should be made asynchronous, similar to devRant.

Steps to Reproduce

Not provided.

Expected Behaviour

Audit log record creation is queued and processed asynchronously by a background service, so HTTP requests (e.g., voting, updates, creates, deletes, patches) complete quickly without waiting for audit log writes.

Actual Behaviour

Audit log record creation slows down HTTP requests when posting votes or performing other actions.

Environment

Not provided.


Reported by retoor via DevPlace.

## Summary Audit log record creation currently blocks HTTP requests (e.g., voting, updates, creates, deletes, patches), slowing down response times. The reporter requests that audit log creation be queued and handled by a background service, making HTTP actions faster. This should be implemented generically so it can be reused for other actions. The reporter also suggests that voting in general should be made asynchronous, similar to devRant. ## Steps to Reproduce Not provided. ## Expected Behaviour Audit log record creation is queued and processed asynchronously by a background service, so HTTP requests (e.g., voting, updates, creates, deletes, patches) complete quickly without waiting for audit log writes. ## Actual Behaviour Audit log record creation slows down HTTP requests when posting votes or performing other actions. ## Environment Not provided. --- *Reported by **retoor** via DevPlace.*
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: retoor/devplacepy#15
No description provided.