Cloudflare Request Shadowing

screenshot of Cloudflare Request Shadowing
remix

Transparently send requests from one URL to another with an output comparison UI!

Overview

Cloudflare request shadowing is a feature that allows transparently sending requests from one URL to another with output comparison. It is designed to test API compatibility and verify any changes to HTTP endpoints without the need for expensive manual testing or disrupting production traffic. This feature complements automated testing suites and provides an extra layer of confidence in changes.

Features

  • Little to no overhead: Shadowing occurs after the original request's response is sent back to the client, minimizing latency.
  • Flexible configuration: The feature combines Workers' routes configuration and JavaScript, allowing for easy customization.
  • At-rest data encryption: The data is encrypted at-rest, ensuring privacy and security.
  • Replay requests: Requests can be replayed for further analysis and debugging.
  • Automatic grouping: The feature automatically groups divergent response keys, making it easier to identify and address issues.
  • Tagging: Tags can be applied to responses for better organization and filtering.
  • Export: Saved responses can be exported for use in fixtures or other purposes.
  • Themed interface: The user interface is designed with a visually appealing theme.
  • Sharable links: URLs can be easily shared with coworkers for collaboration and discussion.
  • First class JSON diffs: The feature allows for easy comparison of JSON responses, highlighting any differences between them.
  • Aggregation: Divergence trends can be visualized through aggregated data in the UI or API.

Summary

The Cloudflare request shadowing feature provides a convenient way to test API compatibility and verify changes to HTTP endpoints without disrupting production traffic. It offers features such as little to no overhead, flexible configuration, at-rest data encryption, replay requests, automatic grouping, tagging, export functionality, a themed interface, sharable links, first class JSON diffs, and aggregation of divergence trends. This feature enhances the confidence in making changes and contributes to efficient automated testing.

remix
Remix

Remix is a modern JavaScript framework that focuses on building fast and performant web applications. It emphasizes a combination of server-rendered content and client-side interactivity, offering a robust architecture for creating scalable and maintainable projects.