Reg Reg
Reg Reg

Reputation: 69

How to use the Chronicle-Network Library for service communication (APIs)?

I have two services that are deployed in the two different VMs. I want to call one service from other to get some data via APIs. That should need to have an ultra-low latency call.

For that how can I used the Chronicle-Network (https://github.com/OpenHFT/Chronicle-Network)?

Or Any other solution?

Upvotes: 1

Views: 689

Answers (2)

rvit34
rvit34

Reputation: 2116

If you have a network call between VMs, try to use Chronicle Network. Another option is Aeron UDP unicast connection - https://github.com/real-logic/aeron

Upvotes: 0

Peter Lawrey
Peter Lawrey

Reputation: 533492

I would suggest using Chronicle-Queue for passing messages from one service to another and back again. This is much lower latency than using TCP and easier to work with, provided the two VMs are on the same machine. You also get a record of every message making testing/debugging easier.

https://github.com/OpenHFT/Chronicle-Queue#high-level-interface-for-readingwriting

If you have two different machines I suggest either moving one VMs or using a low latency network card like Solarflare or Mellanox.

Upvotes: 1

Related Questions