API / Microservices
Mention a few of the cross-cutting concerns that we need to implement for any microservice.
- Security - for example, REST APIs must be secured by requiring an Access Token,
- Externalized configuration - includes credentials, and network locations of external services such as databases and message brokers,
- Logging - configuring of a logging framework such as log4j or logback,
- Health check - a url that a monitoring service can "ping" to determine the health of the application,
- Metrics - measurements that provide insight into what the application is doing and how it is performing,
- Distributed tracing - instrument services with code that assigns each external request an unique identifier that is passed between services.
More Related questions...