spring-cloud / spring-cloud/spring-cloud-stream
[Question] How to manually register a binding in code
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 646
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 8
Description
spring:
cloud:
function:
definition: cpeResult
stream:
bindings:
cpeResult-in-0:
binder: kafka-manage
destination: mqtt_cpecommunication_kafka_topic
group: ucc_${spring.application.name}
Yaml Config Above.
I just want to register it in code not config.
Because I am writing the logic of a common module that needs to be dependent on many other microservices, I hope that other services will not need to display the configuration when referencing this module
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue provides only a Spring Cloud Stream YAML configuration for the cpeResult function and Kafka binding; it names no source file, test, or entry point. Start by locating the Java-side binding-registration API and compare it with the shown cpeResult-in-0 configuration. Done means a common module can register the binding without each consuming service repeating the configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, kafka, spring
- Domain
- backend, distributed-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100