How jmhreif/microservices-level1 works
This introductory example has a single request path: a caller requests /hello from Service2, which calls Service1’s /text endpoint and returns its text response. The service implementations are shown in the sampled Java files; the README documents the endpoints and expected result. The graph omits deployment and build details.
Main entry points: Service2Application.java Hello endpoint · Service1Application.java Text endpoint
Components 3
Service1 backend
- Text endpoint
service1/src/main/java/com/jmhreif/service1/Service1Application.java
Service2 client
- Hello endpoint
service2/src/main/java/com/jmhreif/service2/Service2Application.java
Other components
- HTTP caller
Connections 4
- HTTP caller → Hello endpoint: requests /hello
README.adoc - Hello endpoint → Text endpoint: GET /text
service2/src/main/java/com/jmhreif/service2/Service2Application.java - Text endpoint → Hello endpoint: returns text
service2/src/main/java/com/jmhreif/service2/Service2Application.java - Hello endpoint → HTTP caller: returns result
README.adoc