Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/igor-karpukhin/simplechanneledserver
Server which counts number of requests for desired time window
https://github.com/igor-karpukhin/simplechanneledserver
counters golang http-server
Last synced: about 2 months ago
JSON representation
Server which counts number of requests for desired time window
- Host: GitHub
- URL: https://github.com/igor-karpukhin/simplechanneledserver
- Owner: igor-karpukhin
- Created: 2017-01-31T07:04:22.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-07T14:15:49.000Z (almost 8 years ago)
- Last Synced: 2024-10-28T00:03:19.586Z (3 months ago)
- Topics: counters, golang, http-server
- Language: Go
- Size: 1.89 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.txt
Awesome Lists containing this project
README
This application designed to count number of requests for the last N seconds. For each HTTP request it responds
with a number of requests performed since current request time, N seconds back (moving window.
By default it responds with a number of requests performed 60 seconds back. Every 10ms server persists requests
counter to given file (storage.txt by default). When server shuts down it also saves the requests counter to file.
Data represented with the number requests per second separated by comma. At the start, application will try to restore
counters by reading given file (storage.txt), if it fails the new counter will be created.