API Performance by URL Length

Currently in the process of creating the API, and I was wondering if the length of the URL affects the performance of the API?

for instance

The presence of k = instead of api_key = in the query string or the limitation of the actual api_key to X characters instead of 32 characters (for example, hash xd5).

Keep in mind that this API will be used for 4-5 medium-sized sites.

+3
source share
3 answers

The presence of k = instead of api_key = in the query string or the limitation of the actual api_key to X characters instead of 32 characters (for example, hash xd5).

The difference in speed would be so incredibly tiny - six characters compared to one character read - that it is completely immaterial.

, URL- RFC, 2000 - IE. , , .

URL, , , , , , , .

+2

, , , . URL- HTTP-, API API, , , HTTP-.

queryinfo - , , , , - . , ().

+2

This will never be your bottleneck.

Do not worry about it.

+1
source

All Articles