Git Product home page Git Product logo

Comments (4)

StarpTech avatar StarpTech commented on June 6, 2024 1

@vitorcamachoo hemera is a RPC toolkit which based on the messaging platform NATS. You have to create multiple instances of your service and multiple NATS Server to increase fault tolerance.

NATS can dealing with weak members in your network Pruning.

from hemera.

StarpTech avatar StarpTech commented on June 6, 2024

Hi,
please specify what do you mean with "multiple servers on a NAT". Do you talking about NATS Server or Hemera Client?

but I will try to answer your question.

@vitorcamachoo NATS is a simple pub/sub system. How we communicate with it is standarzied in the protocol. Hemera also have a protocol. As long as we dont change the way how we communicate everything is still backwards compatible.

Scenario 1:
If you talking about a different scenario like

Hemera Instance A with your API version 1.0.0
Hemera Instance B with your API version 2.0.0

here you can easily subscribe to a topic like math:version:1.0.0

act({topic: 'math:version:1.0.0', cmd: 'add', a: 1, b: 2 })

Scenario 2:
Single Hemera Instance with your API version 1.0.0 and 2.0.0.

here you can easily subscribe to a topic like math and change your pattern based on your API version

act({ api: '1.0.0', topic: 'math', cmd: 'add', a: 1, b: 2 })

from hemera.

vitorcamachoo avatar vitorcamachoo commented on June 6, 2024

Hi,
I was talking about multiple Hemera instances spread by version.
The correct scenario is the first one, and that is what I was thinking.

Imagine an Hemera instance depends on [email protected] and make a request:
act({topic: 'math:version:1.0.9', cmd: 'add', a: 1, b: 2 })

If that instance is down, I will received a timeout, and the recovery process to a compatible Math instance (ex: 1.0.1) is through that timeout handling, getting all instances which begin with math:* and filter by the last compatible version and make that request. I'm right?

Thanks.

from hemera.

vitorcamachoo avatar vitorcamachoo commented on June 6, 2024

Thanks a lot for the explanations!

from hemera.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.