https://github.com/richardzcode/f2s2
https://github.com/richardzcode/f2s2
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/richardzcode/f2s2
- Owner: richardzcode
- Created: 2013-08-29T22:04:21.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-08-30T03:00:08.000Z (almost 12 years ago)
- Last Synced: 2025-01-27T15:44:33.317Z (5 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/
```