apache / fury

A blazingly fast multi-language serialization framework powered by JIT and zero-copy.
https://fury.apache.org/
Apache License 2.0
3.12k stars 252 forks source link

[Java] Integrate with spring cloud alibaba #1213

Open wwhbai opened 12 months ago

wwhbai commented 12 months ago

我想问一下啊,这个的集成方式 是只需要pom文件里面添加一下,任何代码都不需要修改也不需要配置就可以生效的嘛? 网上完全查不到相关资料啊。目前使用的项目是jdk8的 spring cloud 内部调用使用feign,压测链路过长,容易失败。觉得可能序列化的问题,现在是想用这个fury来解决这个问题。 我想知道的是,只需要引入pom即可生效吗?

chaokunyang commented 12 months ago

spring cloud feign won't use Fury for serialization if you just import fury dependency in pom. Seems that spring cloud feign uses json for serialization, you may need to update the feign source code to make it use fury for serialization

chaokunyang commented 12 months ago

About the performance issue, could you use https://github.com/async-profiler/async-profiler to sample a flame graph?