ntcip | Rust NTCIP support library
kandi X-RAY | ntcip Summary
kandi X-RAY | ntcip Summary
Rust library for National Transportation Communications for ITS Protocol. NTCIP is a set of standards for traffic control devices, such as dynamic message signs, ramp meters and signals. This library is in an early stage, with suppport for DMS rendering using MULTI.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ntcip
ntcip Key Features
ntcip Examples and Code Snippets
Community Discussions
Trending Discussions on ntcip
QUESTION
I want to get your opinion on a design decision. I need to prepare a project that makes the crud operations with weather sensors and I need the communicate each weather sensor with NTCIP in the database and get information like temperature, humidity, etc.
the problem is scaling. In my architecture, I write a .net core microservice and that has a own separate database. This weather station microservice reads all weather stations from the database then communicates each sensor via IP. I open a thread for each record and these threads do the data communication over IP. When I replicate this microservice, because of the same algorithm all microservice works with the same data. My goal is to distribute database data to replicated microservice by count. For example, if there are 100 weather station records in the database and I have 2 replicas I need to distribute 50 records to the first one, and 50 to the second one. Also, I need to if I change the replica count, the distribution will be redone. I search the internet, and I found a apache helix, but it's more complicated for this operation. Please give me advice. thanks a lot
...ANSWER
Answered 2021-Jun-09 at 12:16In .Net this sounds like a very good fit for Akka.Net. A reasonable "first cut" at a model would be to define an actor for each sensor and have these actors be sharded via cluster sharding, which will balance the number of sensor actors across the cluster and react to changes in cluster membership.
You might also find it useful to have the sensor actors be persistent via event sourcing, depending on where you want to go with this project (e.g. for publishing and archiving historical weather data).
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ntcip
Rust is installed and managed by the rustup tool. Rust has a 6-week rapid release process and supports a great number of platforms, so there are many builds of Rust available at any time. Please refer rust-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page