Slice the onion and garlic thinly.
Boil the spaghetti noodles in boiling water.
Heat olive oil in a pan and sauté the garlic and onion.
Add the bacon and stir-fry.
Pour in the heavy cream and bring to a simmer.
Add the cooked noodles to the pan and mix with the sauce.
Season with salt and pepper.
Finish with grated Parmesan cheese on top.