git clone https://github.com/abhirockzz/accs-spring-cloud-stream-kafka.gitcd rest-producermvn clean install— The build process will createaccs-spring-cloud-stream-kafka-producer-dist.zipin thetargetdirectory
cd consumermvn clean install— The build process will createaccs-spring-cloud-stream-kafka-consumer-dist.zipin thetargetdirectory
- Download and setup PSM CLI on your machine (using
psm setup) — details here - modify the
deployment.jsonto fill in the Oracle Event Hub instance name as per your environment - deploy the producer app —
cd rest-producerandpsm accs push -n SpringCloudStreamProducer -r java -s hourly -m manifest.json -d deployment.json -p target/accs-spring-cloud-stream-kafka-producer-dist.zip - deploy the processor app —
cd consumerandpsm accs push -n SpringCloudStreamProcessor -r java -s hourly -m manifest.json -d deployment.json -p target/accs-spring-cloud-stream-kafka-consumer-dist.zip
- check out the blog - Spring Cloud Stream and Kafka based microservices on Oracle Cloud