Giter Club home page Giter Club logo

togglz-rest's Introduction

A REST repository for Togglz

A simple implementation of a REST API and REST repository for Togglz implemented using Spring Boot 2.x.

The purpose of this example is to create a feature flag architecture for multiple micro services where a single service, the feature flag service, holds the state of all feature flags and individual micro services use the REST API of the feature flag service to create a local in-memory feature flag repository.

Usage

This is a proof of concept where the code base includes both the feature flag service and a dummy micro service accessing the shared feature flag service.

The feature flag service aka master

  • Activated with master Spring profile
  • This exposes a read only REST API for to a JDBC backed Togglz repository
  • Service runs on port 8080 and exposes http://localhost:8080/features-api/v1/state used by clients
  • Togglz management console is exposed on http://localhost:8080/feature-flags/index

Example micro service aka client

  • Activated with client Spring profile
  • This injects a cached RESTStateReposity that reads feature flags using the master REST API
  • Service runs on port 8081

Note, no authentication has been implemented between master and client.

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.