Company
Date Published
Author
Taylor Barnett, Matt Robenolt
Word count
772
Language
English
Hacker News points
144

Summary

PlanetScale has introduced a serverless driver for JavaScript, which allows users to store and query data in PlanetScale from environments such as Cloudflare Workers, Vercel Edge Functions, and Netlify Edge Functions. The new driver uses secure HTTP connections, enabling high concurrent connection support and faster connections with TLS 1.3, connection multiplexing, and protocol compression. This update also brings global routing infrastructure to reduce latency drastically in situations where a client is connecting from a geographically distant location. To use the driver, users need to enroll their database into the beta features section of PlanetScale and install the package in their environment. The driver handles SQL sanitization to prevent security issues like SQL injection, making it suitable for serverless environments.