Design a Unique ID GeneratorGenerating unique IDs sounds trivial until you remove the single database that…