apache / servicecomb-java-chassis

ServiceComb Java Chassis is a Software Development Kit (SDK) for rapid development of microservices in Java, providing service registration, service discovery, dynamic routing, and service management features
Apache License 2.0
1.91k stars 813 forks source link

Java-Chassis是否可以使用SpringBoot中提供的SseEmitter能力? #3851

Closed yanghao605 closed 1 year ago

yanghao605 commented 1 year ago

服务端可以通过SpringBoot的SseEmitter推送消息到客户端,Servicecomb-Java-Chassis有支持这个能力吗?我这边看好像没办法使用

liubao68 commented 1 year ago

java chassis目前主要还是提供RPC, SseEmitter 不支持。 不过你依然可以考虑 Spring Boot Servlet模式集成 java chassis, 对外暴露Spring MVC给前端使用。内部访问其他服务走java chassis的RPC。

yanghao605 commented 1 year ago

那是否可以基于ProduceProcessor做扩展实现这个能力

liubao68 commented 4 months ago

3.2.0版本开始支持服务器事件推送(SSE), 参考: https://huaweicse.github.io/servicecomb-java-chassis-doc/java-chassis/zh_CN/secrets/sse.html