Practical Spring Cloud Function by 2023

Practical Spring Cloud Function by 2023

Author:2023
Language: eng
Format: epub


Chapter 4 Building event-driven data pipelines with spring Cloud FunCtion

public class SenderFunction implements

Function<String,String> {

@Autowired

private QueueSender queueSender;

@Override

public String apply(String s) {

queueSender.send("Vehicle:SUV,Make:Ford,Model:Edge,

Year:2021");

return "ok. done";

}

}

Step 5: Test the function using Postman

Use the GET function on Postman and provide the URL to the

senderFunction.

You should get the result shown in this image.

170

Chapter 4 Building event-driven data pipelines with spring Cloud FunCtion

Check the RabbitMQ queue for any messages.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.