Devs to pour Java into Amazon's cloud after AWS Lambda update

Event-driven model not just for JavaScript anymore


Amazon Web Services has expanded its AWS Lambda programming model to support functions written in Java, the cloud kingpin said on Monday.

Lambda, which allows developers to run event-driven code directly on Amazon's cloud without managing any application infrastructure, launched in November 2014 and initially only supported code written in JavaScript and Node.js.

With Monday's update, developers can now write their event handlers in Java 8, provided they code them in a stateless style that doesn't make any assumptions about the underlying infrastructure.

"We have had many requests for this and the team is thrilled to be able to respond," AWS chief evangelist Jeff Barr said in a blog post.

AWS Lambda functions can be invoked automatically whenever a variety of events take place in Amazon's cloud. So, for example, you could set a function to be triggered whenever a certain Amazon Simple Storage Service (S3) storage bucket is modified, or to watch for events from the Kinesis data-processing service.

Lambda functions can also be used as back ends for mobile applications that store data on the AWS cloud.

Lambda functions written in Java can use any Java 8 features and can even invoke Java libraries. The handler code and any necessary JAR files are bundled up into a JAR or ZIP file for deployment on AWS.

To make life easier for developers, Amazon has released AWS Toolkit plugin for Eclipse that takes care of packaging and uploading handlers.

It has also released two libraries as part of the AWS SDK for Java to help eliminate some of the grunt work. One provides interfaces for handler objects, while the other provides prepackaged type definitions for AWS event sources, including S3, Amazon Simple Notification Service (SNS), DynamoDB, Kinesis, and Cognito.

Developers can start writing Lambda functions in Java beginning on Monday, and still more updates are on the way.

"This is the first in a series of additional language options that we plan to make available to Lambda developers," Barr said, though he gave no hint as to which language(s) might be next to arrive on the platform. ®

Similar topics


Other stories you might like

  • It's the flu season – FluBot, that is: Surge of info-stealing Android malware detected

    And a bunch of bank-account-raiding trojans also identified

    FluBot, a family of Android malware, is circulating again via SMS messaging, according to authorities in Finland.

    The Nordic country's National Cyber Security Center (NCSC-FI) lately warned that scam messages written in Finnish are being sent in the hope that recipients will click the included link to a website that requests permission to install an application that's malicious.

    "The messages are written in Finnish," the NCSC-FI explained. "They are written without Scandinavian letters (å, ä and ö) and include, for example, the characters +, /, &, % and @ in illogical places in the text to make it more difficult for telecommunications operators to filter the messages. The theme of the text may be that the recipient has received a voicemail message or a message from their mobile operator."

    Continue reading
  • AsmREPL: Wing your way through x86-64 assembly language

    Assemblers unite

    Ruby developer and internet japester Aaron Patterson has published a REPL for 64-bit x86 assembly language, enabling interactive coding in the lowest-level language of all.

    REPL stands for "read-evaluate-print loop", and REPLs were first seen in Lisp development environments such as Lisp Machines. They allow incremental development: programmers can write code on the fly, entering expressions or blocks of code, having them evaluated – executed – immediately, and the results printed out. This was viable because of the way Lisp blurred the lines between interpreted and compiled languages; these days, they're a standard feature of most scripting languages.

    Patterson has previously offered ground-breaking developer productivity enhancements such as an analogue terminal bell and performance-enhancing firmware for the Stack Overflow keyboard. This only has Ctrl, C, and V keys for extra-easy copy-pasting, but Patterson's firmware removes the tedious need to hold control.

    Continue reading
  • Microsoft adds Buy Now, Pay Later financing option to Edge – and everyone hates it

    There's always Use Another Browser

    As the festive season approaches, Microsoft has decided to add "Buy Now, Pay Later" financing options to its Edge browser in the US.

    The feature turned up in recent weeks, first in beta and canary before it was made available "by default" to all users of Microsoft Edge version 96.

    The Buy Now Pay Later (BNPL) option pops up at the browser level (rather than on checkout at an ecommerce site) and permits users to split any purchase between $35 and $1,000 made via Edge into four instalments spread over six weeks.

    Continue reading

Biting the hand that feeds IT © 1998–2021