Skip to content

some sort of macro for defining topologies #1

@strongh

Description

@strongh

Most build-topology (or equivalent) functions look very similar. In simple cases something like a macro for

(doto (TridentTopology.)
   (t/new-stream "my-spout" spout)
   ...))

could almost work. But for even marginally more complicated topologies, there might be states or intermediate streams that need to be defined.

Another option would be to have a with-trident-topology macro that bound e.g. *trident-topology* to a TridentTopology object, and returned the trident topology at the end. We'd have to change all the arities of the existing helpers, and they would no longer be useful outside of a with-trident-topology. I think that's fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions