Skip to content

feat: add FDv2 configuration builder#545

Draft
beekld wants to merge 6 commits into
beeklimt/SDK-2379-4from
beeklimt/SDK-2100
Draft

feat: add FDv2 configuration builder#545
beekld wants to merge 6 commits into
beeklimt/SDK-2379-4from
beeklimt/SDK-2100

Conversation

@beekld
Copy link
Copy Markdown
Contributor

@beekld beekld commented Jun 2, 2026

Stacked on #540. Adds a public FDv2Builder and wires the FDv2 data system into MakeDataSystem, so end users can opt into the FDv2 protocol via the existing config-builder pattern.

// Default FDv2 stack (streaming primary, polling fallback,
// FDv1 streaming last-resort)
auto config = ConfigBuilder("sdk-key-123")
    .DataSystem().Method(DataSystemBuilder::FDv2())
    /* ... */;

// Customised: payload filter + shorter fallback timeout, no FDv1 fallback
auto config = ConfigBuilder("sdk-key-123")
    .DataSystem().Method(
        DataSystemBuilder::FDv2()
            .Streaming(FDv2Builder::StreamingSource().Filter("mobile-flags"))
            .FallbackTimeout(std::chrono::seconds{30})
            .DisableFDv1Fallback())
    /* ... */;

Test plan

  • 5 new FDv2 builder tests in config_builder_test.cpp
  • Full server suite green (503 tests)

@beekld beekld force-pushed the beeklimt/SDK-2379-4 branch from cce4172 to 458539d Compare June 4, 2026 00:53
@beekld beekld force-pushed the beeklimt/SDK-2100 branch from 3981ee7 to 4d3a6c8 Compare June 4, 2026 00:53
@beekld beekld force-pushed the beeklimt/SDK-2379-4 branch from 458539d to 5aace2f Compare June 4, 2026 21:54
@beekld beekld force-pushed the beeklimt/SDK-2100 branch 2 times, most recently from 095280a to 58392f8 Compare June 4, 2026 23:43
@beekld beekld force-pushed the beeklimt/SDK-2379-4 branch from 5aace2f to 5988ce1 Compare June 4, 2026 23:43
@beekld beekld force-pushed the beeklimt/SDK-2100 branch from 58392f8 to aaf3aa6 Compare June 4, 2026 23:51
@beekld beekld force-pushed the beeklimt/SDK-2379-4 branch from 5988ce1 to 88190bc Compare June 4, 2026 23:51
@beekld beekld force-pushed the beeklimt/SDK-2379-4 branch from 88190bc to 86b2e3d Compare June 5, 2026 18:07
@beekld beekld force-pushed the beeklimt/SDK-2100 branch from aaf3aa6 to 9bb657e Compare June 5, 2026 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant