Developing OpenWhisk Functions with Spring Boot

I’ve open sourced some code that shows how Apache OpenWhisk functions can be developed with Spring Boot and how the functions, which run in Docker, can be debugged in Eclipse IDEs.

Get the code from GitHub.

Apache OpenWhisk is an open source serverless platform. One of the great OpenWhisk features is the capability to build functions with Docker by basically only implementing one URL endpoint in a programming language of your choice.

The sample describes how Spring Boot code can be developed in local Eclipse IDEs. The code, which runs in a local Docker container, can be debugged directly from the IDE. Via the Spring Boot Developer Tools the code can be changed in the IDE and the changes can be run immediately without having to restart the container.

The advantage of this approach is that the development is done in (almost) the same container that runs in the cloud which minimizes the chances to run into issues because of different environments.

Here is a screenshot that shows how Spring Boot code running in Docker can be debugged in the Eclipse IDE:


If you want to try out OpenWhisk in the cloud, you can get an account on theĀ IBM Cloud.