Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[backend] Background Function Support #472

@KayleeWilliams

Description

@KayleeWilliams

Feature Type

⚡ Performance

Problem Statement

c15t's backend writes audit logs when a consent is created and verified. This leads to slower responses to the client as it has to perform another write.

Proposed Solution

Many common providers have some form of background function like waitUntil() (Cloudflare & Vercel) or after() (Next.js). c15t's backend should be able to accept these functions in a standardized format like backgroundFunction?: async () => void", this function, if provided, should wrap audit log creations for faster responses to the client.

Alternative Solutions

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⚡ performancePerformance improvements✨ featureNew feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions