A. Clear instructions for how to REQUEST data from the microservice you implemented. Include an example call.
For now the microservice is going to respond to a request by checking a file for a run command. Once the file is checked and the “run” is confirmed, the microservice will send data back to the program that is calling it.
Example call: “FileWriter myWriter = new FileWriter("C:\\CS-361\\prng-service.txt\");
myWriter.write("run"); //writes run command to prng.txt file
myWriter.close();
Thread.sleep(2000);
System.out.println("Successfully wrote run command to the prng.txt file.");
”
B. Clear instructions for how to RECEIVE data from the microservice you implemented
As mentioned above, a simple run command is going to initiate the microservice to do its job. Once the microservice checks and has the command to run it will automatically send data back to the program that called it.
As you can see in the flow chart, once the run command is processed, the program will write back with specific data requested.
This is a diagram showing the realtionships happening between the 3 separate micro-services working together step by step:
-
Notifications
You must be signed in to change notification settings - Fork 0
CyberSully/Micro-Services-in-Java
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Microservices designed java program
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published