Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

Source code and examples from the talk at jLove Conference 2021.

License

Notifications You must be signed in to change notification settings

ThomasVitale/serverless-spring-native-cloud-jlove-2021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Event-driven and serverless with Spring Cloud and Spring Native (jLove Conference 2021)

Code samples from my presentation at jLove Conference 2021.

Serverless application with Spring Native and Spring WebFlux

Prerequisites: Java 11

Build the web-service application as a native container image:

./gradlew bootBuildImage

Run the native image:

docker run --rm -p 8080:8080 web-service:0.0.1-SNAPSHOT

Send a GET request:

http GET :8080

Serverless application with Spring Native and Spring Cloud Function

Prerequisites: Java 11

Build the web-function application as a native container image:

./gradlew bootBuildImage

Run the native image:

docker run --rm -p 8080:8080 web-function:0.0.1-SNAPSHOT

Send a POST request:

echo 'piano' | http POST :8080

Event-driven application with Spring Cloud Function and Spring Cloud Stream

Prerequisites: Java 16

Run a RabbitMQ container:

docker-compose up -d

Build the stream-function application as a container image:

./gradlew bootBuildImage

Run the JVM image:

docker run --rm -p 8080:8080 stream-function:0.0.1-SNAPSHOT

Releases

No releases published

Packages

No packages published

Languages