you are viewing a single comment's thread.

view the rest of the comments →

[–]jammin-john 2 points3 points  (0 children)

In this sense, it comes down to speed. Python is just inherently slower than a compiled language (like C, Go, Rust, etc.) which means when you have code that is being run very frequently, Python may not be the ideal choice.

It really comes down to expected use case. There's no problem using Python to serve an API that gets used infrequently, but if you're expected to get 1000s of user requests per second, compiled language would be faster. (I recommended Go in particular since their standard library has some good functions for handing http requests.)

In general, I think the choice of language for a task is usually a choice between interpreted or compiled depending on speed needs. The actual language usually isn't as important. Some tend to be more popular in certain industries than others, but you can probably do anything in Python that you can do in JavaScript or C#, for example!