Pastry cream, or crème pâtissière, is like the best, richest, creamiest pudding you can imagine. You can certainly eat it with a spoon (been there, done that!), but it's really meant to be a filling for pastries, cakes, and tarts. Here's are step-by-step instructions for making it at home!
Here's the basic recipe for vanilla pastry cream:
1 1/2 cups whole milk or half-and-half
4 large egg yolks
1/3 - 1/2 cup sugar, to depending on how sweet you want it
1/4 - 1/3 cup flour, depending on how thick you want it
pinch of salt
1 teaspoon vanilla extract
In terms of equipment, you'll need:
A medium saucepan
A whisk
A mixing spoon
Mesh strainer
2 mixing bowls
Here's what you do:
Heat the milk in the saucepan over medium-high heat until it's warm. Set it aside until it's cool enough to touch, but still warm. Pre-heating the milk helps to cut down on the cooking time, but you don't want the milk so hot that it will cook the eggs.
In one of the mixing bowls, whisk together the egg yolks and sugar until smooth and thick. Whisk in the flour and salt.
Slowly pour in the warm milk while whisking the egg-sugar mixture constantly. Transfer the mixture back to the saucepan.
Cook the mixture over medium heat, stirring constantly with your spoon so the bottom doesn't scorch. It will quickly start to thicken to the consistency of pudding. When large steamy bubbles start to pop through the liquid, the pastry cream is nearly done. (At this point, you're cooking the flour so your cream doesn't end up tasting chalky.)
Continue stirring for 1-2 minutes longer. Set the strainer over a clean bowl and strain the pastry cream to get out any lumps. Press a piece of plastic wrap against the surface of the pastry cream and refrigerate until you're ready to use it.
Pastry cream will keep for 5-7 days refrigerated. This recipe makes about two cups of cream, and is enough to fill one tart, one layer cake, or a batch of choux puffs.
Playing with the recipe:
This recipe makes a basic vanilla pastry cream, but it's also a good base for any other flavors you might want to add. You can infuse any number of ingredients into the milk while it's heating in the first step. Try cinnamon sticks, dried lavender, or coffee beans. You can also use any other extract besides (or in addition to) vanilla to add flavoring.
To make a chocolate pastry cream, melt a handful of chocolate (about 2 ounces) into the pastry cream in the last minute of cooking.
What kinds of things have you done with pastry cream?
Related: Help! Tips for a Good Boston Cream Pie
(Image: Flickr member greencolander licensed under Creative Commons)
Straw Mat from The ...

I've never heard of making pastry cream with flour, it's always been cornstarch. Is there a benefit/downside to making it with one or the other?
I also really enjoy finishing it off with a pat of butter.
Mmmm... cardamom scented pastry cream with lemon cake.... maybe I'll try this tomorrow!
Check out this innovative way of making pastry cream, via Spain - http://www.thequenelle.com/2010/01/perfect-patry-cream-recipe.html
I once made a strawberry tart that called for pastry cream, and that's the only time I've made it. It was absolutely delicious, although it seemed to come out more pudding-y and less silky than I expected. I would love to try making it again, and maybe this time use a piping bag to get it into the tart shell.
I made this last night, and I gotta say: even 1/4 cup of flour is just way too much. The floury taste couldn't be cooked out before the cream turned into dough.
The dough, with 2 tsps baking powder mixed in, made decent griddle cakes, if a tad tough from all the stirring.
A remake of the recipe with 1/8 cup (two Tbsps) and an equal amount of cornstarch turned out silky and delicious, without a floury flavor, but next time I'll probably reduce the flour even further. It gives a good toothiness to the recipe, keeping it from tasting like boxed instant pudding, but it's a powerful thickener and the flavor can be... strange.
I might have to experiment with a blond butter roux... probably a disaster waiting to happen, but the worst-case scenario seems to be griddle cakes. I can deal with that. XD