Skip to content

Change insert node output #37

@smyrman

Description

@smyrman

This is suggested as an extension to #36.

We might consider to change the node output to not contain raw requests, but an aggregate of the msg.ack field.

Suggestion:

  • Output 1: the aggregated content of msg.ack for data updates on success.
  • Output 2: the aggregated content of msg.ack for meta data updates on success.

I.e. consider the following messages:

{
  _msgid: 1,
  ack: ["a1", "a1-2"],
  payload: {...}
}
{
  _msgid: 2,
  // ack undefined
  payload: {...},
  signal: {...}
}
{
  _msgid: 3,
  ack: ["a3"],
  payload: {...},
  signal: {...}
}
{
  _msgid: 4,
  ack: ["a4"],
  signal: {...}
}

The aggregated output 1 on success is:

  • {msgs: [1,2,3], ack:["a1","a1-2","a3"]} // all messages with data.

The aggregated output 2 on success is:

  • {msgs:[3,4], ack: ["a3", "a4"]} // all messages with meta data.

Errors, are logged, while the detailed response is discarded both on success and on error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalSomething that is up for discussion.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions