Skip to Content
Learning Apache OpenWhisk
book

Learning Apache OpenWhisk

by Michele Sciabarrà
July 2019
Intermediate to advanced
391 pages
8h 40m
English
O'Reilly Media, Inc.
Content preview from Learning Apache OpenWhisk

Chapter 10. Developing OpenWhisk Actions in Go

So far we have seen how to develop OpenWhisk actions in two programming languages: JavaScript and Python. Those two programming languages have many points in common: they are both interpreted languages with loosely typed variables (the common term to define them is that they are both “scripting” languages). They also have in common flexible data structures that map easily into JSON data. Probably the main difference is that most frontend developers use JavaScript, while Python is more popular among backend developers, system administrators, and even data scientists.

Given the similarities, picking one of the two is probably largely a matter of taste and available libraries. For example, JavaScript offers good libraries to manage web services, while Python has more data analysis and machine learning libraries.

Those two languages are generally productive, but the lack of strong typing can hinder development when the application grows in size, requiring you to put more effort into testing. Lack of type checking can also mean less control over data structures, which can be a problem with large programs. For those use cases, you may want to use a more strongly typed programming language.

Numerous programming languages offer stronger type checking than Python and JavaScript. The first one that comes to mind is probably Java. However, in the serverless world, the programming language on the rise is Go. Go shares many features with Java, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Learning Docker

Learning Docker

Rick Fast
Apache Cookbook, 2nd Edition

Apache Cookbook, 2nd Edition

Rich Bowen, Ken Coar

Publisher Resources

ISBN: 9781492046158Errata Page