Whew. There's an end in sight for one of the two historic Hollywood strikes.

Nearly five months after writers walked off the job, the Writers Guild of America announced over the weekend a tentative deal with the Alliance of Motion Picture and Television Producers, which includes Netflix, Amazon, Apple, Disney, Warner Bros. Discovery and NBCUniversal. The hope now is that an agreement with the actors union isn't far behind and Los Angeles' entertainment industry — and the untold numbers of local businesses that rely on it — will get back to work soon.

The last few months have been extraordinarily difficult for the people who make Hollywood magic happen and those whose livelihoods depend on a thriving entertainment industry. The WGA strike began May 2, with SAG-AFTRA members joining the picket lines on July 14. It was Hollywood's first double strike in 63 years, but the effects were felt beyond those unions. Crew members have also been out of work with production largely shut down. Businesses that rely on industry spending, including restaurants, hotels and service providers, have been hurt as well.

By one estimate, California's economy has lost about $5 billion as a result of the strikes.

While there are few specifics on what's included in the proposed three-year contract for film and television work, WGA leaders called the deal "exceptional," with "meaningful gains and protections for writers in every sector of the membership." The guild's 11,500 members still have to vote on the agreement, which would increase pay and residual payments for streaming shows and impose rules on the use of artificial intelligence, which emerged as a significant job protection issue for writers and actors.

The strikes put a spotlight on how the digital revolution is transforming Hollywood, for better or worse. Not too long ago, viewers were basking in a new Golden Age of Television as studios went on a spending spree to launch their streaming services with new programs. The strikes revealed, however, that the streaming model has real financial downsides for people in the business.

Studios are now facing pressure from Wall Street to cut costs and deliver reliable profits. For writers and performers, the shift has upended traditional compensation, with streaming programs offering fewer episodes or paychecks per series, "mini rooms" that employ fewer writers and pay less residuals (fees for re-aired shows), making it harder to earn a middle-class living.

The WGA and SAG-AFTRA contract negotiations have been seen as a pivotal moment, setting the course for the industry for the foreseeable future. No wonder both sides dug in for so long.

That the WGA and the studios were finally able to reach an agreement is a good sign that compromise is possible. The entertainment industry is an economic engine for Los Angeles and California; the region has a collective interest in the studios' success and the continued livelihoods of the people who make Hollywood possible.