How to communicate variable between two micro services easily

Hello :slight_smile:!

I have two microservices A & B.
A and B don’t share the same classes.
In A I made a call Activity with B.

Is it possible to transfer data without wrapping java type ?

For instance :
I have the class com.A.test.class in microservice A
I want to use a class com.B.test.class in microservice B to deserialize the data from com.A.test.class.
(com.B.test.class is the same code as com.A.test.class)

I saw the usage of Spin.JSON and map.to(). But i would like to keep the code as simple as possible.
We would like to get and set variables just with a class cast.
Is there a way to do this ?

Thanks for your Answer !

1 Like