There are various ways , the application can notify a set of recipients based on the error catrgories.
- Spring email: configure logback xml
- Sending via java mail api
By Prithvi Atal, Engineer, Driving High-Performance Solutions
There are various ways , the application can notify a set of recipients based on the error catrgories.
An application must be set with enough memory to be able to function as per the SLA. It should not be under or over utilised.
Things to be considered while setting up memory :
-Review the static and cached objects.
-Apply chunking instead of many items together.
-Apply common thread pooling to control the load
-Use fault tolerant library link resilency4j, circuit breaker etc.
-Have cloudWatch alarm setup tuned with read/write usage.
Redirect stderror to output
$ cat foo.txt > output.txt 2>&1 // 2 stderror, &1 std output
cat nopx.txt > outputx.txt 2>&1
// since there is an error the error will get redirected to outputx.txt
Command chaining &&
ls -ltr && mvn test && mvn deploy
Git shell coloring
# Regular Colors
Black="\[\033[0;30m\]" # Black
Red="\[\033[0;31m\]" # Red
Green="\[\033[0;32m\]" # Green
Yellow="\[\033[0;33m\]" # Yellow
Blue="\[\033[0;34m\]" # Blue
Purple="\[\033[0;35m\]" # Purple
Cyan="\[\033[0;36m\]" # Cyan
White="\[\033[0;37m\]" # White
More: https://gist.github.com/vratiu/9780109