Synthetic status page
Difficulty level: Medium
Objective
Sometimes, you need a good way for customers to check on the status of your various systems. It has to be robust enough to always be available and current, and super easy to update using an API. Fastly's edge dictionaries provide a great way to store and update the data.
This challenge includes a VCL table
, which is making dictionary data available to your VCL service. Modify the code so that a request for /systemstatus
will return an HTML page directly from the edge, making no backend fetches. The resulting page should show the status information from the system_status
VCL table. If the table contains the word "up", the HTML response for that entry should show "{Label}: Working", whereas if the table contains anything else, print the content of the table entry to the status page.