apache / fury

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

[Java] Does dubbo support fury serialization? #772

Open 9997766 opened 1 year ago

9997766 commented 1 year ago

Our project uses Dubbo as a microservice framework. Does Fury currently support Dubbo? If we want to integrate Fury ourselves, how should we make Dubbo to support fury?

chaokunyang commented 1 year ago

@9997766 we do want to add fury support for dubbo, but we have no time for it now. Maybe later. Currently you need to change dubbo code to add a new serialization framework.

chaokunyang commented 1 year ago

Hi @9997766 . I just add fury integration for dubbo in https://github.com/fury-project/dubbo-serialization-fury. Feel free to try it out and let us know if you have any usage issues.

FYI, https://github.com/chaokunyang/fury-dubbo-example is a out-of-box runable example.

9997766 commented 1 year ago

谢谢,我有碰到个问题, 程序A启动时,会调服务B获取数据,并加载到A的本地缓存。 如果A不是用主线程加载,而是用forkjoinpool 线程加载,会报appCloassLoader找不到java类的问题,此处说的java类就是要调服务B获取的数据的Java类。不知你们有没有碰到,如何解决?

At 2023-08-20 11:31:55, "Shawn" @.***> wrote:

Hi @9997766 . I just add fury integration for dubbo in https://github.com/fury-project/dubbo-serialization-fury. Feel free to try it out and let us know if you have any usage issues.

FYI, https://github.com/chaokunyang/fury-dubbo-example is a out-of-box runable example.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

chaokunyang commented 1 year ago

谢谢,我有碰到个问题, 程序A启动时,会调服务B获取数据,并加载到A的本地缓存。 如果A不是用主线程加载,而是用forkjoinpool 线程加载,会报appCloassLoader找不到java类的问题,此处说的java类就是要调服务B获取的数据的Java类。不知你们有没有碰到,如何解决? At 2023-08-20 11:31:55, "Shawn" @.> wrote: Hi @9997766 . I just add fury integration for dubbo in https://github.com/fury-project/dubbo-serialization-fury. Feel free to try it out and let us know if you have any usage issues. FYI, https://github.com/chaokunyang/fury-dubbo-example is a out-of-box runable example. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.>

@9997766 I added support for switch to thead context classloader in https://github.com/fury-project/dubbo-serialization-fury/pull/9, does this fix your issue?

chaokunyang commented 11 months ago

FYI, dubbo has supported fury serialization, https://github.com/apache/dubbo-spi-extensions/pull/226