Cook the spaghetti in salted water according to the instructions on the packet.
Peel the shallots and garlic. Wash the cherry tomatoes and cut in halves or quarters depending on the size. Braise everything in the heated olive oil. Add the tomato paste and ginger, deglaze with water and simmer for a few minutes.
Peel the mango, remove from the stone and cut into bite-sized pieces. Wash the cucumber, cut in half lengthways, remove the seeds with a teaspoon and cut the cucumber meat into fine slices.
Fry the shrimp briefly separately.
Drain the spaghetti, mix with the tomatoes, fold in the mango, cucumber, shrimp and basil and season with sugar, salt, pepper and chilli flakes.