Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add util for bulk server->uids push? #421

Copy link
Copy link
@ptaoussanis

Description

@ptaoussanis
Issue body actions

Currently the recommended way of broadcasting an event to multiple uids is something like this:

(doseq [uid all-uids] (chsk-send! uid [:my-app/ev {:payload some-data}]))

An inefficiency in this case is that the event message will be repeatedly serialized - once for each uid.

Instead, we could easily add a simple util that:

  • Takes a coll of uids
  • Uses the active packer only once
  • Sends the packed string to all uids

This would be a substitute for [#276].

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.