Cut the bacon into bite-sized pieces.
Finely chop the onion and garlic.
Heat olive oil in a pan, then sauté the bacon, onion, and garlic.
Cook the spaghetti noodles and drain them.
Add the noodles to the sautéed ingredients and mix well.
Mix eggs and Parmesan cheese to make the sauce.
Add the sauce to the noodle mixture and toss quickly.
Season with salt and black pepper.
Serve on a plate and sprinkle with parsley.