Git Product home page Git Product logo

config-server-sse's Introduction

Configuration Management Server

This server application provides a solution for managing and broadcasting configuration updates in real-time. It uses Server-Sent Events (SSE) to enable clients to listen for updates to configurations across different environments.

Features

  • Real-time configuration updates using SSE.
  • Endpoints for fetching current configurations, updating configurations, and accessing configuration history.
  • Logging with both console and JSON outputs for effective monitoring.

Technologies

  • Rust programming language.
  • Actix and Actix-Web for the web server and actor model concurrency.
  • Tokio for asynchronous runtime.
  • Slog for flexible logging.

Getting Started

Prerequisites

  • Rust and Cargo installed on your system.
  • Basic knowledge of Rust and asynchronous programming.

Running the Server

  1. Clone the repository to your local machine.
  2. Navigate to the project directory.
  3. Run cargo run to start the server.
  4. The server will start listening on 127.0.0.1:8080.

Endpoints

  • GET /sse/{environment}: Subscribe to real-time updates for a specific environment.
  • GET /config/{env}: Fetch the current configuration for a specific environment.
  • POST /config: Update the configuration for a specific environment.
  • GET /config/history/{env}: Get the configuration update history for a specific environment.
  • GET /config/version/{env}/{version}: Fetch a specific version of the configuration for an environment.

Configuration

Configure logging and other settings by editing the config.rs and logger.rs modules as needed.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

config-server-sse's People

Contributors

richinex avatar

Watchers

 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.