Cut the bacon into bite-sized pieces.
Slice the onion thinly.
Fry the bacon in a heated pan.
Add the onion and sauté together.
Add the cooked spaghetti noodles to the pan and mix.
Pour in the sauce made by mixing egg yolk, Parmesan cheese, and heavy cream, then quickly stir over low heat.
Season with pepper and serve.