Finely chop the onion and garlic.
Cut the bacon into bite-sized pieces.
Boil the spaghetti noodles in hot water.
Heat olive oil in a pan and sauté the garlic and onion.
Add the bacon and stir-fry together.
Pour in the heavy cream and bring to a simmer.
Add the boiled noodles to the pan and mix with the sauce.
Season with salt and pepper.
Finish by sprinkling Parmesan cheese on top.