Company
Date Published
Author
Mike Coutermarsh
Word count
429
Language
English
Hacker News points
13

Summary

The PlanetScale team has recently improved their database page by adding a feature that displays the status of their own service, PlanetScale, and also updates their UI to reflect changes made to their status page in real-time. They built this improvement using Vercel's edge functions, which allowed them to proxy their API and cache it for fast response times. The Edge function is used to fetch data from the API and return a JSON response with cached data, ensuring users get a super fast response while also keeping the data up-to-date. In their UI, they use this Edge function to check for any statuses and display the most recent one if available, using React and the SWR library to manage state and data fetching. The team hopes this addition will be helpful to developers' workflows and encourages feedback and questions through their Contact us page or Twitter.