vendredi 3 septembre 2021

Share Entities with multiple languages - Java, Python and Kotlin

We have three micro services and each of them in different languages. Now there are Entities needs to be shared between these services.

Micro service calls

Service1 ( Java ) <--> Service2 ( Kotlin ) <--> Service3 ( Python )

Product Entity

class Product {
 string name;
 string description;
 ...
}

Now i don't want to create these entities in all 3 language and maintenance will be tedious.

Is there way i can define entities in XML or JSON and create them in all these languages?

Any library or docs will be helpful.

Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire