Skip to content

CyberSully/Micro-Services-in-Java

Repository files navigation

CS-361 Instructions for micro-service requests and responds

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. image image 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: image

About

Microservices designed java program

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages