Skip to content

Bloblang interpolation with custom binary plugin #2440

@Arenash13

Description

@Arenash13

Hello,

I have a case where I need to assign messages to a specific Kafka topic in the same style as https://www.benthos.dev/docs/configuration/interpolation#bloblang-queries

output:
  kafka:
    addresses: [ "TODO:6379" ]
    topic: 'dope-${! json("topic") }'

The only difference is that these are binary payloads where I search for specific bytes to determine the route.
I started to write a bloblang plugin but I'm not sure if it works out of the box and if I have to do anything to keep the original payload "untouched".

Is there a specific example I can rely on with similar constraints ?

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions