Skip to content

Multiple sinks cannot be implemented #311

Description

@380828801
 StreamBuilder builder = new StreamBuilder("wordCount");

    RStream<JSONObject> source = builder.source("stream-topic-1", total -> {
        String value = new String(total, StandardCharsets.UTF_8);
        JSONObject jsonObject = JSON.parseObject(value);
        return new Pair<>(null, jsonObject);
    });

    source.print();
    source.sink("stream-topic-sink",new KVJsonSerializer<>());

    TopologyBuilder topologyBuilder = builder.build();

In TopologyBuilder, public Processor build(String topicName) is executed in node order and cannot implement multiple sinks. The above code can only execute the first sink.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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