什么是 Cloud Foundry 和 Cloud Foundry?春天
我试图了解云服务的想法,但没有明白这一点。 它可以替代应用程序的服务器吗? 其目的是什么? 我有一个 Android 应用程序,我如何从服务器获取信息,可以使用 Cloud Foundry 来完成吗?什么是 spring 以及它如何连接到 Cloud Foundry。 如果您能给我如何与 Cloud Foundry 通信 Android 应用程序的链接,
非常感谢!
I am trying to get the idea of cloud serves but didn't get the point of that.
Dose it can replace a server for the app?
what is the purpose of it?
I have an android app and I what to get info from the server can it be done with Cloud Foundry and what is spring and how it connects to Cloud Foundry.
If you can give me link of how to communicate android app with Cloud Foundry
thanks a lot!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
CloudFoundry 是一个开源 PaaS (github.com/cloudfoundry)。它将堆栈商品化 - 也就是说,实际上,它使数据库(MySQL、PostgreSQL、Redis、MongoDB)、消息传递(RabbitMQ)和 Web 服务器(Tomcat)等快速启动和运行变得非常简单。像 AWS 这样的云可以让您启动 CPU 和硬盘以及库存操作系统安装,而像 CloudFoundry 这样的 PaaS 可以让您启动基础设施,例如消息代理、数据库以及 Web 服务器和路由器。所以,是的,它取代了服务器(或者,通常更重要的是,它可以按需替代 1000 台服务器)。这是显而易见的部分。
CloudFoundry 本身是开源的,因此与其他 PaaS 解决方案不同,通过在 CF 之上构建,您不会被锁定在 CF 中。您稍后可以决定在自己的数据中心或其他某个 CloudFoundry 提供商上本地运行云(CloudFoundry.com 只是 CloudFoundry 软件的一个提供商。就像您可以轻松地重新定位 git 一样使用 git 命令行工具使其指向任何远程存储库,您可以重新定位 CloudFoundry 'vmc' 命令行工具以指向不同的 CloudFoundry 安装,
这不是 Java 中的开发框架。这是使用 CF 的唯一方法,但我个人认为 CF 为热心的技术人员提供了许多不同的技术,而 Spring 提供了唯一可以处理所有这些选项的综合库集,学习一个 Spring 库,其他的就会感觉相似。 ,因此开始使用新的 API 和技术会更自然,就像用惯用的 Python API 设计的 API 被称为“Pythonic”一样,Spring 的 API 具有内聚性并且可以很好地协同工作。 Java 不是你的菜(双关语!),那也没关系。 CloudFoundry 支持 Ruby on Rails、Scala、Node.js 和其他 cloudfoundry 提供商支持替代方案(Stacato 支持 Python、AppFog 支持 PHP 等)。
有关演示如何开始使用 Spring 和 SpringSource 工具套件的快速示例,以及CloudFoundry 的开发虚拟机(以便您可以在本地快速开发),请查看此博客(特别是其中嵌入的视频):http://blog.springsource.com/2011/08/24/micro -cloud-foundry-for-spring-developers/
CloudFoundry's an open-source PaaS (github.com/cloudfoundry). It commoditizes the stack - that is, in practical terms, it makes it dead simple to get things like databases (MySQL, PostgreSQL, Redis, MongoDB), messaging (RabbitMQ), and web servers (Tomcat) up and running quickly. Whereas clouds like AWS let you spin up CPUs and hard disks and a stock OS install, a PaaS like CloudFoundry lets you spin up infrastructure, like message brokers, databases, and web servers and routers. So, yes, it replaces a server (or, often more importantly, it can stand in for 1000 servers on-demand). That's the obvious part.
CloudFoundry itself is open source, so unlike other PaaS solutions, by building on top of CF you're not locked into CF. You can later decide to run the cloud locally on your own datacenter, or on some other CloudFoundry provider (CloudFoundry.com is just one provider of the CloudFoundry software. Just as you can easily re-target a git repisotry to have it point to any remote repository using the git command line tool, you can re-target the CloudFoundry 'vmc' command line tool to point to a different CloudFoundry install.
Spring's a development framework in Java. It's not the only way to consume CF, but I personally think it's quite nice. CF exposes a lot of different technologies for the eager technologist and Spring provides the only comprehensive library set that can handle all those options. Learn one Spring library and the others will feel simialar, and so it's more natural to get started with a new API and technology. In the way that APIs designed with idiomatic Python APIs are said to be "Pythonic," Spring's APIs are cohesive and work nicely together. However, if Java's not your cup of tea (punny!), then that's OK too. CloudFoundry supports Ruby on Rails, Scala, Node.js, and other cloudfoundry providers support alternatives (Stacato supports Python, AppFog supports PHP, etc.)
For a quick example demonstrating how to get started with Spring, and the SpringSource Tool Suite, and a development virtual machine for CloudFoundry (so you can develop locally and quickly), check out this blog (and, particularly, the video embedded therein): http://blog.springsource.com/2011/08/24/micro-cloud-foundry-for-spring-developers/
Springsource 团队今年做了一些有趣的工作,将各种 Spring 项目与 Cloud Foundry 集成。
随着微服务的日益普及,许多 Spring 项目被证明不仅对于快速开发这些更小、更轻的服务很有用,而且还可以轻松整合 Netflix OSS 中的一些项目,这些项目实现了使它们具有工业实力的模式在网络规模上。
一些相关链接:
启动和 Spring 自动重新配置 (https://github.com/cloudfoundry/java-buildpack/releases< /a>)。
包含有关将 Spring Boot 应用程序部署到 Cloud Foundry 的示例或
Heroku
我期待看到 Cloud Foundry 和 Spring 团队之间合作的更多成果。 Pivotal 的 James Watters 最近发布的一条推文就是证明这一点的证据:“随着微服务趋势的腾飞,世界领先的 lightwieght @springframework 与 CF 位于同一个团队,这真是令人惊奇。”
The Springsource team has been doing some interesting work this year integrating a variety of Spring projects with Cloud Foundry.
With the rising popularity of microservices, many of the Spring projects are proving to be useful not only for quickly developing these smaller, lighter weight services, but also for easily incorporating some of the projects from Netflix OSS that implement patterns for making them industrial strength even at web scale.
A few related links:
Boot and Spring Auto-reconfig (https://github.com/cloudfoundry/java-buildpack/releases).
contain an example on deploying Spring Boot apps to Cloud Foundry or
Heroku
I look forward to seeing more of the results from the collaboration between the Cloud Foundry and Spring teams. One evidence of this is a recent tweet from Pivotal's James Watters "As the Microservices trends take off its pretty amazing to have the world's leading lightwieght @springframework on same team as CF."