神刀安全网

Developing OpenWhisk Actions via the new Web Editor

In addition to Cloud Foundry, Docker and Virtual Maschines Bluemix provides a fourth compute option OpenWhisk . OpenWhisk is an event-driven compute platform that executes code in response to events or direct invocations without having to maintain servers. The advantage is that you only have to pay for actual usage, not for peaked projections.

As I blogged about earlier you can write OpenWhisk actions in JavaScript and Swift . The actions can be deployed via CLI (command line interface) and now also with the new web editor which makes it easier for developers like me who cannot remember all commands of the various command line tools.

The screenshot shows the same translation action from the previous blog. Logs show up in the console.

Developing OpenWhisk Actions via the new Web Editor

In order to invoke actions the editor shows the endpoint and curl command.

Developing OpenWhisk Actions via the new Web Editor

Another nice feature is the list of public actions and triggers that are displayed in the right column. When clicked, the documentation of these packages is displayed and you can use the source code of these packages as samples and starting points for your own actions.

Developing OpenWhisk Actions via the new Web Editor

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » Developing OpenWhisk Actions via the new Web Editor

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址