Code Monkey home page Code Monkey logo

Comments (7)

dmoranj avatar dmoranj commented on June 5, 2024

For access to the IOTA API in a multi instance scenario, multiple IOTAs can be instantiated behind a Load Balancer (as they are basically stateless), connected to a MongoDB cluster (that can also easily be scaled). The problem with the MQTT broker will depend on the MQTT broker itself. Some MQTT brokers support clustering, some other don't. For those not supporting clustering, as you said, the architecture should be mono-instance.

Anyway, the horizontal scale of the IOTA layer has not been well studied yet, as we are focused on completing our components for the time being. We will update the documentation with information about how to install multiinstance IOTAs and MQTT brokers once we think we are comfortable with our solution.

from iotagent-json.

drasko avatar drasko commented on June 5, 2024

Yes, I agree for MQTT broker. I saw that you have been in contact with Matteo Colina, Mosca MQTT broker can not be scaled without additional persistence, for example.

For my tests I am using Mosquitto, but we will probably start deployment with Mosca and see where this will go... Because of these benchmarkings: http://acro-engineer.hatenablog.com/entry/2015/06/30/100507 I started looking at VerneMQ and eMQTT(http://emqtt.io/), although Kafka/Cassandra solutions can give great results.

But as you said - this is a topic for later ;).

from iotagent-json.

drasko avatar drasko commented on June 5, 2024

Anyway - this still does not answer the question: can provisioning be done from Orion?

I.e. I would like to create an app that could provision needed devices. App would send provisioning requests to the Orion (pub) which will forward it to the IoT Agent (which is subscribed to Orion).

This way application does not have to hit IoT Agent itsetlf, and does not have to care about it's IP address - it cares only about Orion, but app knows this address already - because Orion is a central pub/sub broker and everybody in the system must know it's (and only it's) address.

from iotagent-json.

dmoranj avatar dmoranj commented on June 5, 2024

For the time being, that functionality (registration based on NGSI) does not exist. Devices must be provisioned via Device Provisioning API. The IoT Agent model gives the option of creating a Configuration for groups of devices, so to allow autoprovisionig of those devices in possesion of the API Key. That should ease the application from the burden of provisioning each one of the devices. But a configuration for each Service must be created in any case.

from iotagent-json.

drasko avatar drasko commented on June 5, 2024

@dmoranj is registration based on NGSI something that is planned, or will never be implemented?

from iotagent-json.

dmoranj avatar dmoranj commented on June 5, 2024

Is not currently in the backlog. Concerning its future implementation, it will depend on how the project evolve, but in the near future we have more features to add, and bugs to fix, so I guess it will be difficult. You can add a specific issue describing that enhancement, for future reference if you wish. In any case, that should belong to the IOTA Lib, not to this project (as we try to keep all the northbound interfaces implemented there, and the southbound ones in the individual IOTAs).

from iotagent-json.

dmoranj avatar dmoranj commented on June 5, 2024

I'm closing this issue, as I think the question has been answered.

If you consider this could be an interesting enhancement for the IoTAs, create an Enhancement Issue with your proposal in the IOTALib, so we have it in mind for future updates.

If there are any doubts pending concerning this issue, feel free to reopen it.

from iotagent-json.

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.