This is an in-memory key-value store HTTP API service that allows you to perform operations like getting, setting, and searching for keys in a key-value store.
- GET /get/: Return the value of the specified key.
- POST /set: Set a key/value pair in the store.
- GET /search?prefix=: Search for keys with the specified prefix.
- GET /search?suffix=: Search for keys with the specified suffix.
- Clone this repository.
- Install the required dependencies.
- Build and run the API service locally.
- Access the API using
http://localhost:5000
.
To monitor the service's health and performance, we have integrated Prometheus metrics.
- Latency: Measure the latency of each endpoint.
- HTTP Status Codes: Monitor the HTTP status codes returned by each endpoint.
- Total Keys: Track the total number of keys in the key-value store.