Arthur C. Clarke’s 1956 The City and the Stars is a standalone SF novel. A famous SF novel.
A billion years in the future, Earth is a lifeless, arid desert world. The galaxy-spanning civilization of the ancients is gone, the victim, or so myth has it, of nigh-unstoppable Invaders. The last remnant of humanity lives in the city of Diaspar. The inhabitants are effectively immortal, being reincarnated over and over again from Central Computer records.
Once reborn, they take up their old roles. That is, everyone but young Alvin, one of the rare unique persons intermittently created to ensure that Diaspar does not completely stagnate. Alvin is going to succeed in this purpose and then some.