https://github.com/epiresdasilva/number-in-words-function
Number in words functions in Java and Python for benchmarking - FaaS
https://github.com/epiresdasilva/number-in-words-function
faas function function-as-a-service functions ibm ibm-bluemix ibm-cloud java python
Last synced: about 1 month ago
JSON representation
Number in words functions in Java and Python for benchmarking - FaaS
- Host: GitHub
- URL: https://github.com/epiresdasilva/number-in-words-function
- Owner: epiresdasilva
- License: apache-2.0
- Created: 2018-06-04T15:33:04.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-09-08T04:26:38.000Z (about 3 years ago)
- Last Synced: 2025-06-16T07:51:04.633Z (4 months ago)
- Topics: faas, function, function-as-a-service, functions, ibm, ibm-bluemix, ibm-cloud, java, python
- Language: Java
- Homepage:
- Size: 90.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Number in words
That's a proof of concept to test the performance between a function in Java, Python, NodeJS and Java with Quarkus/GraalVM.
I'm using IBM Cloud Functions as the cloud provider.## Deploy
To deploy these function we need, first of all, to build the Java project. The Quarkus function we will handle with it separetely.
Let's build our Java function:
```
cd number-in-words-java/
mvn clean package
```After doing that, run the following command:
```
sls deploy
```You must be logged in on the IBM Cloud using `ibmcloud login` command.
### Quarkus
Set it up the Quarkus and GraalVM environment: https://quarkus.io/guides/building-native-image
Build the native application
```
cd number-in-words-quarkus/
./mvnw package -Pnative.
```Build the docker image
```
docker build -t epiresdasilva/number-in-words-quarkus .
```Push it to the Docker Hub.
```
docker push epiresdasilva/number-in-words-quarkus
```Create your function:
```
ibmcloud fn action create number-in-words-quarkus --docker epiresdasilva/number-in-words-quarkus
```(Replace all references to `epiresdasilva` to your user)