Understanding Production- Ready characteristics

1, the external configuration (externalized configuration)

1 ), based on the configuration environment variable
 2 ), the configuration based on YAML
 3), default configuration values

 

2, health check (health checks)

1 ), if it has a state route (requires a security token), it can be used to monitor service health check?
2 ), verify that each service request up to? (Such as: a database, cache, external interface)
 3), and returns 500 an error is checked when the service exception.

 

3, Log

1), the recording to the standard OUT / error
 2 ), to record the syslog
 . 3 ), when a program exception, stack trace message transmission
 4), the configuration log level: debug / error / waring / info

4, application monitoring

1), there is an application / resource monitoring it?
2), there is service availability monitoring it?

 

Guess you like

Origin www.cnblogs.com/yaoyuan2/p/11741513.html