Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/richardzcode/f2s2
https://github.com/richardzcode/f2s2
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/richardzcode/f2s2
- Owner: richardzcode
- Created: 2013-08-29T22:04:21.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-08-30T03:00:08.000Z (over 11 years ago)
- Last Synced: 2024-04-14T09:14:22.347Z (9 months ago)
- Language: Python
- Size: 105 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
f2s2
====## Version
0.0.1
## Intro
f2s2, funnel for suck service, is to make sure same requests at one time only hit server once. It is inspired by a complex/expensive CMS. I was very suprised that its caching layer does not prevent same request fall through at the same time. So cache miss on one hot content would potentially crash its content manager.
Of course Varnish or Nginx etc. can accomplish the job. This is more of a small execise for me on Python.
## Usage
1. Modify config.py. For example
```
{
'localPort': 8888,
'remoteHost': 'http://google.com',
}
```
2. Run:
```
python f2s2.py
```
3. Test:
```
ab -n 100 -c 20 http://localhost:8888/
```