by Brian Fitzgerald
If you want to dip your toe into serverless function programming, you will want to try it out in a simple web-based environment with all the needed syntax setup for you. That way, you can at least get to “Hello World!” without delay or error.
Across three cloud providers, Amazon, Microsoft, and Google, online edit availability varies across languages and operating systems. Here is a brief summary.
Amazon Web Services
Saving code changes from the AWS Console is quick, usually under one second. Python code is saved without syntax checking. There is one quirk. Tabs in sources get copied to the clipboard as spaces. I refer to the Lambda Management console in Chrome on Windows.
You can export your function, and in that way, get your source files out after you have tested them.
A python Lambda function can return any data type that is JSON serializable, such as dict, list, tuple, Boolean, scalars, None, and hierarchies of these, but not, for example, set, date, datetime, class, or object.
An Azure function sits inside a FunctionApp. FunctionApp names must be unique across all Azure. You cannot name your Azure FunctionApp “spam” or “eggs”, and you cannot name your Azure FunctionApp “SpamAndEggs” unless I delete my Azure FunctionApp “SpamAndEggs”.
FunctionApp creation can take more than 1 minute. When creation finishes, the function list displayed in the portal does not refresh when the function is ready, and you could miss the notification. Saving your code from the portal is almost instantaneous. Compile and run takes less than 1 second. You can zip and download your finished code by pressing Download app content.
Press tab in the online code results in saving space characters, which will be less of a problem, since you won’t be editing python source online.
When you finish editing, you press “Deploy”, which can run for up to 1 minute.Syntax errors lead to failed deployment. While testing the code, you can view it read-only. If you want to make a change, you have to go back to the edit screen. You may download your finished code as a zip file.
Google Cloud function return type is limited to string, tuple, Response instance, or WSGI callable.
Here is a summary of programming languages across cloud providers.
|C#||upload only||online edit||not available|
|Go||upload only||not available||online edit|
|Java||upload only||upload only||not available|
|Powershell||upload only||online edit||not available|
|Python||online edit||upload only||online edit|
|Ruby||online edit||not available||not available|