Skip to content

Add serverless guidance for Feature Flags server SDKs#37110

Merged
leoromanovsky merged 8 commits into
masterfrom
leo.romanovsky/feature-flags-serverless-doc
Jun 18, 2026
Merged

Add serverless guidance for Feature Flags server SDKs#37110
leoromanovsky merged 8 commits into
masterfrom
leo.romanovsky/feature-flags-serverless-doc

Conversation

@leoromanovsky

@leoromanovsky leoromanovsky commented May 29, 2026

Copy link
Copy Markdown
Contributor

Motivation

Feature Flags server SDK documentation did not explain how serverless workloads receive Remote Configuration payloads. Users running on AWS Lambda, Google Cloud Run, Azure Functions, and similar platforms need clear guidance that the Datadog Agent is the supported path for server-side flag payload delivery today, and that deeper serverless support is planned for a future release.

Changes

This PR adds a new Serverless Environments guide under the Feature Flags Implementation Patterns folder. The guide explains the Agent-backed Remote Configuration flow, required environment variables, operational considerations, local evaluation, public API limitations, and validation steps.

It also adds environment-specific notes for AWS Lambda, Google Cloud Run services and functions, Azure Functions, AWS Fargate/container tasks, and managed edge/function platforms. The wording now avoids claiming unverified external-Agent connectivity as confirmed support; it tells users to validate an Agent-backed architecture in a non-production environment before relying on it for feature flag delivery.

The PR adds the Implementation Patterns folder to the Feature Flags left navigation and keeps the server SDK overview linked to the serverless guidance through both inline copy and further reading. It also clarifies that DD_REMOTE_CONFIGURATION_ENABLED is the Agent Remote Configuration setting, while DD_REMOTE_CONFIG_ENABLED is a tracer-side setting used by some SDKs.

Decisions

The guidance stays high level and architecture-focused instead of duplicating language-specific SDK setup. The page explicitly calls out that the public Feature Flags API is for management, not per-request flag evaluation, and that application-owned defaults or static configuration are outside Remote Configuration delivery when no Agent path is available.

The document uses validate-first wording for external Agent patterns, especially for Cloud Run, until those specific deployment models are confirmed separately.

Validation

  • git diff --check origin/master...HEAD
  • YAML/front matter parse for changed Feature Flags pages and config/_default/menus/main.en.yaml
  • git diff --name-only --diff-filter=U

@github-actions github-actions Bot added the Architecture Everything related to the Doc backend label May 29, 2026
@leoromanovsky leoromanovsky marked this pull request as ready for review May 29, 2026 19:12
@leoromanovsky leoromanovsky requested a review from a team as a code owner May 29, 2026 19:12
@leoromanovsky leoromanovsky requested a review from A-Rindone May 29, 2026 19:13
Comment thread content/en/feature_flags/implementation_patterns/serverless.md Outdated
@A-Rindone A-Rindone requested a review from joepeeples May 29, 2026 19:40
@joepeeples joepeeples added the editorial review Waiting on a more in-depth review label May 29, 2026
@joepeeples

Copy link
Copy Markdown
Contributor

Opened DOCS-14576 to follow up with editorial review.

@aarsilv aarsilv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this!

Comment thread content/en/feature_flags/implementation_patterns/serverless.md Outdated
- add link to Feature Flags API docs
- add alert explaining EXPERIMENTAL_ env var
- add/update further reading links
Avoid commitments or predictions of future functionality, and only cover current capabilities in documentation.

@joepeeples joepeeples left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought I had approved this last week, but GitHub kept the review as pending/in-progress. Approving again, with a couple comments

Comment thread content/en/feature_flags/server/serverless.md Outdated
Comment thread content/en/feature_flags/server/serverless.md Outdated
Comment thread config/_default/menus/main.en.yaml Outdated
Comment on lines +6313 to +6317
- name: Implementation Patterns
url: feature_flags/implementation_patterns
parent: feature_flags
identifier: feature_flags_implementation_patterns
weight: 4

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@annabfenske For your awareness we have a chicken or egg problem with implementation patterns; I'm moving the doc here based on (#37350).

@leoromanovsky leoromanovsky merged commit e93f6de into master Jun 18, 2026
19 checks passed
@leoromanovsky leoromanovsky deleted the leo.romanovsky/feature-flags-serverless-doc branch June 18, 2026 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Architecture Everything related to the Doc backend editorial review Waiting on a more in-depth review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants