Customers & growth · Developer marketing

SDK strategy framework

Best for Startup to Growth

LANGUAGESCONSISTENCYUPDATESDOCSSDKS

Use it when

Developers call your API from several languages, and you must decide which official SDKs to build, how they behave alike and how long each version is supported.

Skip it when

  • You must cover many languages and the API changes often. Use Code generation strategy instead.
  • The API's resources, errors and versions are not settled yet. Use API design principles first.
  • The SDKs exist and developers need help with their first integration. Use Integration guide framework, which this feeds.
  • You need to rate the install, examples and upkeep of SDKs you already ship. Use SDK & library framework.

What to apply first and what to use instead are listed below.

Inputs

  • Language usage
    API calls per language over the last 90 days, read from user-agent strings in API logs, plus language answers from signup forms or a developer survey.
  • API design
    The API's resources, errors, authentication and version scheme, from the API design document or API description file.
  • Language conventions
    Each candidate language's style guide, package manager and supported runtime versions.
  • Team capacity
    Engineers available to maintain SDKs and the languages each knows well, from engineering leads.
  • Community librariesOptional
    Unofficial libraries for your API, with recent activity, from GitHub and package registries.

Steps

  1. Rank languages by API calls and survey answers, pick the few to support officially, and list community libraries for the rest.
  2. Write shared design rules that every SDK follows, idiomatic in its own language first and consistent across languages for authentication, errors, retries, logging and paging.
  3. Define how each SDK reports errors, with short messages that say what to do next, and how it exposes request details for debugging.
  4. Publish each SDK through its language's standard package manager, with defaults that work without extra setup.
  5. Set semantic versioning, a minimum support period for each major version, a notice period before a version moves to fixes only, and end dates for old runtimes.
  6. Release SDK updates with each API change, test every SDK against the API before release, and review usage by language each quarter.

Output

An SDK plan with one row per supported language, plus the shared design rules and the published support policy.

  • Language and package name
  • Share of API calls from that language
  • Status (official, community or unsupported)
  • Build approach (hand-written or generated)
  • Owner
  • Runtime versions supported
  • Current major version and its support end date
  • Release lag behind the latest API change

Done when

  • Every official language is backed by usage data from API logs or a survey.
  • The shared rules cover authentication, errors, retries, logging and paging, and each SDK has been checked against them.
  • Each major version has a published support period and a notice period.
  • Every SDK installs through its language's standard package manager.
  • Each SDK has a named owner and passed its tests against the current API version.

Measure

Track the share of API traffic coming through official SDKs, the time new developers take to make a first successful call, and SDK support tickets per month. Compare the two quarters after a release with your own previous two quarters, by language. It worked when SDK traffic share rises and tickets fall.

Hypothetical example

Ledgerbeam, a payments API, read 90 days of user-agent logs. Node made 41 percent of calls, Python 27, Java 12, PHP 9, Go 6 and others 5. With six engineers, the team chose hand-written SDKs in Node, Python and Java and listed two active community libraries for PHP and Go in its docs. The shared rules give one error type per language carrying the API error code, automatic retries on rate limits and logging off by default. Each major version gets at least 24 months of support and six months notice before fixes only. Two quarters later, SDK traffic share rose from 38 to 55 percent and authentication tickets fell by a third.

Common mistakes

  • Picking languages from public popularity rankings. Rank them by your own API logs and developer answers.
  • Making every SDK look identical across languages. Follow each language's conventions first, then keep shared concepts consistent.
  • Shipping SDK updates weeks after an API change. Release them with the change and test against it.
  • Breaking SDK users without warning. Raise the major version and publish support and notice periods.
  • Supporting more languages than the team can maintain. Cover the rest with community libraries or Code generation strategy.

Sources

By company stage

  1. Pre-IdeaNot applicableNo API or developer usage exists.
  2. IdeaNot applicableAPI usage is too small to guide language choices, and the API may still change.
  3. Early StartupUsefulUsage data starts to appear, but maintaining many SDKs would stretch a small team.
  4. StartupCriticalDevelopers call from several languages, so choosing SDKs and support periods becomes a real decision.
  5. GrowthCriticalWider segments and regions raise language demand and need clear versioning and support policy.
  6. ScaleUsefulThe SDK set exists and policies mostly need upkeep across products.
  7. EnterpriseUsefulPlatform governance teams still revisit language choices and support policies as routine work.

Apply first

  • API design principlesCustomers & growth · Developer marketing

    SDKs wrap the API and must mirror its conventions, errors and versioning; API design principles come first.

Use instead

  • Code generation strategy

    use code generation when you must support many languages and the API changes often; use hand-built SDKs when idiomatic developer experience in a few key languages matters more.

  • API design principles

    The API's resources, errors and versions are not settled yet. Use API design principles first.

  • Integration guide framework

    The SDKs exist and developers need help with their first integration. Use Integration guide framework, which this feeds.

  • SDK & library framework

    You need to rate the install, examples and upkeep of SDKs you already ship. Use SDK & library framework.

Recommended resources

No sponsored resources on this framework yet. Sponsored listings would be labelled here, never in search.

Progress is not saved until you have an account. Create a free account