Giter Site home page Giter Site logo

amplitude / evaluation-proxy Goto Github PK

View Code? Open in Web Editor NEW
0.0 6.0 1.0 322 KB

Service to optimize Amplitude Experiment local evaluation running within your infrastructure, or support evaluation on unsupported platforms and programming languages.

License: MIT License

Kotlin 99.23% Dockerfile 0.30% Makefile 0.47%
amplitude experiment

evaluation-proxy's Introduction

Evaluation Proxy

docker image version

Service to optimize local evaluation running within your infrastructure, or support evaluation on unsupported platforms and programming languages.

  • Preload & manage flag configurations and targeted cohorts for local evaluation SDKs running in proxy mode.
  • Expose local evaluation apis for SDKs and API endpoints to enable unsupported platforms and programming languages.
  • Automatically tracks assignments events for local evaluations run on the service.

See the full documentation on in the Amplitude developer docs.

Configuration

The evaluation proxy is either configured via a yaml file (recommended, more configuration options), or using environment variables.

The default location for the configuration yaml file is /etc/evaluation-proxy-config.yaml. You may also configure the file location using the PROXY_CONFIG_FILE_PATH environment variable.

projects:
  - apiKey: "YOUR API KEY"
    secretKey: "YOUR SECRET KEY"
    managementKey: "YOUR MANAGEMENT API KEY"

configuration:
  redis:
    uri: "YOUR REDIS URI" # e.g. "redis://localhost:6379"

The developer docs contain additional information about configuration.

Deployment

The evaluation proxy is stateless, and should be deployed with multiple instances behind a load balancer for high availability and scalability. For example, a kubernetes deployment with greater than one replica.

Kubernetes

Use the evaluation proxy Helm chart to install the proxy service on kubernetes or generate the files needed to deploy the service manually.

Docker Compose Example

Run the container locally with redis persistence using docker compose. You must first update the compose-config.yaml file with your project keys before running the composition.

docker compose build
docker compose up

evaluation-proxy's People

Contributors

amplitude-sdk-bot avatar bgiori avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.