Skip to content

Add serverless guidance for Feature Flags server SDKs#37110

Open
leoromanovsky wants to merge 2 commits into
masterfrom
leo.romanovsky/feature-flags-serverless-doc
Open

Add serverless guidance for Feature Flags server SDKs#37110
leoromanovsky wants to merge 2 commits into
masterfrom
leo.romanovsky/feature-flags-serverless-doc

Conversation

@leoromanovsky
Copy link
Copy Markdown
Contributor

@leoromanovsky leoromanovsky commented May 29, 2026

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 required for server-side flag payload delivery, 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, the recommended stateful-Agent architecture for serverless workloads, the required environment variables, operational considerations, 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 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.

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.

Validation performed locally:

  • git diff --check
  • YAML parsing for changed frontmatter and menu config
  • yarn run build:hugo after generating a transient Cdocs assets partial; the serverless page rendered before the folder move, but the full build exited on existing repo-wide missing generated data sources unrelated to this change.

@github-actions github-actions Bot added the Architecture Everything related to the Doc backend label May 29, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented 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

## Public API and local evaluation

The public Feature Flags API is intended for managing flags and environments. It is not a per-request flag evaluation API for server-side applications.
Copy link
Copy Markdown
Contributor

@A-Rindone A-Rindone May 29, 2026

Choose a reason for hiding this comment

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

[Not a blocker] Let's link to the API docs for feature flags here and/or in the "additional reading" below.
https://docs.datadoghq.com/api/latest/feature-flags/

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.

@DataDog fix this

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 can only run on private repositories.

@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.

Copy link
Copy Markdown
Contributor

@aarsilv aarsilv left a comment

Choose a reason for hiding this comment

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

Thanks for adding this!

DD_AGENT_HOST=<PRIVATE_AGENT_HOSTNAME_OR_IP>
DD_TRACE_AGENT_PORT=8126
DD_REMOTE_CONFIG_ENABLED=true
DD_EXPERIMENTAL_FLAGGING_PROVIDER_ENABLED=true
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.

Do "defang the snake" let's after this add a note that the "EXPERIMENTAL" word is for backwards compatibility and flags are no longer experimental.

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.

For this to make sense I assume you want a note everywhere this exists; that's fine. BTW dropping this prefix, I believe it's appropriate to for those SDKs where we have stable production usage, will be a nice easy test for the tool I want to build next week.

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.

Agree on both fronts, and my pending PR adds that note everywhere: #36573

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