Skip to content

downstream broadcast msg asynchronously #378

@lrhkobe

Description

@lrhkobe

When downstreaming broadcast messages, blocking of one client may affect the consumption of other clients.So maybe we can make it asynchronously.

      while (sessionsItr.hasNext()) {
          Session session = sessionsItr.next();
          if (!session.isAvailable(topic)) {
              logger.warn("downstream broadcast msg,session is not available,client:{}", session.getClient());
              continue;
          }
          downStreamMsgContext.session = session;
          //msg put in eventmesh,waiting client ack
          session.getPusher().unAckMsg(downStreamMsgContext.seq, downStreamMsgContext);
          session.downstreamMsg(downStreamMsgContext);
      }

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementImprove the mechanism or performancekind

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions