Very young children may still believe that on Christmas eve, Santa Claus and his reindeer-drawn sleigh deliver toys that his elves build in a North Pole workshop.

However, as the rest of us know, before magically appearing beneath Christmas trees, the holiday’s electronic gadgets and toys are overwhelmingly produced in Asia and transported not by sleigh, but in gigantic container ships to American ports.

The logistics of Christmas morning are immensely complex and immensely important to California, which for decades has been the primary portal for the goods that Asia exports in huge quantities to America.

That’s especially true in Southern California, whose twin ports of Los Angeles and Long Beach have become vital economic powerhouses since the virtual collapse of the region’s aerospace industry in the 1990s.

They handle over 40 percent of the waterborne freight entering the nation and unloading container ships and transshipping their contents employ as many as 1.6 million Southern Californians. Some work in the ports themselves but many more in the immense logistical warehouse, trucking and railroad complexes 50 miles to the east in San Bernardino and Riverside counties.

Southern California’s decision several decades ago to wager its economic future so heavily on international trade may be problematic, particularly since the San Francisco Bay Area’s opting for technology has paid off so handsomely.

However, the die is cast and Southern California needs its ports, and their attendant logical networks, to prosper because its very large immigrant and first-generation populations need their blue-collar jobs.

This Christmas appears to be a very merry one for Southern California’s port-related industries.

Eighteen months ago, Panama opened its newly enlarged canal, one that can now handle ships carrying up to 14,800 containers, triple the size of previous vessels, and there were fears that Southern California’s ports would suffer a loss of Asian trade to East Coast ports.

Shipping data indicate, however, that while East Coast ports are seeing significant increases via the Panama Canal, they appear to be largely diversions from the Suez Canal rather than shifts from Los Angeles and Long Beach.

Both ports have reported strong increases in “20-foot equivalent units” or TEUs, the basic measurement of container traffic, since Panama opened its enlarged canal. Los Angeles, for example, has seen a 6.25 percent increase this year through November over the same period of 2016.

One reason the ports have not seen losses is that their leaders saw the peril posed by Panama’s enlargement and invested many millions of dollars in upgrades.

While Panama can now handle ships of up to 14,800 TEUs, there are even bigger vessels, carrying up to 18,000, now being built and one of the first mega-ships, the 20-story-tall CMA CGM Benjamin Franklin, berthed at Los Angeles just before Christmas 2016 in a demonstration of the port’s new capability.

It was something of a stunt. The port actually paid the ship’s French owner to make Los Angeles its first West Coast stop.

“It gave us an opportunity to test in real time how we would handle this ship,” port director Gene Seroka told the Daily Breeze, a local newspaper. “We gained a level of insight and expertise that we would never have had before.”

The long-term viability of Southern California’s trade sector is still in question. Ship traffic still could shift elsewhere and automation could erase much of its workforce.

Cost-cutting robots already are replacing workers in warehouses and handling containers in ports, but full automation faces stiff opposition from dock worker unions – a battle that’s beginning to be waged in the Capitol.

However, for the time being, the sector is a vital generator of jobs.

We want to hear from you

Want to submit a guest commentary or reaction to an article we wrote? You can find our submission guidelines here. Please contact CalMatters with any commentary questions:

Dan Walters has been a journalist for more than 60 years, spending all but a few of those years working for California newspapers. He began his professional career in 1960, at age 16, at the Humboldt Times...