Finely chop the bacon and onion.
Heat olive oil in a pan and sauté the bacon and onion.
Cook the spaghetti noodles in salted water.
Add the cooked noodles to the sautéed ingredients and mix well.
Add egg yolks, heavy cream, and Parmesan cheese, stir quickly, then turn off the heat.
Season with salt and pepper to taste.
Plate and finish with parsley.