x12 - generating 9 digit ids without database sequence -


I want to create a 9-digit numerical ID which is unique to machines. I am currently using a database sequence for this. But I am thinking that it can be done without any one. The scenes will be used for X12 EDI transactions, so they do not always have to be unique.

  1. Each server has 2 digits server identifier
  2. Each server keeps a file, it essentially keeps track of a local sequence.
  3. ID = + & lt; 7 points sequence which wraps>

My biggest problem with this is what's hard to do- the flow fails. I do not know where it was left.

All of my ideas are essentially the end to rebuilding a centralized database sequence.

Any thoughts?

If HD fails, then you can only set new and unused 2 digits server identifiers and make sure Make sure the number is unique (for at least 24 hours))


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -