Skip to content

Add feature flag for Duo Workflow checkpoint compression

What does this MR do and why?

Add feature flag for Duo Workflow checkpoint compression; to be consumed by the AI Gateway/Duo Workflow Service

This introduces a feature flag to control checkpoint payload compression between Duo Workflow Service and GitLab monolith. The checkpoint data can be quite large and compressing it using zlib and encoding with base64 can significantly reduce the payload size. This leads to:

  • Lower network bandwidth usage
  • Faster data transfer between services
  • Reduced memory footprint

The compression is implemented using zlib and the compressed data is base64 encoded for safe transmission.

References

Screenshots or screen recordings

Before After

How to set up and validate locally

  1. In rails console enable the feature flag
    Feature.enable(:duo_workflow_compress_checkpoint)
  2. Test Duo Workflow functionality to ensure checkpoint compression works correctly
  3. Monitor payload sizes and performance metrics

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Alper Akgun

Merge request reports

Loading