I have an API on Python flask framework. Sometimes it takes too long time (up to minute) to achieve a result from the server. However, the calculations are not so heavy.
I use also PHP, which works much quicker. Is there a way to accelerate the flask server?
The server calculates the sgp4 algorithm:
The way I'm initializing the server:
export FLASK_APP=lat_lon.py
python3 -m flask run --host=0.0.0.0 --port 5002
Aucun commentaire:
Enregistrer un commentaire