"Translator" App Engine Go Overview

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.

Just when I was wondering when Google would be adding Go support in the NDK, sudden, Google was exerting its force. APP Engine supports Go. Here is an overview from the official documentation.

———————— Translation Split Line ————————

APP Engine Go Overview

Welcome to the Google App for Go engine! Experimental Properties

With App Engine, you can build Web apps using the Go programming language. The Go app runs on Google's scalable infrastructure and uses massive, persistent storage and services.

Go Run-time environment

The Go SDK provides an interface similar to the standard go HTTP package, and the Go app Engine app is similar to writing a standalone Go WEB server.

Go's run-time environment uses the Go release r57.1. The SDK includes the Go compiler and the standard library, so it does not require additional dependencies. Like the Java and Python environments, not all of the standard library features are available in the sandbox. For example, attempting to open a socket or writing to a file will return the OS. EINVAL error.

The SDK includes an automated build service to compile your app, so you don't have to include the compiler yourself. Also, like Python sdk--, when the source code is modified, the app is rebuilt automatically.

APP Engine's Go Runtime environment provides full goroutine support, but is not executed in parallel: Goroutine is dispatched on a system thread. This single thread limitation may be removed in future releases.

The Go app runs in a secure "sandbox" environment with a simplified library. For example, an app cannot write data to a local file system or create a network connection at will. Instead, apps use the scalable services provided by app Engine to save data or communicate over the Internet.

See run-time environment for more information.

Data storage and services

Apps can use app Engine data storage to achieve trusted, scalable, and persistent data storage. The Go data store API provides atomic semantics for accessing the go structure.

APP Engine Memcache provides fast, ad-hoc distributed storage for caching data storage queries and computing results.

The app uses the URL Fetch service to access resources through the WEB and communicates with other hosts using the HTTP and HTTPS protocols.

Apps can use Google accounts for authentication. User accounts are created and signed up by Google accounts, and users who already have a Google account (such as a GMail account) can use their account in your app. The app can detect that the current user is logged in and can access the user's e-mail address.

Tools

The app Engine Go SDK uses tools from the Python SDK to test and upload application files.

The development server runs the app on the local computer for testing. The server simulates APP Engine data storage, service, and sandbox restrictions. The development server can also build the configuration of the data store index based on testing to improve query performance.

A multi-purpose tool called appcfg.py handles all the command-line interactions that will run the app on app Engine. The tool appcfg.py can be uploaded to app Engine, or only the data store index configuration can be updated, so that a new index is built before uploading the code. It can also download the app's logs to analyze the app's performance using its own tools.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.