REST API Java microservice available inside same application server -


i have small java (java ee) microservice, calculations. microservice running on same application server other application, written in java ee. first question - should these apps communicate each other rest api or different way? second question - if so, there way save time, not serializing/deserializing transfer objects? understand communication between 2 apps on different servers (languages) requires serialization/deserialization, mentioned situation?

should these apps communicate each other rest api or different way?

microservices should communicate on network always. if have rest api use that.

if so, there way save time, not serializing/ deserializing transfer objects?

if communicating on network serialization must. anyway, serialization decoupling. microservices should share data not schema/classes. serialization must done loosing schema, i.e. use json. if share schema (classes) break microservice's encapsulation. won't able change microservice implementation other implementation (that using different technology stack, php nginx example).


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -