fengjiachun / Jupiter

Jupiter是一款性能非常不错的, 轻量级的分布式服务框架
Apache License 2.0
1.51k stars 562 forks source link

移除对 InvokeType.SYNC,InvokeType.AUTO 足够 ? #89

Closed fengjiachun closed 5 years ago

fengjiachun commented 5 years ago

Your question

InvokeType.SYNC 可能没有存在的必要

Your scenes

接口的返回值不是 CompletableFuture 时,AUTO 便是 SYNC

Your advice

InvokeType.AUTO 能覆盖 InvokeType.SYNC 的场景,不再对 SYNC 支持也可以很好的兼容 hessian 等序列化场景 #82

Environment