mosn / layotto

A fast and efficient cloud native application runtime
http://mosn.io/layotto/
Apache License 2.0
828 stars 173 forks source link

Add SubscribeTopicEvents for PUB/SUB #1074

Open wenxuwan opened 3 weeks ago

wenxuwan commented 3 weeks ago

What would you like to be added:

Layotto currently uses a callback method for message subscription, which is not friendly to developers. The SubscribeTopicEvents interface can be added to allow developers to actively trigger message subscriptions.

Why is this needed:

Allows developers to use Pub/Sub capabilities more conveniently without applying the test to start the GRPC service.

can refer https://github.com/dapr/dapr/blob/master/dapr/proto/runtime/v1/dapr.proto#L64

github-actions[bot] commented 3 weeks ago

Hi @wenxuwan, Thanks for opening an issue! 🎉