Since vanilla is the key flavoring in this pastry cream recipe, PLEASE make sure you use good quality vanilla. It’s the one flavoring that I never skimp out on. Use a good vanilla extract and try to avoid vanilla essence (usually imitation flavor), and if you can use vanilla bean paste or vanilla beans, even better.
https://www.theflavorbender.com/creme-patissiere-vanilla-pastry-cream/

