Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 703 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 703 Bytes

fastapi

fastapi is an accelerator of receive counting api written with golang. After you send a push notification, many clients access to your server in a short time. fastapi can process many requests faster than api written with PHP.

How to use

  1. Edit config.yml

Change config.yml for your enviroment. Redis setting must be set to same as bpush .

  1. Run accelerator.
cd fastapi
go get
go run fastapi.go

In production environment we highly recommend you to use process management tool such a supervisord.

  1. Setup reverse proxy to handle receive counting api.

Nginx example:

location /sapi/v1/count_receive {
  proxy_pass http://localhost:8100/count_receive;
}