迁移至不同云主机提供商

huangapple go评论95阅读模式
英文:

migrate between cloud hosting providers

问题

In Cloud hosting world, is there such thing as develop once, deploy to multiple hosting platforms? Specifically referring to AWS and Google Cloud.

在云托管领域,是否有一次开发,多次部署到多个托管平台的方法?具体指的是AWS和Google Cloud。

I aim to easily migrate from one cloud provider to another. Like from AWS to Google Cloud to Heroku to DigitalOcean and back if necessary.

我希望能够轻松地从一个云提供商迁移到另一个,比如从AWS到Google Cloud,再到Heroku或DigitalOcean,如果需要的话可以返回。

One option is to use docker containers but then you've to deploy against IaaS, but that becomes expensive in costing.

一个选择是使用Docker容器,但这样你必须部署到基础设施即服务(IaaS),但这在成本上变得昂贵。

PaaS is I guess way cheaper but there's the proprietary format barrier(like Google App Engine's app format, which is hard to migrate towards AWS and by itself imposes many constraints on the webapp code).

我猜PaaS可能便宜一些,但存在专有格式的障碍(比如Google App Engine的应用格式,难以迁移到AWS,并对Web应用程序代码本身施加了许多限制)。

I thought of Docker containers. And found this blogpost, which uses coldbrew-cli and deploys Docker containers to Amazon EC2 Container Service. But again that feels like IaaS, like not cheap in costing.

我考虑过Docker容器。并找到了这篇博文,它使用coldbrew-cli将Docker容器部署到Amazon EC2容器服务。但再次感觉像是IaaS,成本不低。

Are there any other options out there? Or perhaps answer lies in abstracting the web services layer, so that it can be swapped easily with AWS instead of Google App Engine. Is this even possible?

是否还有其他选择?或者答案可能在于抽象化Web服务层,以便可以轻松地与AWS进行交换,而不是使用Google App Engine。这是否可能?

英文:

In Cloud hosting world, is there such thing as develop once, deploy to multiple hosting platforms? Specifically referring to AWS and Google Cloud.

I aim to easily migrate from one cloud provider to another. Like from AWS to Google Cloud to Heroku to DigitalOcean and back if necessary.

One option is to use docker containers but then you've to deploy against IaaS, but that becomes expensive in costing.
PaaS is I guess way cheaper but there's the proprietary format barrier(like Google App Engine's app format, which is hard to migrate towards AWS and by itself imposes many constraints on the webapp code).

I thought of Docker containers.
And found this blogpost, which uses coldbrew-cli and deploys Docker containers to Amazon EC2 Container Service. But again that feels like IaaS, like not cheap in costing.

Are there any other options out there?
Or perhaps answer lies in abstracting the web services layer, so that it can be swapped easily with AWS instead of Google App Engine. Is this even possible?

答案1

得分: 1

I think i have what you are looking for:

IaC https://www.terraform.io/

它允许您在不同的云供应商之间切换,但您必须明确定义结构和变量,以确切满足您的需求。

In case you have Cloud Function/Lambdas, use this one also:

https://serverless.com/

英文:

I think i have what you are looking for:

IaC https://www.terraform.io/

It allows you to switch across cloud provides but you have to well define the structure and the variables to exactly match your needs.

In case you have Cloud Function/Lambdas, use this one also:

https://serverless.com/

huangapple
  • 本文由 发表于 2020年1月3日 23:23:53
  • 转载请务必保留本文链接:https://go.coder-hub.com/59581115.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定