1. A non-transitory computer program product, comprising: a computer-readable storage medium having computer readable program code embodied therewith, the computer readable program code configured to perform an operation for maintaining consistency in a content management system, the operation comprising: generating a set of content identifiers to represent content to be stored; associating the content with a content identifier from the set of content identifiers; generating a name for the content from the content identifier; attempting to store the content with the generated name in a non-transactional data repository; and upon determining that the content has been successfully stored in the non-transactional data repository, persisting metadata related to the content in a transactional data repository.