Skip to content

Add special case for LatestValueCache on broadcast receivers #310

Open
@shsms

Description

@shsms

What's needed?

Broadcast channels already store the latest value on the channel, for use with the resend_latest feature.

Now that the LatestValueCache implementation is in the channels repo, it can check if a receiver is a broadcast receiver, and if so, use the broadcast channel's internal cache.

And continue to use the existing approach for other kinds of receivers.

This would improve the performance of the LatestValueCache, by eliminating the need for a task that continuously waits on a receiver for the next message.

Proposed solution

No response

Use cases

No response

Alternatives and workarounds

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    part:❓We need to figure out which part is affectedpriority:❓We need to figure out how soon this should be addressedtype:enhancementNew feature or enhancement visitble to users

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions