Data Fetching Speed from API Consistency

So Iā€™ve created 3 scenarios to pin point what is the real cause of those slow response times.

Scenario 1.
Nginx not integrated
Cloudflare not integrated
SSL Certificate not integrated

Result: 500 - 700 ms

Scenario 2.
Nginx integrated
Cloudflare integrated
SSL Certificate not integrated

Result: 500 - 700 ms

Scenario 3.
Nginx integrated
Cloudflare integrated
SSL Certificate integrated

Result: 6-15 secs.

Now. It comes down to the SSL Certificate. This is the main cause. Iā€™ve been scratching my head since this morning because SSL is a must for the production and right now this is the cause of the slow response times. What should I do to reduce the response times caused with SSL integrated.

TLS naturally slows down, thatā€™s inherent in its mechanism, but the slowdown you describe is way to much.

  • You are missing scenario 4 (no cloudflare, with TLS).
  • nginx questions may be better suited on StackExchange where you have a more selected audience, because this doesnā€™t seems to be Parse Server related

Can you run this command free -h and see how much available ram there is? Sometimes nginx keeps so many things on ram, you should reboot your nginx server(reboot server not nginx).

This is my conf file.

upstream backend {
  least_conn;
  server server1 weight=4;
  server server2 weight=4;
  server server3 weight=4;
}

server {
  server_name mydomain;
  location / {
    proxy_pass http://backend/;
  }



}

You can check to see if the nginx file I opened source helps:

1 Like