In a very large, heatproof mixing bowl, whisk together the eggs and egg yolks, the grated cheese, and the pepper. Set aside.
Fill a very large pot halfway with water. Add plenty of salt, cover, and bring to a boil. (Proceed to step four at this point, and start cooking the bacon while you wait for the water to boil.) When the water boils, cook the spaghetti one minute less than it says on the package. Do not drain the pasta in the sink — you'll need the cooking water.
At the same time, add the diced guanciale, pancetta, or bacon and the smashed garlic cloves to a large pan and then set the pan over medium heat. Cook, stirring occasionally, until the bacon is nicely browned and a lot of the fat has been rendered. If there is a lot of fat in the pan, remove most of it, leaving about two tablespoons.
With the bacon pan set over low heat, carefully stir in 1/4 cup of the pasta cooking water, scraping up any browned bits from the bottom of the pan. When the pasta is ready, use tongs to transfer it from the pot to the pan. It's fine if some of the cooking water clings to the spaghetti as you transfer it. (Leave the rest of the cooking water in the pasta pot.) Stir the spaghetti to coat with the bacon fat/water emulsion and cook for a minute, then turn off the heat.
Give the eggs another good whisk, and then slowly whisk in 1/4 cup of the pasta cooking water. This helps to temper the eggs, bringing up their temperature slowly so they won't scramble. When the water is incorporated, tip the entire contents of the pan into the bowl with the egg mixture. Use tongs to stir it all up very well, coating all of the spaghetti strands with the sauce.
At this point, you'll need to use your judgment a little bit. If all of the sauce clings to the pasta like a nice, creamy, gently thickened coating, you're all set. You can plate the pasta and serve. Often this will be the case — the combined heat of all the dish's elements will be enough cook the sauce.
If the sauce seems thin and watery rather than silky, set the mixing bowl over the pot of steaming pasta water and toss the pasta constantly with the tongs until the heat from the water thickens the sauce. (If the bowl fits over the pot without touching the water, you can rest it on top — otherwise hold it just above the water with one hand while tossing with the other.) When the sauce is silky and clings to the pasta, you're ready to plate.