Skip to content

Consider to add Rabbit Stream auto-creation hook #2445

Closed
@artembilan

Description

@artembilan

Currently we have to use something like Environment.streamCreator().stream("stream.stream").create() which even is not mentioned in the docs: https://docs.spring.io/spring-amqp/reference/html/#super-streams.
We do have an auto-creation for SuperStream though, perhaps something similar could be achieved for regular stream.
Something like this:

@Bean
Stream myStream(Environment env) {
    return Stream.builder().environment(env).name(...).build();
}

Or something like Map.of("x-queue-type", "stream") for regular Queue declaration is enough so far?
Shouldn't this be mentioned in the doc then somehow?

Also there is no pointers in the doc about spring-rabbit-stream dependency.

We also need to present a sample application somewhere.

@joshlong also asked about Rabbit Stream checkbox on start.spring.io, similar to the Apache Kafka Streams, but that fully different story.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions