At the Brooklyn pie shop Four & Twenty Blackbirds, Thanksgiving prep begins in August. That’s when Ben Heemskerk, director of operations, said he starts to think about the massive amount of dough needed to fulfill an influx of orders for meticulously baked desserts. In September, he puts a team together to make that dough, which is kept frozen until much closer to the holiday.

“It’s like a roller-coaster where you’re just gradually going up,” Heemskerk said. “You feel the ch-ch-ch-ch-ch-ch and you know the time is coming. You know November is on its way.”

When November hits, the roller-coaster drops. Because everything other than the pie dough at Four & Twenty is made fresh for Thanksgiving orders, Heemskerk said the two weeks leading up to that Thursday are full of confectionery madness. Tensions rise with the oven temperatures as staff members work around the clock to bake pies for pickup and delivery orders, along with larger batches for wholesale shipments to places like Butterfield Market, Union Market and the Park Slope Food Coop. This year, according to Heemskerk, Four & Twenty will have produced something like 30,000 pies in the run-up to Thanksgiving.

“I’m really proud of [that] fact,” he said. “This year is actually the biggest year yet.”

Four & Twenty co-founders Melissa and Emily Elsen (they’re sisters from South Dakota) started custom-baking pies in their Crown Heights apartment in 2009. They opened a brick-and-mortar location on Third Avenue in Gowanus in 2010 and, within a couple years, had started to bake out of a nearby facility on Sackett Street as well. I swung by that roughly 3,000-square-foot facility earlier this week, hoping to catch a glimpse of the Thanksgiving sugar rush.

At Four & Twenty Blackbirds.

Melissa had warned me ahead of time that some employees might be stressed out, given the demands of baking this many handmade desserts: “When we’re only making a few hundred or even a thousand [pies], it’s doable,” she said. “When we scale up to this volume, you realize that it’s slow. Making things by hand takes a lot of time.”

But the facility turned out to be a pretty calm environment. By mid-Tuesday morning, all of the wholesale orders were out the door, and the bakers vibed to pop music while whisking custards and carefully folding pie crusts for local pickup and delivery orders. A warm buttery scent greeted me upon entering the space.

Four & Twenty hired several seasonal employees to join a dozen (or so) staff bakers during the Thanksgiving scramble. One of those staff members, Rufus Read, told me Tuesday that he had worked 12-hour shifts three days in a row. During that time, he oversaw the production of custard fillings for three of the four pies Four & Twenty offered customers for Thanksgiving orders: bittersweet chocolate pecan, salty honey and brown butter pumpkin. (The fourth and most popular pie of the bunch, the salted caramel apple, doesn’t involve custard.)

“We try to keep morale up,” he said. “It’s a long shift, but it could be way worse.”

Read estimated that he had made close to 50 rounds of pumpkin pie filling by the time I talked to him. “There’s 6,000 grams per batch, so you guys do the math,” he said. This would explain the massive stack of Libby’s canned pumpkin I saw resting against a wire storage rack.

Heemskerk talked me through some other Thanksgiving purchase orders, many of which were negotiated with suppliers over the summer. Four & Twenty ordered six pallets of 40-pound apple bushels from the Hudson Valley; three 1,700-pound pallets of medium-sized Georgia pecans; about 1,200 pounds of flour; and “lots and lots of butter” (specifically, Cabot’s European-style butter with 83% butterfat).

I walked around the facility to observe these ingredients in action. The bakers seemed to have reached a flow state, each one bouncing between different stages of the process. Rica Borich, a former Four & Twenty kitchen manager who returned to help with the Thanksgiving rush, told me she was working on a brown butter butterscotch for the pumpkin pie while also helping a colleague make chocolate ganache to spread across the bottom of the pecan pie.

The Four & Twenty employees working on the packaging side of things were a little more frantic, given that the unparalleled logistics of Thanksgiving pie delivery remain a headache. The completed wholesale orders had included 3-inch and 8-inch pies, which required a separate packaging process. Now, at least, all the pies were the traditional 10-inch size. (Thanksgiving orders have closed, but the same pies will be available afterward.)

A rack of pies cooling.

McKale Goodwin, a fulfillment lead working his fifth Thanksgiving with Four & Twenty, said he had worked eight days in a row “trying to keep things going as smoothly as possible.” His job is to make sure the pies are packaged correctly and sent to the right destinations, lest someone not receive what they paid good money for (the 10-inch pies run $46 each). On Tuesday, Goodwin flitted about the facility to make sure his team had removed pies from the racks quickly enough for everyone in the kitchen to replenish the supply.

Four & Twenty scaled up operations as its client list grew over the past couple years. The company now works with Baldor, a food distribution service that Heemskerk said stretched the pie delivery zone from Maine to Washington, D.C. He told me about an email he received that morning from a loyal customer in Virginia who worried that her Thanksgiving would be ruined if she didn’t receive her Four & Twenty order in time. (She had nothing to be worried about, per Heemskerk.)

“People get really stressed out about their Thanksgiving dinners, and they want to be amazing hosts,” he said. “Whether you buy 5,000 pies for your company or one apple pie for your dinner table, it’s the same importance. It’s the same priority for those two customers.”

Heemskerk has a far more relaxed attitude toward his own Thanksgiving celebration. He said he planned to take a Four & Twenty pie to the house of friends who are hosting his family.

I asked which flavor he would bring. “Good question,” he answered. “At that point, it might just be whatever’s left. Don’t tell my hosts that.” (Sorry, hosts, if you’re reading this.)

Read, the custard czar, assumed he would end up in the kitchen on Thanksgiving, as per usual, but noted that there’s a lot less pressure when you’re cooking at home and can “wave my drink around and say hi to everyone and make some food.” Maybe someone else will bring the pie.

“That’s what I’ll be doing at some point on Thursday,” he said. “Might have to sleep in first.”

That rest is well deserved. Heemskerk said he encourages his staff to take the work seriously, given how much these pies mean to their customers — especially those like the woman in Virginia, who said that she’s ordered Four & Twenty pies for the past 10 Thanksgivings.

But Heemskerk also acknowledged that these aren’t life or death matters.

“I love my job,” he said. “It’s an important thing … but it’s just pie, right?”