-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: layotto spring-boot #371
Comments
There was an issue discussing java-sdk and layotto-sdk-springboot,see #206
The layotto-sdk-springboot can be implemented as a seperate module which imports java-sdk and has a |
@seeflood I know, I will do it, then I will put the code logic in the |
@ZLBer niu b |
@seeflood why |
@ZLBer Users can write different Subscriber callback for different pubsub component ,e.g. RocketMQSubscriber for RocketMQ, ActiveMQSubscriber for ActiveMQ. For example, RocketMQSubscriber.listTopicAndSubscriptions may have some special logic in it ,while ActiveMQSubscriber.listTopicAndSubscriptions not. If you can't understand it after reading the description above,tell me and I will add an example |
@seeflood so I'm a little confused, why not provide a method |
The |
Is @RayneHwang 's explanation enough? He is the author of it. Emmmmmm, for me, both design styles are fine :) |
@RayneHwang @seeflood I understand, but every user who wants to subscribe to a topic has to implement the distribution logic in his own method. a little bit difficult but not a big problem . I will implement it according to this logic |
You are right.Maybe we can add a defaultSubscriber to make it easier to use? |
@seeflood can i move this from example to sdk and change it to defaultSubscriber ? |
yes you can |
This issue has been automatically marked as stale because it has not had recent activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue or help wanted) or other activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as pinned, good first issue or help wanted. Thank you for your contributions. |
What would you like to be added:
I found layotto spring-boot in the community tasks, and want to implement it.
I went to understand the implementation of dapr spring-boot and found that it is more complicated.
When a method is annotated by
@Topic
(it needs to be annotated by@PostMaping
at the same time), the route (maybe a url) of this method will be saved and exposed through/dapr/subscribe
. When dapr runtime starts, it will go todapr/subscribe
to pull subscription information, and then subscribe( the code logic in the dapr), when subscription occurs, it will call back the route.Does layotto spring-boot need to be implemented like this? In a simple way, when the method is annotated by @Topic, just subscribe to this topic in the java-sdk. But but... this puts the code logic in the sdk again!
Why is this needed:
The text was updated successfully, but these errors were encountered: