A
A
AlexBoss2020-08-28 15:02:54
Python
AlexBoss, 2020-08-28 15:02:54

Does running an asynchronous server framework like fast_api or starlette in docker affect speed and how?

Good day.
Does running an asynchronous server framework like fast_api or starlette in docker affect speed and how, if so,?
Deployment of the same fast api on offsite is offered through docker, but in theory it should cut the speed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Kitaev, 2020-08-28
@AlexBoss

Of course, docker has an overhead. In reality, you won't notice it.
You need to design your application so that it can scale horizontally. Do not think that the difference between an application running directly on a VPS and an application running in docker on the same VPS is "that's exactly what was missing." If CPU/Networking hits 100%, then this is a reason to deploy a few more identical servers and spread the load. And this is a hundred times easier to do if you have containers.
More detailed analysis: https://stackoverflow.com/questions/21889053/what-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question