Let's move on to the orchestration layer so that we can stitch together the various capabilities we implemented in the services. The RESTful endpoints provide HTTP access for the user interface layer to access business capabilities.
As we stated previously, the orchestration layer should be concise and easy to understand. RESTful endpoints should only be concerned with orchestrating the services to form a higher-level business logic and handling HTTP protocol specifics.
One way to evaluate whether the orchestration layer or RESTful endpoints are well designed in terms of separation of concerns is to check package imports. Does the orchestration layer need to import packages from the services?
For example, in our projects, do the RESTful endpoints import a boto3 that interacts with AWS? They shouldn't.
Typically, RESTful endpoints will...
For example, in our projects, do the RESTful endpoints import a boto3 that interacts with AWS? They shouldn't.
Typically, RESTful endpoints will...