clarify future support of docker on now platform
November 8, 2018 at 6:21pmThe ZEIT community has a new home. This thread is preserved for historical purposes. The content of this conversation may be innaccurrate or out of date. Go to new community home →
clarify future support of docker on now platform
November 8, 2018 at 6:21pmIt seems zeit is moving away from allowing customers to utilize Docker as a common 'primitive'; would you kindly clarify this?
November 9, 2018 at 8:36pm
the main premise of of serverless is that request-response invocations very rarely run 24x7 :)
you literally only pay for what you truly use
vs having dead space allocated in a server
the same will be 100% possible for Now 2.0, and that's why we're not locking you in and make you change your code
And you'll actually have a greater variety of deployment targets
For example, let's say you go to a company that really strongly prefers using Google Cloud. You'll be able to tell us that you want your deployments to be in affinity to a particular Google Cloud region or account.
Or, let's say you want to go legacy mode and run it in servers that run 24 x 7 that you have to actively monitor and observe and get paged for.
But that's when you start to realize that the whole enterprise of running things on premise will make little sense.
Or things running quickly on-demand and paying no maintenance costs
The equation becomes quite simple.
In fact, we are doing that because we want to welcome more devs to our platform
But anyone today could be writing a flask wrapper
I feel your pain, I just did that this last week
, It's not recommended because you lose most of the benefits, but you can run your node or express server as a lambda using the
now-node-server
builderLook at the amount of proprietary imports here => https://github.com/zeit/now-builders/blob/master/now-node-server/index.js#L1-L10
What Zeit should realize is that I'm well willing to accept the tradeoff of having an app that is up 24x7 consuming resources (e.g., Docker-style NodeJS app) and paying a few more dollars/cents if that means I don't have to write code like this. In other words, the need for serverless isn't a problem I currently have. I understand that it's more efficient, but those benefits only make a material difference for really large applications.
If I have a low-traffic app, the serverless model vs docker isn't going to make a ton of difference. I'm already only paying $15 a month. Price isn't a top concern.
Getting an out-of-the-box wrappers for Flask apps would be awesome, but I can also see how it can be done manually, now, that you mention it. I totally agree with your arguments in favor of serverless deployment. I'm thinking of the many companies that cannot (for some data privacy reason or other political reason) deploy on Now or even big cloud providers and for those we need to be able to offer on-premise deployment. But we wouldn't want to write an app twice - one for deployment on Now and one for on-premise deployment. A wrapper sounds like a good compromise, at least for some/many scenarios.