India’s Leading Domain & Web Hosting Provider
Regional newspaper refactors its e-paper builder and cuts publishing to 40 minutes
Marathi daily with 9 city editions and 1.2 million e-paper readers · Pune and Nagpur, India · 10 weeks
As-is situation
Every night a Java 8 batch program on one physical server converted page PDFs from the layout desk into e-paper images and article crops for nine editions. It used a lock file on a shared drive to stop two runs at once, wrote outputs to local disk, and FTP'd them to the web server. When a late page came in after a cricket result, editions were rebuilt one by one, often pushing e-paper availability past 6 a.m. Subscribers complained on social media.
- A shared-drive lock file made the job single-threaded across nine editions.
- Java 8 with a deprecated imaging library blocked OS upgrades.
- Late page changes forced full rebuilds, delaying e-paper by up to 3 hours.
Approach, tools and architecture
NTSPL agreed a change list of nine items. The batch was split per edition, not redesigned: each page upload to Cloud Storage now publishes a Pub/Sub message, and a Cloud Run job processes that page only. The lock file was replaced with idempotency keys per page version in Firestore. The runtime moved to Java 17 with a maintained imaging library. Outputs go directly to Cloud Storage behind the existing CDN path, so the website code did not change. Layout desk workflows stayed the same.
Implementation approach
Measured results
Operational improvements
- The night desk can republish one page without an IT call.
- No physical server remains for the e-paper pipeline.
Cost considerations
Cloud Run jobs run only when pages arrive, about two hours a night, so compute cost is under INR 25,000 a month. The main cost was refactoring effort; the Java 17 upgrade took 35% of it because of the imaging library swap.
Return on investment
Earlier e-paper availability supports subscription renewals and the 6 a.m. digital ad slots. Removing the physical server and its AMC saves about INR 4 lakh a year, and the newspaper avoided a full rewrite estimated at three times the cost.