/plushcap/analysis/cloudflare/running-serverless-puppeteer-workers-durable-objects

Running Serverless Puppeteer with Workers and Durable Objects

What's this blog post about?

The Cloudflare Browser Rendering API allows developers to automate responsive web design testing using Puppeteer, a Node.js library that provides a high-level API to control Chrome or Chromium over the DevTools Protocol. The service can be customized with less than a hundred lines of code and incorporated into a CI pipeline for automated testing. The pricing is based on two usage metrics: number of sessions (browser instances) and number of concurrent sessions. Developers are encouraged to use Durable Objects for session re-use to improve performance and cut down on the number of concurrent sessions needed, which can also help reduce costs when using this API. Cloudflare is currently accepting signups for access to the Browser Rendering API through their waitlist.

Company
Cloudflare

Date published
Sept. 28, 2023

Author(s)
Tanushree Sharma

Word count
1114

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.