How to find thread dump
Try below command and find the pid of your java application
ps -ef | grep java.
jstack <pid> > threaddump.txt
Check in the task manager and find the Process ID of the Java
New features of java 8
Lambda expressions in java 8 allows you to treat functionality as a method argument or code as data.
Example : arrayName.forEach(n -> System.out.println(n));
Repeating annotations provide the ability to apply the same annotation type more than once to the same declaration or type use.
Type annotations provide the ability to apply an annotation anywhere a type is used and not just on a declaration.
CAP Theorem
Consistency
Availability
Partition tolerance
Heuristic Exceptions
sometimes due to failures in a distributed environment, the recoverable resource may decide to unilaterally commit or rollback changes leading to a heuristic decision. So the system needs to store this is some stable source and later can be editted and then pushed properly
Shared nothing architecture
Here each node is independent and self-sufficient, and there is no single point of contention required across the system.
How to avoid DB deadlocks
Can make a queue wherein we can verify and order the request to DB.
Less use of cursors as they lock the tables for a long time.
Keeping the transaction smaller.
The different deployment models in cloud computing are
-Private Cloud
-Public Cloud
-Community Cloud
-Hybrid Cloud
CloudTrail is a service that captures information about every request sent to the Amazon Route 53 API by an AWS account, including requests that are sent by IAM users.