I have two Java applications deployed on tomcat. For inter application communication I provide jar file of application (Java API) to other application and it becomes a method call which is fast.
Now I am thinking of creating rest service, can it add some extra time. Of course yes but how much in worst case. Keeping in mind applications are on intranet.
How can I measure network latency? which I think will be most time taking part.
Need expert advice/opinion, how can we take design decisions in such cases?