Google Open source goes to the Go Cloud project, designed to make the Go language (Golang) the language of choice for developing cloud applications. The project provides a library and tools for building applications that can be ported between multiple cloud platforms. Go Cloud is also in the early beta phase and is not suitable for production environments.
The go language has some advantages in cloud development, such as low latency and built-in concurrency. At the same time, Go Cloud provides a set of APIs to write simpler, more portable applications.
This common set of APIs includes:
Unstructured binary (BLOB) storage.
Variables that can be modified at run time.
Connection to the MySQL database.
Server startup and diagnostics, including request logging, tracking, and health checks.
Go Cloud is the foundation for building a portable cloud computing ecosystem based on these APIs. At this time, the Go Cloud GitHub repository provides the implementation of Google Cloud platform and Amazon Web services. The follow-up will soon support more cloud providers.
The key to this project is wire, which is a code generator that can create human-readable code and import the SDK for developers into the cloud provider. Go Cloud can therefore provide support to cloud vendors without increasing compilation time or binary file size, while avoiding the effects from the init () function.
Wire uses dependency injection to automatically connect components. Component dependencies are represented as function parameters and are encouraged to be explicitly initialized by the developer, rather than using global variables. A wire can be executed without a run-time state or reflection, so that handwritten initialization code can be used.
While the go language is popular among developers, Google believes the language lacks a standard library for connecting to cloud services. Developers often need to develop their own libraries to use the capabilities of the cloud, and businesses want to be able to easily move their workloads between cloud platforms.
Google believes that Go cloud allows development teams to build applications that run on any supported cloud platform without having to rebuild most of the application's content.
Adam Seligman, vice president of Google developer relations, said Google hopes the move will lead to an explosion in the go language ecosystem. Of course, this will also accelerate the go language into a cloud development language.
View English text:
Https://www.infoworld.com/article/3293417/development-tools/go-cloud-aims-to-cement-golang-in-the-cloud.html
https://techcrunch.com/2018/07/24/google-wants-go-to-become-the-go-to-language-for-writing-cloud-apps/
Originally from: https://www.linuxidc.com/Linux/2018-08/153428.htm
This address: https://www.linuxprobe.com/go-cloud.html Editor: Zhou Xiaoxue, Auditor: Bao