distributed computing - Need a 9 char length unique ID -
my application uses 9 digit number (it can alphanumeric also). can start number , increments @ beginning. application not single instance application, if run exe instance, should increment latest value , previous instance should again increment latest value when needs value. mean @ time, value should latest incremented value among instances open.
this half of problem. other side is, exes can run on machine on network , each instance should keep on incrementing (just time never goes back) 2 years. restrictions can't use files store , retrieve latest value in common place.
how can that?
a 9 char/digit unique number works sure. whole idea assign number (string of 9 char length) each "confidential file" , (encrypt , whatever, not job)
i tried with:
- guid unique in total 128 bits not last or first 9 chars
- tick count more 9
- mac address unique if 12 chars
- isbn (book numbering system)
and on ...
i think best approach might have unique number server each instance of application queries on network unique numbers.
Comments
Post a Comment