简体   繁体   English

适用于Web服务器或App Engine的Google Compute Engine

[英]Google Compute Engine for Web Server or App Engine

I need to better understand the technology stack of Google Cloud services. 我需要更好地了解Google Cloud服务的技术堆栈。

Imagine you were to build a site such as imdb, or rottenttomatoes or metacritic. 假设您要建立一个网站,例如imdb,rottomtomatoes或metacritic。

So you have apps that list movies. 因此,您拥有列出电影的应用程序。 Other apps that let you +1 or -1 recommendations or enter in review scores. 其他可让您+1或-1推荐或输入评论分数的应用。

You have an app that lets you login. 您有一个可以登录的应用程序。

Then you have all these HTML web pages that get served up, along with graphics and other reasources for the display of the web pages. 然后,您将获得所有这些HTML网页,以及用于显示网页的图形和其他资源。

I know Google App Engine can serve html and I can add resources into the /web folder. 我知道Google App Engine可以提供html,并且可以将资源添加到/ web文件夹中。 So it seems like I could do an entire site on GAE. 看来我可以在GAE上做一个完整的网站。

Then, what is the advantage of also creating a Google Compute instance? 然后,还创建一个Google Compute实例的好处是什么?

I created a Google Compute instance this afternoon, installed apache, setup my domain forwarding. 我今天下午创建了一个Google Compute实例,安装了Apache,设置了域转发。 I wonder, should I use this in combination with GAE or is it unnecessary? 我想知道,我应该将其与GAE结合使用还是不必要?

If you only need to host some small scripts and some static content, Google App Engine it's definitely the way to go. 如果您只需要托管一些小脚本和一些静态内容,那么Google App Engine绝对是您的理想之选。 By using App Engine, you let Google take care of security patches, replication and recovery, scaling and content caching. 通过使用App Engine,您可以让Google负责安全补丁,复制和恢复,扩展和内容缓存。

Google Compute Engine is useful if you need to run additional non-webserver software to support the functionality of your site. 如果您需要运行其他非网络服务器软件来支持网站的功能,则Google Compute Engine很有用。

For example, if you need to run a Postges database, or Reddis/Cassandra/MongoDB to store user information and ratings. 例如,如果您需要运行Postges数据库或Reddis / Cassandra / MongoDB来存储用户信息和等级。 Google's Datastore and MySQL work well for some types of applications, but there are a lot of different database types for different needs. Google的数据存储区和MySQL对于某些类型的应用程序运行良好,但是有许多不同的数据库类型可以满足不同的需求。

Another good reason to use Compute Engine is if you need to load and keep a lot of data in memory or perform "big data" analysis. 使用Compute Engine的另一个好理由是,您是否需要加载大量数据并将其保留在内存中或执行“大数据”分析。 Examples of the former would be ElasticSearch or Lucerne, and the latter would be Hadoop, Hive and Pig. 前者的示例是ElasticSearch或Lucerne,后者的示例是Hadoop,Hive和Pig。

Of course, you can run your frontend on App Engine and then use Compute Engine later if you need it, which is what I'd recommend. 当然,您可以在App Engine上运行前端,然后在需要时使用Compute Engine,这是我的建议。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM