Separate Amplitude Experiment deployment or not for SSR server?

  • 5 December 2023
  • 0 replies


The examples in the server side rendering guide for Amplitude Experiment have…

  1. a “server” deployment key for initialising the node SDK used to fetch initial variants, see
  1. a “client” deployment key for initialising the javascript SDK ExperimentClient with those initial variants, also used on the server. See first “if” branch here The “client” deployment key matches that used to initialise the ExperimentClient in the browser in the second “if” branch.

However, the Amplitude Experiment Node SSR Demo app here uses an identical “client” deployment key for all three. ( and



  1. What is the correct recommended approach?
    1. Single “client” deployment for both browser and server tiers of SSR, or separate “server” and “client” deployments?
    2. If separate deployments, should the “server” deployment key also be used to initialise the ExperimentClient used for SSR rendering?
  2. What would be the benefit of having separate “server” and “client” deployments at all? (I imagined something around flexibility around flags that only affect server rendering or something to do with local evaluation, but I couldn’t think of any concrete use case examples).

0 replies

Be the first to reply!