Unique ID number generator within band ranges.
Unique identifier (ID) number generator within band ranges, by multiple generators in sequential order. Generated as a node.js module, however could be adapted for other systems.
This schema, was developed for Kurunt, the scalable message processing framework, where you have multiple inputs receiving messages for processing that each require a unique ID represented as a sequential integer in nanosecond format.
var uidNumberBands = require'uid-number-bands';var BAND = 0;var BANDS = 100;uidNumberBandsinitBAND BANDSvar id = uidNumberBandsmake;console.log 'id: ' + id ;var idNormalized = uidNumberBandsnormalizeid;console.log 'idNormalized: ' + idNormalized ;;